DamageProxy update

This commit is contained in:
BotoX 2019-09-28 03:19:25 +02:00
parent 9efa3700e6
commit 4b133ebc40
6 changed files with 168 additions and 24 deletions

View File

@ -0,0 +1,45 @@
"items"
{
"z1518692" // Nazgul
{
"KnockbackMaxVel" "500"
"KnockbackScale" "1.0"
}
"z1397647" // Troll
{
"KnockbackMaxVel" "400"
"KnockbackScale" "0.40"
}
"z2420963" // Balrog
{
"KnockbackMaxVel" "50"
"KnockbackScale" "0.05"
}
"h6082267" // Armor
{
"NoSlowDown" "1"
"KillPush" "0"
}
"h2347138" // Horse
{
"NoSlowDown" "1"
"KillPush" "0"
}
"h2347448" // Gandalf
{
"NoSlowDown" "1"
"KillPush" "0"
}
"h2384422" // White Knight
{
"NoSlowDown" "1"
"KillPush" "0"
}
}

View File

@ -0,0 +1,8 @@
"items"
{
"z1385" // Nazgul
{
"KnockbackMaxVel" "500"
"KnockbackScale" "1.0"
}
}

View File

@ -0,0 +1,56 @@
"items"
{
"z145960" // T-Rex
{
"KnockbackMaxVel" "50"
"KnockbackScale" "0.01"
"KillPush" "0"
}
"z147102" // Balrog
{
"KnockbackMaxVel" "50"
"KnockbackScale" "0.01"
"KillPush" "0"
}
"z144572" // Titan
{
"KnockbackMaxVel" "50"
"KnockbackScale" "0.01"
"KillPush" "0"
}
"z144536" // Pyramid Head
{
"KnockbackMaxVel" "50"
"KnockbackScale" "0.01"
"KillPush" "0"
}
"z146285" // Zombie Dog
{
"KnockbackMaxVel" "50"
"KnockbackScale" "0.01"
"KillPush" "0"
}
"h144513" // Juggernaut
{
"NoSlowDown" "1"
"KillPush" "0"
}
"h146285" // Human Dog
{
"NoSlowDown" "1"
"KillPush" "0"
}
"h100001" // VIP
{
"NoSlowDown" "1"
"KillPush" "0"
}
}

View File

@ -0,0 +1,8 @@
"items"
{
"z7560944" // Barbossa
{
"KnockbackMaxVel" "250"
"KnockbackScale" "0.50"
}
}

View File

@ -1,33 +1,58 @@
"items"
{
"1551382" // Werewolf
"z1551382" // Werewolf
{
"KnockbackMaxVel" "500"
"KnockbackScale" "0.40"
"NoSlowDown" "0"
"KillPush" "1"
"ww_push" "1"
"ww_push2" "1"
"ww_push3" "1"
"ww_push4" "1"
"KnockbackMaxVel" "150"
"KnockbackScale" "0.25"
}
"1551093" // Troll
"z1551093" // Troll
{
"KnockbackMaxVel" "250"
"KnockbackScale" "0.33"
"KnockbackMaxVel" "150"
"KnockbackScale" "0.25"
}
"1551122" // Giant
"z1551122" // Giant
{
"KnockbackMaxVel" "200"
"KnockbackScale" "0.33"
}
"1551162" // Dragonpriest
{
"KnockbackMaxVel" "100"
"KnockbackMaxVel" "150"
"KnockbackScale" "0.20"
}
"z1551162" // Dragonpriest
{
"KnockbackMaxVel" "25"
"KnockbackScale" "0.05"
"KillPush" "0"
}
"h7919" // Nightingale
{
"NoSlowDown" "1"
"KillPush" "0"
}
"h6176" // Healmage
{
"NoSlowDown" "1"
"KillPush" "0"
}
"h6158" // Dovahkin
{
"NoSlowDown" "1"
"KillPush" "0"
}
"h6272" // Archmage
{
"NoSlowDown" "1"
"KillPush" "0"
}
"h6137" // Daedric
{
"NoSlowDown" "1"
"KillPush" "0"
}
}

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)