AlliedModders

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

purple_pixie 08-29-2007 05:18

Damage Types
 
So ... more in re dealing damage.

Is there a list of the damage type constants?
I couldn't find one in any of my include files.

(I'm using ExecuteHam(Ham_TakeDamage,...), if it's relevant )

Alka 08-29-2007 05:33

Re: Damage Types
 
In Ham_TakeDamage there is no "damage type"...

Code:

ExecuteHam(Ham_TakeDamage, this, idinflictor, idattacker, Float:damage, damagebits);
Hm look in instagib.sma in hamsandwich archive...
Code:

// Set the gib bits on the damage type
 SetHamParamInteger(5, dmgbits | 8192);

dunno...

purple_pixie 08-29-2007 05:44

Re: Damage Types
 
Damage bits, damage type - what's the difference?

Is there a list of damage bits, then?

Quote:

// Set the gib bits on the damage type
No damage type, eh? =P

hlstriker 08-29-2007 09:17

Re: Damage Types
 
Pretty sure if you use Damaged Souls message logging plugin and log the damage message it will tell you this information?

purple_pixie 08-29-2007 09:49

Re: Damage Types
 
Or write one ... either way, that's good advice.

Only slight problem being that I can't join my server from work - I can only add debug messages and console commands.

The other problem being that I'd rather not use my own empirical guesses at what the bits mean ... I was hoping someone might know them.

Mainly I'm looking for a "don't display hit markers" and (even more helpfully) a "don't cause user to slow" bit

EDIT: Slightly off-topic, but ... am I the only one whose HamSandwich module doesn't seem to work right?
It refuses to pass in the "inflictor" parameter, which is invariably equal to "attacker".

VEN 08-29-2007 12:25

Re: Damage Types
 
Quote:

I'd rather not use my own empirical guesses at what the bits mean ... I was hoping someone might know them.
See DMG_* constants from .\amxmodx\scripting\include\hlsdk_const.inc

Quote:

I'm looking for a "don't display hit markers"
You can block "Damage" message that is sent to a client on damage event. See .\amxmodx\scripting\include\messages.inc for details.

Quote:

"don't cause user to slow" bit
There are no such bit. You can look into Pain Shock Free plugin by Simon Logic (slogic).

purple_pixie 08-30-2007 05:35

Re: Damage Types
 
That's some pretty useful info.

( I can find this out but ... ) do all of the damage types actually mean anything?
DMG_PARALYZE says it slows the monster, but do the others have any affect?
I would assume it affects the icon displayed ...

Anywhoo, that's pretty helpful - I'll experiment around with that.


All times are GMT -4. The time now is 16:12.

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