Modifying fall damage

Users who are viewing this thread

Pio

Regular
Is it possible to change the amount of fall damage and the way it is applied to agents? Where can I find it in the code?
 
Is there any code related to fall damage in the module system? I would like to modify it a little.
 
There is not. You can detect it in ti_on_agent_hit if the attacker id is the same as the victim id. But be careful because it will be triggered if the teamdamage is on and the player hits another player (you can filter that out too (by storing when it hit someone....eeeehhh, hard to explain), but it's more complicated).
 
Yeah, reflective damage would be a problem. There might be another way of detecting the fall damage, but I'm not sure. In engine version 1.168 in ti_on_agent_hit you can check which bone was hit. If I only knew which one was hit every time when agent receives the fall damage I could maybe check for that. I will check it out, but your solution would probably work too.
 
Back
Top Bottom