Raised This Month: $ Target: $400
 0% 

Proper Friendly Fire


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-28-2011 , 11:22   Proper Friendly Fire
Reply With Quote #1

Ok, this is really starting to annoy me. I can't figure out how to make team attack / friendly fire work properly. By properly I mean like it would in a deathmatch, so attacking players who are supposedly on your team ( Ct attacking a Ct ), will do just as much damage as attacking an enemy ( Ct attack a T ).

First thing I've done is turned friendly fire on.
I want each hit to do 10 damage.

PHP Code:
RegisterHamHam_TakeDamage"player""hamTakeDamage" );

public 
hamTakeDamageVictimInflictorAttackerFloat:DamageDamagebits )

I'm not exactly sure how I'm supposed to work it or what to return in the hook. I've played around with SetHamParamFloat() and a couple of other things and returns, but I'm still ending up with the "friendly fire" effect damage.

Please help me out. Thanks!
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
 



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


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