does anyone have a kill pop up script for presto?

ragingbunny
07-07-2003, 01:44 PM
please send to me in irc

mongors
07-07-2003, 02:35 PM
// Script: KillPop.cs
// Author: powdahound
// Website: http://hosted.tribes-universe.com/powda/tribes/scripts.php#killpop
// Email: powdahound@nitrousonline. net
// Date: 2-2-01
// Function: Gives you a popup when you kill/get killed, no new huds that take up space either.
// Comments: Needs Presto :(

// If you want them on the bottom go through and change all the "remoteTP"s to "remoteBP"s

$powd :time = 5; //Change this to change the duration of the popups.

Include("Presto\\Event.cs");
Include("Presto\\TeamTrak.cs");

Event::Attach(eventKillTr ak, powd :handlekillpop);

function powd :handlekillpop(%killer, %victim, %weapon) {

%me = getManagerID();
%sKiller = Client::getName(%killer);
%sVictim = Client::getName(%victim);

if( %victim == %me && %weapon == "Suicide" ) {
remoteTP(2048, "<JC><F1>You killed yourself.", $powd :time);
} else if( %victim == %me && %weapon == "Team Kill" ) {
remoteTP(2048, "<JC><F1>Teamkilled by <f2>"@%sKiller, $powd :time);
} else if( %victim == %me && %weapon == "Turret" ) {
remoteTP(2048, "<JC><F1>You were killed by a turret.", $powd :time);
} else if( %killer == %me && %weapon == "Team Kill" ) {
remoteTP(2048, "<JC><F1>You teamkilled <F2>"@%sVictim, $powd :time);
} else if( %victim == %me ) {
remoteTP(2048, "<JC><F2>"@%sKiller@"<F1> smacked you with their <f2>"@%weapon, $powd :time);
} else if( %killer == %me ) {
remoteTP(2048, "<JC><F1>You smacked <f2>"@%sVictim@"<f1> with your <f2>"@%weapon, $powd :time);
} else if( %weapon == %debris ) {
remoteTP(2048, "<JC><F1>You were killed by debris.", $powd :time);
}
}

ragingbunny
07-07-2003, 07:42 PM
thx :grimreape

Pachacutec
07-12-2003, 01:36 PM
rb remind me to send you the demos next time i'm irc ;)

SuperSlug
07-12-2003, 02:56 PM
This one is a bit cleaner code wise if you care. Not sure it works with Presto though.

function CleanName(%name)
{
%name = String::Replace(%name, ">", "_");
%name = String::Replace(%name, "<", "_");
return %name;
}

function KillShow(%killer, %victim, %weapon)
{
if(%victim == getmanagerid() || %killer == getmanagerid())
remoteTP(2048, "<jc><f1>Killer: <F2>" @ CleanName(Client::getName (%killer)) @ " <F1>Victim: <F2>" @ CleanName(Client::getName (%victim)) @ "\n<F1>Weapon: <F2>" @ %weapon, 3);
}

Event::Attach(eventKillTr ak, KillShow);
From EvTribes 1.4

|KiLLeR2001|
07-12-2003, 03:57 PM
I <3 powda's killpop ;d

ragingbunny
07-12-2003, 08:20 PM
i need one that pops up on the bottom like in botb2, thanks.

Tani
07-12-2003, 08:56 PM
change remoteTP to remoteBP I think

SuperSlug
07-12-2003, 09:10 PM
change remoteTP to remoteBP