DamageProxy update

This commit is contained in:
BotoX
2019-09-28 03:19:25 +02:00
parent 09945b0801
commit 28a543d1a9
6 changed files with 168 additions and 24 deletions
+5 -3
View File
@@ -90,7 +90,6 @@ public void OnMapStart()
return;
/* Late Load */
PrintToChatAll("late!");
for(int client = 1; client <= MaxClients; client++)
{
if(!IsClientInGame(client))
@@ -133,8 +132,10 @@ public void OnWeaponEquipped(int client, int entity)
if(!iHammerID)
return;
char sHammerID[16];
IntToString(iHammerID, sHammerID, sizeof(sHammerID));
char sHammerID[16] = "z";
if(ZR_IsClientHuman(client))
sHammerID[0] = 'h';
IntToString(iHammerID, sHammerID[1], sizeof(sHammerID) - 1);
g_Config.Rewind();
if(!g_Config.JumpToKey(sHammerID))
@@ -270,6 +271,7 @@ public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &dam
if(g_bNoSlowdown[client])
flVelocityModifier = GetEntDataFloat(client, g_hVelocityModifier);
damagetype |= DMG_DROWN;
SDKHooks_TakeDamage(victim, inflictor, attacker, damage, damagetype, weapon, damageForce, damagePosition, 1);
if(g_bNoSlowdown[client] && flVelocityModifier >= 0.99)