Posts: 147
Threads: 41
Joined: Dec 2010
Reputation:
14
Hi guys i need a little help,
how i can give to a player dead silence pro?
Someone suggest me give specialty_falldamage but this doesnt work!
My Reputation is low, help me with +1 rep if i helped you!
Posts: 1,323
Threads: 24
Joined: Nov 2010
Reputation:
91
specialty_falldamage is a script perk.
I suggest you check in OnPlayerDamaged for MOD MOD_FALLING and ClientNum/XUID and then set damage to 0.
Posts: 147
Threads: 41
Joined: Dec 2010
Reputation:
14
public override void OnPlayerDamage(Entity player, Entity inflictor, Entity attacker, int damage, int dFlags, string mod, string weapon, Vector3 point, Vector3 dir, string hitLoc)
{
if (mod == "MOD_FALLING")
{
player.Call("iprintlnbold", "^2DAMAGE " + damage);
damage = 0;
}
}
What`s wrong?
My Reputation is low, help me with +1 rep if i helped you!
Posts: 147
Threads: 41
Joined: Dec 2010
Reputation:
14
Oh you`re right it void, thank you for your help!
My Reputation is low, help me with +1 rep if i helped you!