Raised This Month: $ Target: $400
 0% 

Damage Types


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 08-29-2007 , 05:18   Damage Types
Reply With Quote #1

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 )
purple_pixie is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-29-2007 , 05:33   Re: Damage Types
Reply With Quote #2

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...
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 08-29-2007 at 05:36.
Alka is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 08-29-2007 , 05:44   Re: Damage Types
Reply With Quote #3

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
purple_pixie is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 08-29-2007 , 09:17   Re: Damage Types
Reply With Quote #4

Pretty sure if you use Damaged Souls message logging plugin and log the damage message it will tell you this information?
hlstriker is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 08-29-2007 , 09:49   Re: Damage Types
Reply With Quote #5

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".

Last edited by purple_pixie; 08-29-2007 at 09:51.
purple_pixie is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 08-29-2007 , 12:25   Re: Damage Types
Reply With Quote #6

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).
VEN is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 08-30-2007 , 05:35   Re: Damage Types
Reply With Quote #7

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.
purple_pixie is offline
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 16:12.


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