forked from UNLOZE/sm-plugins
DamageProxy update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user