November 06, 2012, 11:22:25 PM by mission in Programming
So im starting work on moving the freeze mode code i have so far for 4.2.xxx to 4.1 as i have what i need to freeze a player in 4.1, cant seem to find it in 4.2
.
The way it will work:
when a player is shot and there health should go below 1 the damage is blocked and there health is set to 1, and cannot go lower, also the initial freeze adds a kill to the person that froze them and a death to the player frozen. Over time the frozen player regens health until they have ~95 hp. once a player has >= 95 hp from the regen or someone healing them, they are automatically unfrozen. while frozen the player doesnt have a weapon. when all of the players on one team are frozen the round ends and the team that isnt completely frozen gains a point. So far i dont have the spectator feature for when a player is frozen :
EDIT: also forgot, while a player is frozen they are unable to bleed.