AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   No Fall Damage (https://forums.alliedmods.net/showthread.php?t=113622)

Doc-Holiday 12-28-2009 16:37

No Fall Damage
 
For some reason using the code below it dosent block fall damage. I have searched the forums and found this method of doing it.

PHP Code:

if(Is_Paratrooper[victim] && damagebits DMG_FALL)
        {
            
SetHamParamFloat(40.0);
        } 


Xellath 12-28-2009 16:39

Re: No Fall Damage
 
Code:
if(Is_Paratrooper[victim] && damagebits & DMG_FALL) {     return HAM_SUPERCEDE; // will block the damage from being executed }

Doc-Holiday 12-28-2009 16:44

Re: No Fall Damage
 
Quote:

Originally Posted by Xellath (Post 1034363)
Code:
if(Is_Paratrooper[victim] && damagebits & DMG_FALL) { return HAM_SUPERCEDE; // will block the damage from being executed }


i fixed it im an idiot.... i had the check
PHP Code:

if(is_user_connected[attacker]) 

because i modify the damage of alot of other classes thanks a bunch.


All times are GMT -4. The time now is 04:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.