Raised This Month: $12 Target: $400
 3% 

Changing damage in TraceAttack ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-06-2017 , 07:25   Changing damage in TraceAttack ?
Reply With Quote #1

Is it possible to change the damage from within TraceAttack ?
__________________
Depresie is offline
SpawnerF
Member
Join Date: Apr 2017
Location: Morocco
Old 07-06-2017 , 10:39   Re: Changing damage in TraceAttack ?
Reply With Quote #2

Hi,

yes you can :

Code:
    RegisterHam(Ham_TraceAttack, "player", "TraceAttack");

&

Code:
const Float:damageMultiplier = 2.0; public TraceAttack(victim, attacker, Float:damage, Float:dir[3], ptr, bits) {       if(!is_user_connected(attacker))         return;         SetHamParamFloat(3, (damage * damageMultiplier )) }
__________________
XX was created just for giving evidence and not meant to damage public servers.
&We do not test on public servers.
Thank's.
SpawnerF 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 20:22.


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