Raised This Month: $ Target: $400
 0% 

How do I change the head dmg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 05-10-2010 , 14:39   Re: How do I change the head dmg
Reply With Quote #4

Quote:
Originally Posted by kostov View Post
Code:
        SetHamParamFloat(4, get_user_weapon(attacker) == CSW_KNIFE ? get_pcvar_float(CvarFloat) : damage)
I dont know too much about sethamparamfloat, but im reading this as, if its a headshot with csw_knife, hit him for 50 damage, else, just do the normal damage, so...

Code:
SetHamParamFloat(4, get_user_weapon(attacker) == CSW_KNIFE ? (damage + get_pcvar_float(CvarFloat)) : damage
that should fix it, but I dont know to be honest
__________________
+|- KARMA Respectively

HLM 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 03:34.


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