Raised This Month: $ Target: $400
 0% 

event_damage and friendly fire


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-30-2012 , 11:12   event_damage and friendly fire
Reply With Quote #1

If friendly fire is off, does amxmodx/Half Life engine/cstrike send a "Damage" event when you shoot your team? or do i have to incorporate a check for that into my code?
Liverwiz is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-30-2012 , 11:22   Re: event_damage and friendly fire
Reply With Quote #2

No, because damage is never done.
You can turn on friendly fire, hook Ham_TakeDamage, check team, and if same team then supercede the damage hook.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-30-2012 , 11:35   Re: event_damage and friendly fire
Reply With Quote #3

Thank you!
Liverwiz is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 04-30-2012 , 12:57   Re: event_damage and friendly fire
Reply With Quote #4

Wouldnt be using traceattack be bether?
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-30-2012 , 16:36   Re: event_damage and friendly fire
Reply With Quote #5

traceattack seemed really complex to me.
Liverwiz is offline
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 07:51.


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