[Tutorial] Death System
#10

If you're gonna give your players weapons that deal more than 15.0 damage, since that's your threshold for getting into the injured state, your death system will fail. Imagine a player is left with 16.0HP and gets shot by a player using a sniper rifle which deals about 49.0 damage. OnPlayerTakeDamage is going to get called AFTER the player receives the damage which means it is reverted and not prevented. Of course, if it is intended that a player can die instantly without getting into the injured state this system does its job.
Reply


Messages In This Thread
Death System - by Wolfe - 26.04.2016, 12:32
Re: Death System - by Micko123 - 26.04.2016, 16:46
Re: Death System - by Micko123 - 26.04.2016, 17:02
Re: Death System - by Ritzy2K - 26.04.2016, 18:23
Re: Death System - by Wolfe - 26.04.2016, 20:39
Re: Death System - by Micko123 - 27.04.2016, 10:42
Re: Death System - by Wolfe - 27.04.2016, 12:55
Re: Death System - by Micko123 - 27.04.2016, 15:33
Re: Death System - by Wolfe - 30.04.2016, 04:19
Re: Death System - by Manyula - 02.05.2016, 15:41

Forum Jump:


Users browsing this thread: 3 Guest(s)