set_godmode or block fall dmg?
hi :D
http://forums.alliedmods.net/showthread.php?t=120286 definded 2 teams ( catchers & fleers ) the fleers have only 30 sec. to hide. after 30 sec. i changed the maxspeed = 0.1 & user gravity on *10.0 problem : when a user is @ jumping and the countdown is over, he get *10.0 of standard gravity and he falls down and he is dead. when i set godmode on user for example for 1 sec., player can jump out of map & try to hide under map. when i block fall dmg it's the same. do you have any ideas what i can do to block it? :( |
Re: set_godmode or block fall dmg?
Ham_TakeDamage... If(dmgBits & DMG_FALL) return HAM_SUPERCEDE
|
Re: set_godmode or block fall dmg?
but imaging you fall out of the map.
you know for sure as_oilrig. whats when you fall out of the map? the damage which you get from falling, will be ignored :( |
Re: set_godmode or block fall dmg?
then you gotta findout how far he is above ground and if greater then X dont block fall damage maybe...
|
Re: set_godmode or block fall dmg?
oh goo0o0o0o0o0o0o0ood idea :P
i'll try it :P |
Re: set_godmode or block fall dmg?
Maybe kill-zones in out of map zones?
|
Re: set_godmode or block fall dmg?
What about DMG_GENERIC ?
|
Re: set_godmode or block fall dmg?
Or check if he is crushed maybe ( DMG_CRUSH ) ...
If((dmgBits & DMG_FALL) && !(dmgBits & DMG_CRUSH)) return HAM_SUPERCEDE Should be fast to test... |
Re: set_godmode or block fall dmg?
you can use FL_FROZEN
try this ( This code I think it has everything you need :) ) PHP Code:
|
Re: set_godmode or block fall dmg?
Quote:
Da fuck? Hes talking about fall damage not freezing unfreezing. |
| All times are GMT -4. The time now is 08:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.