Announce Killer HP Bug?

Discussions about ET modding (sdk code, player/weapon modeling)

Moderators: Forum moderators, developers

Post Reply
Dee
Posts: 20
Joined: Fri Jun 01, 2007 2:36 pm

Announce Killer HP Bug?

Post by Dee »

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 ?
User avatar
Luk4ward
Posts: 236
Joined: Sun Jul 30, 2006 1:55 pm
Location: Poland
Contact:

Post by Luk4ward »

hello,

i was testing this and all seems fine, copy past script maybe there is an error somewhere
wolFTeam.pl
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

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
Dee
Posts: 20
Joined: Fri Jun 01, 2007 2:36 pm

Post by Dee »

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
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

hmm maybe if u shoot from a smg your health is set to the health of the smg :roll:
McSteve
Posts: 113
Joined: Tue Sep 12, 2006 7:41 am

Post by McSteve »

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
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:

Code: Select all

function et_Obituary(victimnum, killernum, meansofdeath)
and

Code: Select all

local killerhp = et.gentity_get(killernum, "health")
So when you get killed, the mod knows who killed you and does a test at that time to find their hp. None of the scripts I have ever seen care one bit if you have damaged the person that killed you.
GhosT:McSteve
Ghostworks Gaming Community
User avatar
Luk4ward
Posts: 236
Joined: Sun Jul 30, 2006 1:55 pm
Location: Poland
Contact:

Post by Luk4ward »

:?:

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
conclusion:

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
Post Reply