AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   changing how much to damage (https://forums.alliedmods.net/showthread.php?t=99313)

whosyourdaddy 08-03-2009 17:44

changing how much to damage
 
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?

Xellath 08-03-2009 17:50

Re: changing how much to damage
 
Supercede the damage and do fakedamage.

whosyourdaddy 08-03-2009 18:02

Re: changing how much to damage
 
thats what im doing now but then it wont show those red damage sprites from where ur being shot at

Xellath 08-03-2009 18:12

Re: changing how much to damage
 
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.

whosyourdaddy 08-03-2009 18:23

Re: changing how much to damage
 
sadly i tried =\ and i didnt work

zacky 08-03-2009 18:32

Re: changing how much to damage
 
PHP Code:

SetHamParamFloat(410.0); 



All times are GMT -4. The time now is 18:31.

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