Hey,can somebody put here some killstreaks script?
Thanks!
Printable View
Hey,can somebody put here some killstreaks script?
Thanks!
Hello Rocky!
Please look up as first if there is already a thread about that.
If there are not a tutorial about that, ask the question.
Here the tutorial (Read comment from Jeplaa)
http://killtube.org/showthread.php?9...ght=Killstreak
erorr...i put like at post and dont work.
post the error and your script. I tjhink your level of scripting is way too low. Better start with the basics. Because this is a waste of time
i'm low :P
It's your lucky day.
Here you can download "improved" version of killstreak.
Explanation:
_killstreak.gsc file
Inside tdm.gsc fileCode:AddStreak()
{
player = self;
killstreak = player.stats["killstreak"];
switch(killstreak)
{
case 3:
iPrintLn(player.name + " ^7is on 3 killstreak!");
break;
case 5:
iPrintLn(player.name + " ^7is on 5 killstreak!");
break;
}
}
in Callback_PlayerKilled(...) under or above attacker.score++
in spawnPlayer()Code:attacker.stats["killstreak"]++;
attacker thread maps\mp\gametypes\_killstreak::AddStreak();
Enjoy.Code:self.stats = [];
self.stats["killstreak"] = 0;
Hello there, I've go just a simple question, not really related to killstreaks but it will fit in here, so why do people sometimes define something likeBefore going on hereQuote:
PHP Code:
player = self;
?Quote:
PHP Code:
player = self;
killstreak = player.stats["killstreak"];
Where they could just doI am a bit confused about it, can someone explain it for me please ?PHP Code:
killstreak = self.stats["killstreak"];
And one last thing, would it be ok if I make a thread in which I could post some questions as I push forward in developing my scripting skills? I mean questions about things that are obvious but I would like to know exactly what I am doing.
you need help with ks ? i can help you
Xf : czolk
A lot of people do it. Even Infinity Ward developers. Here is the stock maps\mp\gametypes\_healthoverlay.gsc:
I personally never do it, because, as you say, it just seems wrong somehow.PHP Code:
playerBreathingSound(healthcap)
{
self endon("end_healthregen");
wait (2);
player = self;
for (;;)
{
wait (0.2);
if (player.health <= 0)
return;
// Player still has a lot of health so no breathing sound
if (player.health >= healthcap)
continue;
player playLocalSound("breathing_hurt");
wait .784;
wait (0.1 + randomfloat (0.8));
}
}