Post: Cool Little Bunker
12-05-2011, 08:22 PM #1
oO-GKUSH-Oo
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); Heres a cool small Bunker I created with no lag, I made it in 5 mins so no effort was put into it but I thought it would be cool for zombies or something. It also have a random weapon station inside.

You must login or register to view this content.


You must login or register to view this content.




    CrWall((329.858, -1818.08, 10.125), (199.664, -1841.28, 159.804));
CrWall((117.673, -1858.78, 2.98523), (-35.7656, -1879.28, 159.804));
CrWall((346.255, -1797.87, 7.42965), (390.175, -2019.46, 159.804));
CrWall((374.894, -2040.98, 5.89891), (-25.0719, -2130.79, 159.804));
CrWall((-41.3098, -2107.02, 9.0466Cool Man (aka Tustin), (-55.5986, -1864.46, 159.804));
B = spawn("script_model", (317.37, -1776.4, 10.125));
B.angles=(0,90,0);
B setModel("prop_flag_russian");
C = spawn("script_model", (-37.0408, -1822.57, 8.44404));
C.angles=(0,90,0);
C setModel("prop_flag_american");
PlayFX(level.poop,(321.823, -1796.84, 171.883));
PlayFX(level.poop,(-25.0376, -1864.78, 171.883));


Adding more soon


Credits to
Hawkin
Killingdyl
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to oO-GKUSH-Oo for this useful post:

FAKA_ELITE, Kush Friendly
12-05-2011, 08:51 PM #2
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by 9484
Heres a cool small Bunker I created with no lag, I made it in 5 mins so no effort was put into it but I thought it would be cool for zombies or something. It also have a random weapon station inside.

You must login or register to view this content.


You must login or register to view this content.




    CrWall((329.858, -1818.08, 10.125), (199.664, -1841.28, 159.804));
CrWall((117.673, -1858.78, 2.98523), (-35.7656, -1879.28, 159.804));
CrWall((346.255, -1797.87, 7.42965), (390.175, -2019.46, 159.804));
CrWall((374.894, -2040.98, 5.89891), (-25.0719, -2130.79, 159.804));
CrWall((-41.3098, -2107.02, 9.0466Cool Man (aka Tustin), (-55.5986, -1864.46, 159.804));
B = spawn("script_model", (317.37, -1776.4, 10.125));
B.angles=(0,90,0);
B setModel("prop_flag_russian");
C = spawn("script_model", (-37.0408, -1822.57, 8.44404));
C.angles=(0,90,0);
C setModel("prop_flag_american");
PlayFX(level.poop,(321.823, -1796.84, 171.883));
PlayFX(level.poop,(-25.0376, -1864.78, 171.883));
CrRWB((291.467,-1923.17,9.91621));


Adding more soon


I dont no who to give credit to because I found some functions and stuff on multiple forums so Im just gnna give credit to
Hawkin for solid walls?
If anyone thinks I leaving someone out just tell me and ill add them to the credits.


Can we have the rest of the script?
12-05-2011, 08:55 PM #3
oO-GKUSH-Oo
< ^ > < ^ >
Originally posted by IVI40A3Fusionz View Post
Can we have the rest of the script?

Yea sure I think Hawkin posted it already. Im not trying to take credit that isnt mine though but here lol.

    
CrWall(start, end, vis)
{ blockb = [];
blockc = [];
blockd = [];
D = Distance((start[0], start[1], 0), (end[0], end[1], 0));
H = Distance((0, 0, start[2]), (0, 0, end[2]));
if(!isDefined(vis)) vis = 0;
if(vis == 0)
{ blocks = roundUp(D/55);
height = roundUp(H/30);
tr = 75;
th = 40;
mod = "com_plasticcase_beige_big";
} else {
blocks = roundUp(D/90);
height = roundUp(H/90);
tr = 120;
th = 100;
mod = "tag_origin";
}
CX = end[0] - start[0];
CY = end[1] - start[1];
CZ = end[2] - start[2];
XA = (CX/blocks);
YA = (CY/blocks);
ZA = (CZ/height);
TXA = (XA/4);
TYA = (YA/4);
Temp = VectorToAngles(end - start);
Angle = (0, Temp[1], 90);
for(h = 0; h < height; h++)
{ fstpos = (start + (TXA, TYA, 10) + ((0, 0, ZA) * h));
block = spawn("script_model", fstpos);
block setModel(mod);
block.angles = Angle;
blockb[h] = spawn( "trigger_radius", ( 0, 0, 0 ), 0, tr, th );
blockb[h].origin = fstpos;
blockb[h].angles = Angle;
blockb[h] setContents( 1 );
wait 0.001;
for(i = 1; i < blocks; i++){
secpos = (start + ((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h));
block = spawn("script_model", secpos);
block setModel(mod);
block.angles = Angle;
blockc[i] = spawn( "trigger_radius", ( 0, 0, 0 ), 0, tr, th );
blockc[i].origin = secpos;
blockc[i].angles = Angle;
blockc[i] setContents( 1 );
wait 0.001;
}
if(blocks > 1)
{ trdpos = ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h));
block = spawn("script_model", trdpos);
block setModel(mod);
block.angles = Angle;
blockd[h] = spawn( "trigger_radius", ( 0, 0, 0 ), 0, tr, th );
blockd[h].origin = trdpos;
blockd[h].angles = Angle;
blockd[h] setContents( 1 );
wait 0.001;
}
}
}
12-05-2011, 08:57 PM #4
Taylor
Former Black Knight.
Originally posted by 9484
Yea sure I think Hawkin posted it already. Im not trying to take credit that isnt mine though but here lol.

    
CrWall(start, end, vis)
{ blockb = [];
blockc = [];
blockd = [];
D = Distance((start[0], start[1], 0), (end[0], end[1], 0));
H = Distance((0, 0, start[2]), (0, 0, end[2]));
if(!isDefined(vis)) vis = 0;
if(vis == 0)
{ blocks = roundUp(D/55);
height = roundUp(H/30);
tr = 75;
th = 40;
mod = "com_plasticcase_beige_big";
} else {
blocks = roundUp(D/90);
height = roundUp(H/90);
tr = 120;
th = 100;
mod = "tag_origin";
}
CX = end[0] - start[0];
CY = end[1] - start[1];
CZ = end[2] - start[2];
XA = (CX/blocks);
YA = (CY/blocks);
ZA = (CZ/height);
TXA = (XA/4);
TYA = (YA/4);
Temp = VectorToAngles(end - start);
Angle = (0, Temp[1], 90);
for(h = 0; h < height; h++)
{ fstpos = (start + (TXA, TYA, 10) + ((0, 0, ZA) * h));
block = spawn("script_model", fstpos);
block setModel(mod);
block.angles = Angle;
blockb[h] = spawn( "trigger_radius", ( 0, 0, 0 ), 0, tr, th );
blockb[h].origin = fstpos;
blockb[h].angles = Angle;
blockb[h] setContents( 1 );
wait 0.001;
for(i = 1; i < blocks; i++){
secpos = (start + ((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h));
block = spawn("script_model", secpos);
block setModel(mod);
block.angles = Angle;
blockc[i] = spawn( "trigger_radius", ( 0, 0, 0 ), 0, tr, th );
blockc[i].origin = secpos;
blockc[i].angles = Angle;
blockc[i] setContents( 1 );
wait 0.001;
}
if(blocks > 1)
{ trdpos = ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h));
block = spawn("script_model", trdpos);
block setModel(mod);
block.angles = Angle;
blockd[h] = spawn( "trigger_radius", ( 0, 0, 0 ), 0, tr, th );
blockd[h].origin = trdpos;
blockd[h].angles = Angle;
blockd[h] setContents( 1 );
wait 0.001;
}
}
}


Does THis Spawn Where You Are Standing, Or Where It Is Set To Spawn?
12-05-2011, 08:59 PM #5
oO-GKUSH-Oo
< ^ > < ^ >
Originally posted by xYARDSALEx View Post
Does THis Spawn Where You Are Standing, Or Where It Is Set To Spawn?

Well the code I posted is where its set but you can create your own ill make a thread showing how.
12-06-2011, 01:02 PM #6
247Yamato
< ^ > < ^ >
Thanks to Killingdyl no?

The following user thanked 247Yamato for this useful post:

IELIITEMODZX
12-06-2011, 01:29 PM #7
1337HaXaLoT
Bounty hunter
wheres the roof lol ?
12-06-2011, 04:53 PM #8
oO-GKUSH-Oo
< ^ > < ^ >
Originally posted by 247Yamato View Post
Thanks to Killingdyl no?

Whos he?


EDIT: Just Googled him, I just added him into the credits. Thanks for telling me :y:

The following user thanked oO-GKUSH-Oo for this useful post:

247Yamato

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo