Raised This Month: $ Target: $400
 0% 

World Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xhonor
New Member
Join Date: Apr 2012
Location: Kaliningrad
Old 05-11-2012 , 14:12   World Damage
Reply With Quote #1

Hi scripters.

I want to do so that does not damage anything except weapons (from falls from a height of up to flooding in the water, etc. (world damage).

I tried to do differently, nothing came of it. Tests for DeathRun server, drop down (under the trap, the lethal zone) is still dying.

How do I disable any damage, except for weapons?
Xhonor is offline
Send a message via Skype™ to Xhonor
Saki
New Member
Join Date: Apr 2012
Location: Tula
Old 05-11-2012 , 14:19   Re: World Damage
Reply With Quote #2

Quote:
Originally Posted by Xhonor View Post
Hi scripters.

I want to do so that does not damage anything except weapons (from falls from a height of up to flooding in the water, etc. (world damage).

I tried to do differently, nothing came of it. Tests for DeathRun server, drop down (under the trap, the lethal zone) is still dying.

How do I disable any damage, except for weapons?
Use

#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<< /* 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 */
/* time-based damage */
#define DMG_TIMEBASED (~(0x3fff)) /* mask for time-based damage */
/* TF Additions */
#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<<1 /* 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) */

Last edited by Saki; 05-11-2012 at 14:19.
Saki is offline
Send a message via ICQ to Saki Send a message via Skype™ to Saki
Xhonor
New Member
Join Date: Apr 2012
Location: Kaliningrad
Old 05-11-2012 , 14:29   Re: World Damage
Reply With Quote #3

Not Work!
Xhonor is offline
Send a message via Skype™ to Xhonor
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-11-2012 , 14:34   Re: World Damage
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init()
    
RegisterHam(Ham_TakeDamage"player""OnTakeDamage");

public 
OnTakeDamage(victiminflictorattacker)
    return 
attacker HAM_IGNORED HAM_SUPERCEDE
hleV is offline
Xhonor
New Member
Join Date: Apr 2012
Location: Kaliningrad
Old 05-11-2012 , 14:47   Re: World Damage
Reply With Quote #5

How can I leave this function when that was the weapon damage?
And then the shooting and no damage!
Xhonor is offline
Send a message via Skype™ to Xhonor
Reply


Thread Tools
Display Modes

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 00:31.


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