Raised This Month: $ Target: $400
 0% 

changing how much to damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 08-03-2009 , 17:44   changing how much to damage
Reply With Quote #1

when using

Code:
RegisterHam(Ham_TakeDamage, "player", "EVENT_TakeDamage");

public EVENT_TakeDamage( iVictim, inflictor, iAttacker, Float:iDamagee, damagetype )
is there a way i can do iDamagee = 10 and it will do 10 damage and not the initial 50 damage or whatever its suppose to do?
whosyourdaddy is offline
Old 08-03-2009, 17:45
crazyeffect
This message has been deleted by crazyeffect. Reason: Dumb...
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 08-03-2009 , 17:50   Re: changing how much to damage
Reply With Quote #2

Supercede the damage and do fakedamage.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 08-03-2009 , 18:02   Re: changing how much to damage
Reply With Quote #3

thats what im doing now but then it wont show those red damage sprites from where ur being shot at
whosyourdaddy is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 08-03-2009 , 18:12   Re: changing how much to damage
Reply With Quote #4

It wont show those spites, and it's impossible to reproduce the damage spites, since they are client-sided.
You should try setting the dmgbits to 10 and see if it actually does that damage instead, I guess it doesn't but it's worth a try.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 08-03-2009 , 18:23   Re: changing how much to damage
Reply With Quote #5

sadly i tried =\ and i didnt work
whosyourdaddy is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 08-03-2009 , 18:32   Re: changing how much to damage
Reply With Quote #6

PHP Code:
SetHamParamFloat(410.0); 
zacky is offline
Send a message via Skype™ to zacky
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 18:31.


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