Raised This Month: $ Target: $400
 0% 

How to give teammate damage as like an enemy?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
griefhy
Member
Join Date: Jul 2006
Old 02-07-2009 , 07:50   How to give teammate damage as like an enemy?
Reply With Quote #1

How to use weapon give teammate damage ,as like an enemy?
It's Possible?
If possible,how ?
thanks!
griefhy is offline
bomnacama
Senior Member
Join Date: Dec 2008
Location: Portugal
Old 02-07-2009 , 08:15   Re: How to give teammate damage as like an enemy?
Reply With Quote #2

you can use the ffa plugin. take a look at the code
__________________



Please FEED MY HAMSTERS by giving me +karma
bomnacama is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 02-07-2009 , 08:15   Re: How to give teammate damage as like an enemy?
Reply With Quote #3

You are probably talking about mp_friendlyfire. Just set it to 1.
SnoW is offline
Send a message via MSN to SnoW
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-07-2009 , 08:21   Re: How to give teammate damage as like an enemy?
Reply With Quote #4

Quote:
Originally Posted by SnoW View Post
You are probably talking about mp_friendlyfire. Just set it to 1.
It will receive with ~30% less than the real damage.
__________________

anakin_cstrike is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 02-07-2009 , 08:30   Re: How to give teammate damage as like an enemy?
Reply With Quote #5

Quote:
Originally Posted by anakin_cstrike View Post
It will receive with ~30% less than the real damage.
Ye. Still I just guessed it would be enough for him. I think that mp_friendlyfire does weapons give teammate damage as like an enemy. With mp_friendlyfire the hits act the same, even it doesn't do the exact same dmg.
SnoW is offline
Send a message via MSN to SnoW
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-07-2009 , 09:10   Re: How to give teammate damage as like an enemy?
Reply With Quote #6

Maybe this is what you want (not tested)?
Code:
#include <amxmodx> #include <hamsandwich>   public plugin_init() RegisterHam(Ham_TakeDamage, "player", "hTakeDamage");   public hTakeDamage(iVictim, iInflictor, iAttacker, Float:fDmg) {         if (!is_user_alive(iVictim) || !is_user_alive(iAttacker))                 return;           if (get_user_team(iVictim) != get_user_team(iAttacker))                 SetHamParamFloat(4, fDmg * 1.30); }
__________________
hleV is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-07-2009 , 09:17   Re: How to give teammate damage as like an enemy?
Reply With Quote #7

Does the TA damage has the same percentaje everytime ?
__________________

anakin_cstrike is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-07-2009 , 09:41   Re: How to give teammate damage as like an enemy?
Reply With Quote #8

I've made some tests and the result is ~2.9 times less damage to a teammate than enemy.

So if setting fDmg * 2.9, the damage done to teammate would be almost the same as to enemy.
__________________
hleV is offline
bomnacama
Senior Member
Join Date: Dec 2008
Location: Portugal
Old 02-07-2009 , 09:49   Re: How to give teammate damage as like an enemy?
Reply With Quote #9

I think with ffa plugin the damage done to teammate is same as to enemy.
__________________



Please FEED MY HAMSTERS by giving me +karma
bomnacama is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-07-2009 , 10:08   Re: How to give teammate damage as like an enemy?
Reply With Quote #10

Yes. But it also count TK as enemy kill, no team attack message, no -frag ant etc.
__________________
hleV 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 17:08.


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