Raised This Month: $ Target: $400
 0% 

Solved SetHamParamFloat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 07-27-2022 , 13:03   Re: SetHamParamFloat
Reply With Quote #1

Code:
 /**      * Description:     Usually called whenever an entity takes any kind of damage.      *                  Inflictor is the entity that caused the damage (such as a gun).      *                  Attacker is the entity that tirggered the damage (such as the gun's owner).      * Forward params:  function(this, idinflictor, idattacker, Float:damage, damagebits);      * Return type:     Integer.      * Execute params:  ExecuteHam(Ham_TakeDamage, this, idinflictor, idattacker, Float:damage, damagebits);      */     Ham_TakeDamage,

"which" param from SetHamParamFloat, represents the argument you want to alterate.

Ham_TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)

You want to change "damage" which is fourth parameter:
Code:
SetHamParamFloat(4, some_value)
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
wilian159
Member
Join Date: Dec 2013
Old 07-27-2022 , 13:07   Re: SetHamParamFloat
Reply With Quote #2

Quote:
Originally Posted by Shadows Adi View Post
Code:
 /**      * Description:     Usually called whenever an entity takes any kind of damage.      *                  Inflictor is the entity that caused the damage (such as a gun).      *                  Attacker is the entity that tirggered the damage (such as the gun's owner).      * Forward params:  function(this, idinflictor, idattacker, Float:damage, damagebits);      * Return type:     Integer.      * Execute params:  ExecuteHam(Ham_TakeDamage, this, idinflictor, idattacker, Float:damage, damagebits);      */     Ham_TakeDamage,

"which" param from SetHamParamFloat, represents the argument you want to alterate.

Ham_TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)

You want to change "damage" which is fourth parameter:
Code:
SetHamParamFloat(4, some_value)
makes perfect sense, thanks
__________________
wilian159 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 00:19.


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