Raised This Month: $32 Target: $400
 8% 

What does this mean? Hamsandwich


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnimalMonster
Senior Member
Join Date: May 2020
Old 08-23-2020 , 13:37   What does this mean? Hamsandwich
Reply With Quote #1

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.

Last edited by AnimalMonster; 08-23-2020 at 13:37.
AnimalMonster is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-23-2020 , 13:46   Re: What does this mean? Hamsandwich
Reply With Quote #2

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 )
__________________
Bugsy is online now
AnimalMonster
Senior Member
Join Date: May 2020
Old 08-23-2020 , 13:51   Re: What does this mean? Hamsandwich
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
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
AnimalMonster is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-23-2020 , 14:25   Re: What does this mean? Hamsandwich
Reply With Quote #4

Just to point something out, in 99.99% of cases someone already thought or made the thing you are thinking about in this forum.
__________________

Last edited by HamletEagle; 08-23-2020 at 14:25.
HamletEagle is offline
Reply


Thread Tools
Display Modes

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 18:22.


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