Raised This Month: $ Target: $400
 0% 

Multiply slash damage by two


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-28-2012 , 14:50   Re: Multiply slash damage by two
Reply With Quote #5

oh. sorry

PHP Code:
(flDamage 30) ? SetHamParamFloat(4flDamage*2) : return HAM_HANDLED 
i figure a stab is gonna be around 55 or greater at all times. so being less than 30 would give it a pretty good threshold if anything messes with it.


Quote:
Originally Posted by Exolent[jNr] View Post
There is a plugin that measures slash and stab distances separately.
You should take a look at that code and see if it helps you.

I think it's Knife Distance by SchlumPF.
What i have to say about that is you can slash within the same distance as a stab (and quite frequently do)
Or you can check to see if the weapon is under primary, or secondary operations (left or right click) but i don't know that at the top off my head. Or at all....
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 06-28-2012 at 14:53.
Liverwiz 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 06:19.


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