AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ham_TakeDamage plugin priority? (https://forums.alliedmods.net/showthread.php?t=131741)

Backstabnoob 07-08-2010 10:19

Ham_TakeDamage plugin priority?
 
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.

Brreaker 07-08-2010 10:39

Re: Ham_TakeDamage plugin priority?
 
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 :)

YamiKaitou 07-08-2010 11:37

Re: Ham_TakeDamage plugin priority?
 
Why not just test it?

Backstabnoob 07-08-2010 15:33

Re: Ham_TakeDamage plugin priority?
 
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.

YamiKaitou 07-08-2010 17:32

Re: Ham_TakeDamage plugin priority?
 
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.


All times are GMT -4. The time now is 07:10.

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