Death System
#4

OnPlayerTakeDamage and OnPlayerGiveDamage have weaponid parameter, you can check that against whatever you want, WEAPON_COLLISION id 54 is what makes a player loses HP if they jump, then calculate the lost damage with the help of GetPlayerHealth and undo it by SetPlayerHealth.
Reply


Messages In This Thread
Death System - by Barnwell - 23.06.2016, 15:49
Re: Death System - by Barnwell - 23.06.2016, 15:58
Re: Death System - by Stones - 23.06.2016, 16:03
Re: Death System - by [KHK]Khalid - 23.06.2016, 16:10

Forum Jump:


Users browsing this thread: 3 Guest(s)