Post: [CODE] Random Killstreaks!
02-05-2011, 02:44 AM #1
Blackstorm
Veni. Vidi. Vici.
(adsbygoogle = window.adsbygoogle || []).push({}); Here's a random killstreak code that I just made a while ago, Mossy you should add this to your optimized code thread Winky Winky

Just a simple code, gives you a random killstreak Smile

    
RandomStreak()
{
streaks = "uav/airdrop/counter_uav/sentry/predator_missile/harrier_airstrike/airdrop_mega/helicopter_flares/stealth_airstrike/helicopter_minigun/ac130/emp/nuke";
random = strTok(streaks,"/");
RS = random[randomint(random.size)];
self maps\mp\killstreaks\_killstreaks::giveKillstreak(RS,0);
self maps\mp\gametypes\_hud_message::killstreakSplashNotify(RS,1337);
}


Just call it in from your menu Winky Winky

Credits:

d7w7z for the idea and original code
x_DaftVader_x for the funny splashNotify code :carling:
EliteMossy for giving me a small tutorial on that strTok (String To Array) function. Smile

Enjoy Happy
(adsbygoogle = window.adsbygoogle || []).push({});

The following 7 users say thank you to Blackstorm for this useful post:

ainajp, Alfa, Chrome Playa, d7w7z, Mw2Freak13, Strike Venom, x_DaftVader_x
02-05-2011, 03:27 AM #11
EliteMossy
TheDigitalBoard.com
Originally posted by x View Post
Is that where you got the 1337 killstreak idea from ? Winky Winky

I had the 1337 killstreak back in my v1 for walking ac130 if you check the vids back in september
02-05-2011, 03:29 AM #12
Pauly
Banned
Originally posted by TheEliteMossy View Post
I had the 1337 killstreak back in my v1 for walking ac130 if you check the vids back in september

when did u first start making patches
02-05-2011, 03:34 AM #13
EliteMossy
TheDigitalBoard.com
Originally posted by Mr.Chrome
when did u first start making patches


August 2010 and my first lobby was 26th august 2010
02-05-2011, 03:35 AM #14
Pauly
Banned
Originally posted by TheEliteMossy View Post
August 2010 and my first lobby was 26th august 2010

thats a long time :p can u please help me with my program
BuCn is helping me also =D
02-05-2011, 03:38 AM #15
Blackstorm
Veni. Vidi. Vici.
Originally posted by TheEliteMossy View Post
August 2010 and my first lobby was 26th august 2010


Thanks for that small tutorial I've optimized more than a quarter of my code now :p
02-05-2011, 11:38 AM #16
Originally posted by MecAj View Post
Actually I based it off of d7w7z's concept...

    
RandomKillstreak()
{
C=[];
C[0]="uav";
C[1]="airdrop";
C[2]="counter_uav";
C[3]="sentry";
C[4]="predator_missile";
C[5]="harrier_airstrike";
C[6]="airdrop_mega";
C[7]="helicopter_flares";
C[8]="stealth_airstrike";
C[9]="helicopter_minigun";
C[10]="ac130";
C[11]="emp";
ks=C[randomint(C.size)];
self maps\mp\killstreaks\_killstreaks::giveKillstreak(ks,false);
self maps\mp\gametypes\_hud_message::killstreakSplashNotify(ks,1337);
}


Credits to him for that code, I based it off of this concept as well



So you didn't really help me in any way sorry.


d7w7 didn't write that code. Its the one I used for my kill streak box. And I got it from the unknowns zombie code.....

---------- Post added at 11:38 AM ---------- Previous post was at 11:26 AM ----------

Originally posted by TheEliteMossy View Post
I had the 1337 killstreak back in my v1 for walking ac130 if you check the vids back in september


Ok, I don't remember that. Great minds think alike I suppose. Smile
02-05-2011, 04:01 PM #17
d7w7z
Bounty hunter
Originally posted by MecAj View Post
Enjoy Happy

I made a new method for things like this, Its like the code I sent you but the Blah=[0] works for the whole patch. I Stole the idea from Mossy Happy
    
RKS()
{
K=level.KS[randomint(level.KS.size)];
self maps\mp\killstreaks\_killstreaks::giveKillstreak(K,false);
self maps\mp\gametypes\_hud_message::killstreakSplashNotify(K,1337);
}


---------- Post added at 04:01 PM ---------- Previous post was at 03:57 PM ----------

Originally posted by x View Post
d7w7 didn't write that code.

I hand wrote all it except the splash which I got from your killstreak box post.
02-05-2011, 04:41 PM #18
Originally posted by d7w7z View Post


Im sure you did, I was just saying where the original code came from. It was theUnKn0wns perk box that I changed for killstreaks..
I wasn't looking for credits..
02-05-2011, 04:43 PM #19
Fifa97
Maggbot timeout!
Originally posted by x View Post
Im sure you did, I was just saying where the original code came from. It was theUnKn0wns perk box that I changed for killstreaks..
I wasn't looking for credits..


your pimped weapon box was so kl Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo