AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   event_damage and friendly fire (https://forums.alliedmods.net/showthread.php?t=184059)

Liverwiz 04-30-2012 11:12

event_damage and friendly fire
 
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?

Exolent[jNr] 04-30-2012 11:22

Re: event_damage and friendly fire
 
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.

Liverwiz 04-30-2012 11:35

Re: event_damage and friendly fire
 
Thank you!

mottzi 04-30-2012 12:57

Re: event_damage and friendly fire
 
Wouldnt be using traceattack be bether?

Liverwiz 04-30-2012 16:36

Re: event_damage and friendly fire
 
traceattack seemed really complex to me.


All times are GMT -4. The time now is 07:51.

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