Hello, I've tried all those Killer HP mods out there and they all seem to return the value of 140 sometimes even though it is impossible for anyone to reach that amount of HP ( no skill upgrades )..
Anyone else noticed this behavior ?
Announce Killer HP Bug?
Moderators: Forum moderators, developers
- =FF=im2good4u
- Posts: 3821
- Joined: Wed Feb 05, 2003 7:30 am
- Location: The Netherlands, HOLLAND
- Contact:
well if the script would do it the normal way i dont see how it can ever return the wrong value unless its some hard difficult complex function that arent needed
<a href="http://bunnyherolabs.com/adopt/showpet. ... dQ=="><img src="http://petimage.bunnyherolabs.com/adopt ... Q0dQ==.png" width="80" height="100" border="0"></a>
- =FF=im2good4u
- Posts: 3821
- Joined: Wed Feb 05, 2003 7:30 am
- Location: The Netherlands, HOLLAND
- Contact:
hmm maybe if u shoot from a smg your health is set to the health of the smg
<a href="http://bunnyherolabs.com/adopt/showpet. ... dQ=="><img src="http://petimage.bunnyherolabs.com/adopt ... Q0dQ==.png" width="80" height="100" border="0"></a>
If you want anyone to shed light on this, you will have to post the script you are getting this error from because none I know of would exhibit this behaviour. They typically all use the following 2 lines in some form:Dee wrote:okay, looks like if you don't HIT the person who killed you, the value is always incorrect.. that if he was shooting you with an smg.. I'm running 2.60b on an i386 linux kernel
Code: Select all
function et_Obituary(victimnum, killernum, meansofdeath)
Code: Select all
local killerhp = et.gentity_get(killernum, "health")
GhosT:McSteve
Ghostworks Gaming Community
Ghostworks Gaming Community
conclusion:
victim:
296/2=148
got 123
requiem4dream killed with -296 HP, but he died
got -176
requiem4dream was exploded by requiem4dream's grenade
got -176
killer:
got 90
got -22 [90 - (2*56) = -22]
requiem4dream failed to spot his own 2 landmines.
got -22
got -22
got -148
----------
killer:
got 85
got -4 [85 - = -4]
requiem4dream failed to spot his own landmine.
got -4
victim:
got 123
requiem4dream killed with -8 HP, but he died
got -176
requiem4dream was exploded by requiem4dream's grenade
got -176
-----------
correct!
killer:
got 100
got 49 [killer failed to spot his own 1st landmine 100-51=49]
got -2 [killer failed to spot his own 2nd landmine 49-51=-2]
got -59 [killer failed to spot his own 3rd landmine. -2-(~51)~-59 coz mine can get to max 60 hp]
-59 * 2 = -118
victim:
got 100
killer killed with -118 HP, but he died
got -176
requiem4dream was exploded by killer's grenade
got -176
1) if u died from grenade your hp is -176
2) killer's real hp when killer died before the victim = hp before death - hp from the means of killer's death, but it will be always < -176
killer's hp from function et_Obituary when killer died before the victim = 2 * [(hp before death - hp from the means of killer's death ) < -176]
3) when killer is alive the real hp of killer is the same as a result from function et_Obituary
4) script is showing incorrect hp of killer before his death only when the killer died by his weapons
right?
wolFTeam.pl