Raised This Month: $ Target: $400
 0% 

Editing damage dealt by custom weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DeLiriuM
Senior Member
Join Date: Dec 2006
Old 07-26-2011 , 02:41   Editing damage dealt by custom weapons
Reply With Quote #1

Hey,

I'm trying to edit a custom weapons damage dealt, but everything i try seems to fail.

So here's the code->

Code:
public TakeDamage(victim, inflictor, attacker, Float:damage, damage_type) {     if (victim == attacker || !is_user_connected(attacker))         return HAM_IGNORED;                 if (get_user_weapon(attacker) == CSW_KNIFE && !IsGrenade(inflictor) && g_Chain[attacker])     {                 SetHamParamFloat(4, 500)     }                     if (get_user_weapon(attacker) == CSW_KNIFE && !IsGrenade(inflictor) && g_Electro[attacker])     {         SetHamParamFloat(4, 80)     }     if (get_user_weapon(attacker) == CSW_KNIFE && !IsGrenade(inflictor) && g_CrowBar[attacker] && get_user_team(attacker) != get_user_team(victim))     {         SetHamParamFloat(4, 50)     }         if (get_user_team(victim) == get_user_team(attacker) && IsGrenade(inflictor))     {         return HAM_SUPERCEDE     }         return HAM_IGNORED }

Weapons deal waay too little damage. Between 15-20, no matter if it's in the head or body.

So I want the weapons to deal atleast 25 damage, and 50-70 if it's in the head...
__________________

Last edited by DeLiriuM; 07-26-2011 at 05:01.
DeLiriuM 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 01:10.


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