I'm about to make a map where i need a health system.
- When the player spawn he will lose 90hp leaving him 10hp
- There will be ports you can go through which will provide the player with 10hp per port.
- if the player falls down, hit a wall, or just fail - he will be stripped down to 10hp again and teleported to start.
First problem
The problem is that the player will be able to go through the ports as many times he want to. So i can't tie the trigger_hurt to a trigger_multiple, because then he would be able to just heal himself from one port. I can't tie it to a trigger_once since there will be more players in the game, which also needs to go through the ports and get health. And lastly, I can't make it a trigger_multiple that only "fires once", because players will retry the levl many times.
Second problem
As the player go through the map, let's say he will fail after getting to 40hp. I need him to be stripped to 10hp, but I can't only make a trigger_hurt, since players will fail at different hp-levels. Therefore, I need some kind of system that can recognize how much hp the player has and then strip it to 10hp.
I hope you guys can help. If you have the time, please send me a .bsp with the example







