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-10-2011, 07:41 PM #38
Merkii
Former Staff
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!


i just had a laughing fit at the guy in your sig
02-10-2011, 07:43 PM #39
Grat post good job
02-10-2011, 09:55 PM #40
Zeehh
Pokemon Trainer
What patch is that? it looks bad as! Smile
02-10-2011, 09:57 PM #41
Jake9
Site is wonderful
This would be great for zombieland.
02-11-2011, 01:45 PM #42
247Yamato
< ^ > < ^ >
Originally posted by x View Post
TheUnkn0wn made the original code code this. Has he changed his name?....


One guy: arasonic(chronaliz) released a random weapon box last week, and is very curious that this has lot of the same commands in the same order and with the same numbers of time, O.o¡ and the same box model.
02-11-2011, 02:27 PM #43
EliteMossy
TheDigitalBoard.com
Originally posted by 247Yamato View Post
One guy: arasonic(chronaliz) released a random weapon box last week, and is very curious that this has lot of the same commands in the same order and with the same numbers of time, O.o¡ and the same box model.


The box model was my idea, the code is based on TheUnkn0wn's random weapon box. If you check what i released months ago, you will see i used this box in my forge mode code i released.

So get your facts straight. This arasonic person just used someone else's code.

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

I am Mara, x_DaftVader_x
02-11-2011, 08:32 PM #44
-Luis7uarez-
Previously fer9dotorres
Nice box that is Smile
02-11-2011, 10:28 PM #45
saleem1
Save Point
I dont know if your reading this, but can you send me link for ps3 download? Thanks, and doesn't mater what version, I can convert.
02-11-2011, 10:42 PM #46
Skyl1n3
DO SOMETHING THEN!
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...


Lawl or a sex doll =D=D

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo