I would need to adjust mp_freezetime for each map to fit the time before players reach the ground which is something I am not looking for because I have team of admins that change the maplist quite often but are not allowed to change server CVars. I could even use a set_task for that, I've already considered these options but it's unbearably time-consuming to maintain the individual settings for each map…
Edit: I've added Ham version to the first post.
I'm interested in the answer to the detecting player touch ground "event", but also in
the pure theory, but I'm not sure whether joaquimandrade reads Scripting Help. :D
Edit2: Following are not solutions to my problem:
- Hooking Ham_TakeDamage, disabling and returning HAM_SUPERCEDE after first hit // because in some cases player gets more than one hit before reaching the ground
- Hooking Ham_TakeDamage, disabling and returning HAM_SUPERCEDE after DMG_FALL // because in some cases player doesn't fall but gets damage differently
- Using set_task or any equivalent // because there would have to be per-map configs which would take much time to test, setup and maintain (as gravity and therefore time to fall can differ)
- (Can't remember more, but I've tried more)