Raised This Month: $ Target: $400
 0% 

Ham_TakeDamage plugin priority?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-08-2010 , 10:19   Ham_TakeDamage plugin priority?
Reply With Quote #1

I'm not very sure about one thing.

Let's say I have two plugins:

damage1.amxx
damage2.amxx

which are loaded at the same order.

damage1 contains:

if(weapon == CSW_M4A1)
SetHamParamFloat(4, Damage * 1.2)

damage2 contains:

if(skill == 3)
SetHamParamFloat(4, Damage * 1.3)

and I do with M4A1 about 30 dmg, while skill is equal to three. Will Ham handle it like this:

30 * 1.2 * 1.3?
and the shot will deal about 46 damage?

Thanks for replies.
Backstabnoob is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 07-08-2010 , 10:39   Re: Ham_TakeDamage plugin priority?
Reply With Quote #2

As far as I know yes, not pretty sure if it gets both of them or only the one that is the HIGHEST in the plugins.ini, yet I think that it gets both of them
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-08-2010 , 11:37   Re: Ham_TakeDamage plugin priority?
Reply With Quote #3

Why not just test it?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-08-2010 , 15:33   Re: Ham_TakeDamage plugin priority?
Reply With Quote #4

Well, as long as it's very hard (it depends on distance, aiming) to get the damage with restarts etc., I rather ask here, because I don't want to spend my life sitting on a computer chair trying to get if the damage was 42 or 46.
Backstabnoob is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-08-2010 , 17:32   Re: Ham_TakeDamage plugin priority?
Reply With Quote #5

Ever hear of Debug messages? In this case, create 3 plugins to assist with the debugging/testing.

Plugin 1: Print the damage to see the original damage, then modify it.
Plugin 2: Print the damage to see if it changes, then modify it.
Plugin 3: Print the damage so you know the final count.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 07:10.


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