AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What does this mean? Hamsandwich (https://forums.alliedmods.net/showthread.php?t=326926)

AnimalMonster 08-23-2020 13:37

What does this mean? Hamsandwich
 
Hey, from the title you see "what does this mean?" bcs idk if someone have ever think of what does "which" from SetHamParamFloat or any other SetHamParam. Does anyone know what is the meaning of that? Everyone puts 4 there but does they know what that "4" means? If anyone knows pls feel free to answer me this question.

Bugsy 08-23-2020 13:46

Re: What does this mean? Hamsandwich
 
It's the argument number that you are setting. A common one you may see is altering damage in HamTakeDamage. Look through ham_const.inc for information on the function you are using.

HamTakeDamage( this, idinflictor, idattacker, Float:damage, damagebits);

1 = this
2 = idinflictor
3 = idattacker
4 = damage
5 = damagebits

SetHamParamFloat( 4 , 100.0 )

AnimalMonster 08-23-2020 13:51

Re: What does this mean? Hamsandwich
 
Quote:

Originally Posted by Bugsy (Post 2715275)
It's the argument number that you are setting. A common one you may see is altering damage in HamTakeDamage. Look through ham_const.inc for information on the function you are using.

HamTakeDamage( this, idinflictor, idattacker, Float:damage, damagebits);

1 = this
2 = idinflictor
3 = idattacker
4 = damage
5 = damagebits

SetHamParamFloat( 4 , 100.0 )

Thx for informing me , i was thinking of the same thing but wasn't sure so i asked out , thanks

HamletEagle 08-23-2020 14:25

Re: What does this mean? Hamsandwich
 
Just to point something out, in 99.99% of cases someone already thought or made the thing you are thinking about in this forum.


All times are GMT -4. The time now is 13:45.

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