[T1] VP4 Killtracking Fix

[meph]DooM!
01-21-2003, 07:45 AM
This KillTrak version fixes the vulnerability/bug in the original VP4 code while still maintaining it's breakneck speed.

Any improvements/bugs added by me..

http://www.team5150.com/~andrew/scripts/KillTrak.cs

R@ND0M
01-21-2003, 08:40 AM
z((((((T

Nikita
01-21-2003, 09:19 AM
PResto POrt??

[meph]DooM!
01-21-2003, 09:29 AM
Yea.. change

Event::Trigger(EventKillT rak, $killTrak::Victim, $KillTrak::Killer, $killTrak::Weapon);

to

Event::Trigger(EventKillT rak, $killTrak::Killer, $KillTrak::Victim, $killTrak::Weapon);

loop
01-21-2003, 12:05 PM
Originally posted by [meph]DooM!
This KillTrak version fixes the vulnerability/bug in the original VP4 code while still maintaining it's breakneck speed.

Any improvements/bugs added by me..

http://www.team5150.com/~andrew/scripts/KillTrak.cs


huh? what was the bug exactly? what did it do?

curious cause i've been running vp4 for a while and have not seen any problems with it...

Runar
01-21-2003, 12:51 PM
"Mortars mortars Mortars.1 into oblivion"

Stuff like that.. if people are using odd names..

[meph]DooM!
01-21-2003, 01:07 PM
You won't notice any problems unless you're looking for exact stat tracking, really..

For example, if "Bob", "Rob", and "Bobbin" were in the game, and in the client list in that order, a kill such as

"Rob chains down Bobbin" would process like so:

Is "Bob" in the message? Yes, at position 16
Is "Rob" in the message? Yes, at position 0
Is "Bobbin" in the message? Yes at position 16

The first two names found are used, so Rob will get the kill, and Bob will get the death

It gets worse if some idiot plays as "e" or "a" or something ;/

LikWid
01-21-2003, 09:29 PM
Any of you know why when i demo drop (when using vp4) my teamsize hud just adds to the old team sizes making the teams like 24 v 27?

Runar
01-22-2003, 01:46 AM
You have a custom disconnect function that overwrites the one in VP wich have an event to let the scripts know you have disconnected.

SupaKalel
01-23-2003, 08:38 AM
Did you re-update this Andrew cuz my filtermsg stuff wasn't appearing at all after i downloaded this. It was working but it wouldn't appear on the screen at all tho.