Raised This Month: $ Target: $400
 0% 

set_godmode or block fall dmg?


Post New Thread Reply   
 
Thread Tools Display Modes
gladius
Veteran Member
Join Date: Jul 2008
Location: Santiago, Chile
Old 03-03-2010 , 15:15   Re: set_godmode or block fall dmg?
Reply With Quote #11

Quote:
Originally Posted by NcB_Sav View Post
Da fuck?

Hes talking about fall damage not freezing unfreezing.
please read!!

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?
__________________
Proyects
Kreedz Chile Mod [100%] (Fixing some details).

gladius is offline
Send a message via MSN to gladius Send a message via Skype™ to gladius
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-03-2010 , 16:33   Re: set_godmode or block fall dmg?
Reply With Quote #12

You can use Ham_TakeDamage and set threshold of damage. The damage with power below this threshold will be suppressed.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-03-2010 , 16:40   Re: set_godmode or block fall dmg?
Reply With Quote #13

Oh, sorry. I misunderstood your problem.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-03-2010 , 17:17   Re: set_godmode or block fall dmg?
Reply With Quote #14

ty @ all. i'm testing all ways and will report which way is better.

tried with DMG_GENERIC and 4

ijust have to test it on server and check the situations i will report what i will use
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-03-2010 , 17:25   Re: set_godmode or block fall dmg?
Reply With Quote #15

PHP Code:
#define DMG_GENERIC                     0           // Generic damage was done
#define DMG_CRUSH                       (1<<0)      // Crushed by falling or moving object
#define DMG_BULLET                      (1<<1)      // Shot
#define DMG_SLASH                       (1<<2)      // Cut, clawed, stabbed
#define DMG_BURN                        (1<<3)      // Heat burned
#define DMG_FREEZE                      (1<<4)      // Frozen
#define DMG_FALL                        (1<<5)      // Fell too far
#define DMG_BLAST                       (1<<6)      // Explosive blast damage
#define DMG_CLUB                        (1<<7)      // Crowbar, punch, headbutt
#define DMG_SHOCK                       (1<<8)      // Electric shock
#define DMG_SONIC                       (1<<9)      // Sound pulse shockwave
#define DMG_ENERGYBEAM                  (1<<10)     // Laser or other high energy beam 
#define DMG_NEVERGIB                    (1<<12)     // With this bit OR'd in, no damage type will be able to gib victims upon death
#define DMG_ALWAYSGIB                   (1<<13)     // With this bit OR'd in, any damage type can be made to gib victims upon death.
#define DMG_DROWN                       (1<<14)     // Drowning
#define DMG_PARALYZE                    (1<<15)     // Slows affected creature down
#define DMG_NERVEGAS                    (1<<16)     // Nerve toxins, very bad
#define DMG_POISON                      (1<<17)     // Blood poisioning
#define DMG_RADIATION                   (1<<18)     // Radiation exposure
#define DMG_DROWNRECOVER                (1<<19)     // Drowning recovery
#define DMG_ACID                        (1<<20)     // Toxic chemicals or acid burns
#define DMG_SLOWBURN                    (1<<21)     // In an oven
#define DMG_SLOWFREEZE                  (1<<22)     // In a subzero freezer
#define DMG_MORTAR                      (1<<23)     // Hit by air raid (done to distinguish grenade from mortar)
#define DMG_TIMEBASED                   (~(0x3fff)) // Mask for time-based damage 
ezpz solution;
PHP Code:
if( !( dmgbits DMG_BULLET ) || !( dmgbits DMG_SLASH ) )
    return 
HAM_SUPERCEDE
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-05-2010 , 04:29   Re: set_godmode or block fall dmg?
Reply With Quote #16

Quote:
Originally Posted by Dr.G View Post
Ham_TakeDamage... If(dmgBits & DMG_FALL) return HAM_SUPERCEDE
<< best way ( i think so )

ty @ all
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:41.


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