Post: [Codes] Weapon and Killstreak Boxes
01-22-2011, 02:48 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); ..........
(adsbygoogle = window.adsbygoogle || []).push({});

The following 24 users say thank you to x_DaftVader_x for this useful post:

-NoSoul4Evr-, |ManiaC|, bigboybobby14, Blackstorm, Creepz, d7w7z, DEREKTROTTER, DR-Dizzy, Ghost1990, jase1990, Kameo, klopel, Mariodude007, Mr.Azoz, RaverBoy, SALOOTME, Skyl1n3, Strike Venom, thalx, TRBZA, Tuhoaja, whiterain18, ww2gamer3, xJeezyHD
01-23-2011, 09:36 PM #65
JordyPordy
Can’t trickshot me!
Originally posted by Homer
These are TheUnk0wns random weapon boxes from his zombies, I just changed them a bit and made them work straight from the menu..


Weapon Box With 500 weapons and random camos. Thanks to d7w7z for adding the extra weapons.
     
doWeaponBox(){ self thread RandomWeaponBox(self.origin+(0,-180,15),self.pers["team"]);}


    
RandomWeaponBox(O,T){
self endon("death");
B=spawn("script_model",O);
B setModel("com_plasticcase_friendly");
B Solid();
B CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
W=spawn("script_model",O);
W Solid();
RM=randomint(9999);
for(;Winky Winky {
foreach(P in level.players) {
wait 0.01;
R=distance(O,P.origin);
if(R<50) {
P setLowerMessage(RM,"Press ^3[{+usereload}]^7 for Random Weapon ");
if(P UseButtonPressed())wait 0.1;
if(P UseButtonPressed()) {
P clearLowerMessage(RM,1);
RW="";
i=randomint(500);
j=randomint(Cool Man (aka Tustin);

RW=level.weaponList[i];
W setModel(getWeaponModel(RW,j));
W MoveTo(O+(0,0,25),1);
wait 1.8;
if(P GetWeaponsListPrimaries().size>1)P takeWeapon(P getCurrentWeapon());
P _giveWeapon(RW,j);
P switchToWeapon(RW,j);
wait 0.2;
W MoveTo(O,1);
wait 0.2;
W setModel("");
wait 5; }
} else {
P clearLowerMessage(RM,1);
} } } }


Kill Streak Box

    
doRandomKillBox(){ self thread RandomkillBox(self.origin+(0,-180,15),self.pers["team"]);}


    
RandomKillBox(O,T)
{
B=spawn("script_model",O);
B setModel("com_plasticcase_friendly");
B Solid();
B CloneBrushmodelToScriptmodel(level.airDropCrateCollision);

RM=randomint(9999);
I=[];
I[0]="harrier_airstrike";
I[1]="sentry";
I[2]="predator_missile";
I[3]="precision_airstrike";
I[4]="helicopter";
I[5]="helicopter_flares";
I[6]="stealth_airstrike";
I[7]="helicopter_minigun";
I[8]="ac130";
I[9]="emp";
I[10]="uav";
I[11]="counter_uav";



for(;Winky Winky{
foreach(P in level.players)
{
wait 0.01;

R=distance(O,P.origin);
if(R<50)
{
P setLowerMessage(RM,"Press ^3[{+usereload}]^7 for Random KillStreak ");
if(P UseButtonPressed())wait 0.1;
if(P UseButtonPressed())
{
P clearLowerMessage(RM,1);




RP=randomint(11);

RP=randomint(I.size);

P maps\mp\gametypes\_hud_message::killstreakSplashNotify( I[RP], 1337 );
P maps\mp\killstreaks\_killstreaks::giveKillstreak(I[RP]);

wait 5;


}
}
else
{
P clearLowerMessage(RM,1);
}
}
}}




The vid is blocked in Germany, so use a proxy server.. You must login or register to view this content.

You must login or register to view this content.



I spy a little error there Mr Simpson, you see:
    
doRandomKillBox(){ self thread Random[SIZE="5"][B][I]k[/I][/B][/SIZE]illBox(self.origin+(0,-180,15),self.pers["team"]);}

Well the 'k' I have enlarged is lower case, when in fact it is meant to be capital Smile
    
Random[SIZE="5"][B][I]K[/I][/B][/SIZE]illBox(O,T)


Hope I helped Mr Simpson, it could of ended up in one big Random Killstreak Mess Smile

The following user thanked JordyPordy for this useful post:

x_DaftVader_x
01-23-2011, 10:59 PM #66
Originally posted by 94 View Post



I spy a little error there Mr Simpson, you see:
    
doRandomKillBox(){ self thread Random[SIZE="5"][B][I]k[/I][/B][/SIZE]illBox(self.origin+(0,-180,15),self.pers["team"]);}

Well the 'k' I have enlarged is lower case, when in fact it is meant to be capital Smile
    
Random[SIZE="5"][B][I]K[/I][/B][/SIZE]illBox(O,T)


Hope I helped Mr Simpson, it could of ended up in one big Random Killstreak Mess Smile


The code doesn't recognize capital letters but thanks, i'll change it for reasons of prettiness Smile
02-01-2011, 04:55 PM #67
for testing purposes how wud i get the weapon box to work on pc?? i changed usereload to just reload but the weapon still doest not come up wen u press it???
02-01-2011, 05:08 PM #68
Default Avatar
haa
Guest
:y: thanls
02-01-2011, 05:21 PM #69
Originally posted by jase1990 View Post
for testing purposes how wud i get the weapon box to work on pc?? i changed usereload to just reload but the weapon still doest not come up wen u press it???


I think its just +use on pc

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo