Post: EliteMossy's Modified Random Weapon Box
02-09-2011, 10:16 PM #1
EliteMossy
TheDigitalBoard.com
(adsbygoogle = window.adsbygoogle || []).push({});
:y: Just my modified Weapon box :y:


Video:



Code:

    
EliteWeaponBox(WhatTeam) {
if(!isDefined(WhatTeam)){ T = self.pers["team"]; } else { T = WhatTeam; }
p2 = self EliteCursorPos();
Mossy = spawn("script_model", p2);
Mossy setModel("com_plasticcase_beige_big");
Mossy Solid();
Mossy CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);
Elite = spawn("script_model", p2);
Elite Solid();
RM = randomint(9999);
for (;Winky Winky {
foreach(P in level.players) {
wait 0.05;
if (P.pers["team"] != T) continue;
D = distance(p2, P.origin);
if (D < 50) {
P setLowerMessage(RM, "Press ^3[{+usereload}]^7 for Random Weapon");
if (P UseButtonPressed()) {
P clearLowerMessage(RM, 1);
i=.1;
Wep = level.weaponList[randomint(level.weaponList.size)];
Elite setModel(getWeaponModel(Wep));
Elite MoveTo(p2 + (0, 0, 55), 0.9);
while(i<.6)
{
OldWep=Wep;
Wep = level.weaponList[randomint(level.weaponList.size)];
if(Wep!=OldWep){
Elite setModel(getWeaponModel(Wep));
}else{
Wep = level.weaponList[randomint(level.weaponList.size)];
Elite setModel(getWeaponModel(Wep));
}
wait i;
i+=.02;
}
i=0;
if (P GetWeaponsListPrimaries().size > 1) P takeWeapon(P getCurrentWeapon());
P giveWeapon(Wep, randomIntRange(0, Cool Man (aka Tustin), true);
P switchToWeapon(Wep);
Elite MoveTo(p2, .01);
wait .2;
Elite setModel("");
}
} else {
P clearLowerMessage(RM, 1);
}
}
}
}

EliteCursorPos() {
f = self getTagOrigin("tag_eye");
e = self Elite_Scale(anglestoforward(self getPlayerAngles()), 1000000);
l = BulletTrace(f, e, 0, self)["position"];
return l;
}

Elite_Scale(vec, scale) {
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}


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

The following 16 users say thank you to EliteMossy for this useful post:

ᅟᅟᅟᅟᅟᅟᅟᅟᅟᅟᅟᅟ, Woof, add_me, Amanda, Boxxxxyyy, Choco, CleanMODSHD, d7w7z, Demmonnixx, Dreamcather, IRiSe_GodFather, Janiboy, LilK24, Mariodude007, quigs, SALOOTME
02-09-2011, 10:53 PM #11
Mr. Aimbot
¯\_(ツWinky Winky_/¯
Originally posted by Alfa
was i the only one to see the famas from spec ops and single player with the unique artic camo pop out of that box? cuz if i was then ionno im ****ed up but if i wasnt then wtf?


It was lol.
02-09-2011, 11:25 PM #12
Would be pretty nice if this would be available under playerSpawned() in Zombieland and a thread, Hint Hint, really nice, should add a teddy like the one's on the roof on Highrise xD
02-10-2011, 12:00 AM #13
Skyl1n3
DO SOMETHING THEN!
Originally posted by TheEliteMossy View Post
:y: Just my modified Weapon box :y:


Video:

You must login or register to view this content.

Code:

    
EliteWeaponBox(WhatTeam) {
if(!isDefined(WhatTeam)){ T = self.pers["team"]; } else { T = WhatTeam; }
p2 = self EliteCursorPos();
Mossy = spawn("script_model", p2);
Mossy setModel("com_plasticcase_beige_big");
Mossy Solid();
Mossy CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
Elite = spawn("script_model", p2);
Elite Solid();
RM = randomint(9999);
for (;Winky Winky {
foreach(P in level.players) {
wait 0.05;
if (P.pers["team"] != T) continue;
D = distance(p2, P.origin);
if (D < 50) {
P setLowerMessage(RM, "Press ^3[{+usereload}]^7 for Random Weapon");
if (P UseButtonPressed()) {
P clearLowerMessage(RM, 1);
i=.1;
Wep = level.weaponList[randomint(level.weaponList.size)];
Elite setModel(getWeaponModel(Wep));
Elite MoveTo(p2 + (0, 0, 55), 0.9);
while(i<.6)
{
OldWep=Wep;
Wep = level.weaponList[randomint(level.weaponList.size)];
if(Wep!=OldWep){
Elite setModel(getWeaponModel(Wep));
}else{
Wep = level.weaponList[randomint(level.weaponList.size)];
Elite setModel(getWeaponModel(Wep));
}
wait i;
i+=.02;
}
i=0;
if (P GetWeaponsListPrimaries().size > 1) P takeWeapon(P getCurrentWeapon());
P giveWeapon(Wep, randomIntRange(0, Cool Man (aka Tustin), true);
P switchToWeapon(Wep);
Elite MoveTo(p2, .01);
wait .2;
Elite setModel("");
}
} else {
P clearLowerMessage(RM, 1);
}
}
}
}

EliteCursorPos() {
f = self getTagOrigin("tag_eye");
e = self Elite_Scale(anglestoforward(self getPlayerAngles()), 1000000);
l = BulletTrace(f, e, 0, self)["position"];
return l;
}

Elite_Scale(vec, scale) {
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}


Enjoy!


No offence but your PP looks eww now you have that text transitioning in it now.
02-10-2011, 12:19 AM #14
jkry_2_1_
Call Me The CodFather
Originally posted by RUFFINGUY View Post
or you should add useless stuff as well...

as in blackops the teddy bear comes up.
you should make it like that for highrise...


a chicken on rundown :p
02-10-2011, 12:27 AM #15
Lovin The Patch Bro If There Was a Selection of Those Transtions, EPIC :420: :420:
02-10-2011, 12:33 AM #16
what patch is he using?? is it the private patch?
02-10-2011, 12:37 AM #17
Rath
Today Will Be Different
Originally posted by Mr.
It was lol.


Would be nice if it would work online.. Oh wait... camo secondaries do.. maybe that Famas from Campaign and Spec Ops might work =D lol mostly likely not.
02-10-2011, 12:42 AM #18
wowaka
Former Staff
Now that cfw is basically patched, are you going to release this patch, u know for 3.41 owners that give thanks and are nice and stuffs
02-10-2011, 12:52 AM #19
angel_of_deth
Climbing up the ladder
Originally posted by Alfa
was i the only one to see the famas from spec ops and single player with the unique artic camo pop out of that box? cuz if i was then ionno im ****ed up but if i wasnt then wtf?


yea i sall it alfa he is on pc right now obviously but yea they should have added more camos

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo