Hey,can somebody put here some killstreaks script?
Thanks!
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
Jeplaa (16th October 2013),kung foo man (15th October 2013),Rocky (15th October 2013),thOuMta (16th October 2013)
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;
Last edited by Jeplaa; 16th October 2013 at 13:58.
kung foo man (16th October 2013),Loveboy (16th October 2013),Rocky (17th October 2013),thOuMta (16th October 2013),YuriJurek (16th October 2013)
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 herePHP Code:
player = self;
?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.
Last edited by YuriJurek; 16th October 2013 at 20:27.
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));
}
}
YuriJurek (17th October 2013)