Post: Release: [CODE] Chrome Playa's Watch Tower
01-30-2011, 03:31 AM #1
Chrome Playa
Chrome Gaming Reloaded
(adsbygoogle = window.adsbygoogle || []).push({}); Note: This is only for the map Terminal
This is my bunker that I made entirely out of coordinates. It took me some time to make. All of the coordinates for the carepackages were made by me, and some of TheUnkn0wn's function were used to create the weapons. Enjoy!

Credits To:
Me for the Bunker
TheUnkn0wn for the weapon codes
DEREKTROTTER for suggesting me to use functions instead of BMP2CODE
Killingdyl for the functions for Creating Walls, etc.


To learn how to make bunkers Go Here:
You must login or register to view this content.

Video:


[ame=https://www.youtube.com/watch?v=o5sUm4LxRVk]YouTube - Chrome Playa's Watch Tower (Terminal)[/ame]

:hitman:Chrome Playa's Watch Tower
҉҉҉҉҉҉҉҉҉҉҉҉
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
    Chrome(){
CreateRamps((-866.098, 2388.5, 40.125), (-825.717, 4120.94, 714.125));
CreateWalls((-558.602, 4144.89, 744.125), (-795, 4144.89, 844.125));
CreateWalls((-867.237, 4144.89, 744.125), (-1244.91, 4144.89, 844.125));
CreateWalls((-558.602, 4144.89, 844.125), (-1244.91, 4144.89, 900.125));
CreateWalls((-1244.91, 4144.89, 700.125), (-1244.91, 4761, 900.125));
CreateWalls((-1244.91, 4761, 744.125), (-558.602, 4761, 900.125));
CreateWalls((-567.101, 4761, 700.125), (-558.602, 4144.89, 780.125));
CreateWalls((-567.101, 4761, 840), (-558.602, 4144.89, 900.125));
CreateRamps((-1180.79, 4720.49, 734.125), (-567.101, 4720.49, 860.125));
CreateGrids((-600, 4720.49, 860.125), (-600, 4144.89, 860.125), (0, 0, 0));
Sentry = spawnTurret( "misc_turret", (-590.291, 4257.78, 749.125), "sentry_minigun_mp" );
Sentry setModel( "sentry_minigun" );
Sentry.angles = (0,0,0);
Sentry3 = spawnTurret( "misc_turret", (-590.631, 4282.72, 880.25), "sentry_minigun_mp" );
Sentry3 setModel( "sentry_minigun" );
Sentry3.angles = (0,0,0);
self thread SpawnWeapons(undefined,"cheytac_fmj_xmags_mp","Chrome's Intervention",(-606.08,4699.15,779.775),0);
self thread SpawnWeaponsUpside Down Happy:UsePredators,"prop_suitcase_bomb","Chrome's Predator Missile",(-564,4611.88,779.775),0);
self thread SpawnWeapons(undefined,"rpg_mp","Chrome's RPG",(-545.859,4572.74,907.20Cool Man (aka Tustin),0);

}
CreateGrids(corner1, corner2, angle)
{
W = Distance((corner1[0], 0, 0), (corner2[0], 0, 0));
L = Distance((0, corner1[1], 0), (0, corner2[1], 0));
H = Distance((0, 0, corner1[2]), (0, 0, corner2[2]));
CX = corner2[0] - corner1[0];
CY = corner2[1] - corner1[1];
CZ = corner2[2] - corner1[2];
ROWS = roundUp(W/55);
COLUMNS = roundUp(L/30);
HEIGHT = roundUp(H/20);
XA = CX/ROWS;
YA = CY/COLUMNS;
ZA = CZ/HEIGHT;
center = spawn("script_model", corner1);
for(r = 0; r <= ROWS; r++){
for(c = 0; c <= COLUMNS; c++){
for(h = 0; h <= HEIGHT; h++){
block = spawn("script_model", (corner1 + (XA * r, YA * c, ZA * h)));
block setModel("com_plasticcase_friendly");
block.angles = (0, 0, 0);
block Solid();
block LinkTo(center);
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.01;
}
}
}
center.angles = angle;
}
SpawnWeapons(WFunc,Weapon,WeaponName,Location,TakeOnce){
self endon("disconnect");
weapon_model = getWeaponModel(Weapon);
if(weapon_model=="")weapon_model=Weapon;
Wep=spawn("script_model",Location+(0,0,0));
Wep setModel(weapon_model);
for(;Winky Winky{
foreach(player in level.players){
Radius=distance(Location,player.origin);
if(Radius<60){
player setLowerMessage(WeaponName,"Press ^3[{+usereload}]^7 to swap for "+WeaponName);
if(player UseButtonPressed())wait 0.2;
if(player UseButtonPressed()){
if(!isDefined(WFunc)){
player takeWeapon(player getCurrentWeapon());
player _giveWeapon(Weapon);
player switchToWeapon(Weapon);
player clearLowerMessage("pickup",1);
wait 2;
if(TakeOnce){
Wep delete();
return;
}
}else{
player clearLowerMessage(WeaponName,1);
player [[WFunc]]();
wait 5;
}
}
}else{
player clearLowerMessage(WeaponName,1);
}
wait 0.1;
}
wait 0.5;
}
}
UsePredators(){
maps\mp\killstreaks\_remotemissile::tryUsePredatorMissile(self.pers["killstreaks"][0].lifeId);
}
CreateWalls(start, end)
{
D = Distance((start[0], start[1], 0), (end[0], end[1], 0));
H = Distance((0, 0, start[2]), (0, 0, end[2]));
blocks = roundUp(D/55);
height = roundUp(H/30);
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++){
block = spawn("script_model", (start + (TXA, TYA, 10) + ((0, 0, ZA) * h)));
block setModel("com_plasticcase_friendly");
block.angles = Angle;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.001;
for(i = 1; i < blocks; i++){
block = spawn("script_model", (start + ((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h)));
block setModel("com_plasticcase_friendly");
block.angles = Angle;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.001;
}
block = spawn("script_model", ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h)));
block setModel("com_plasticcase_friendly");
block.angles = Angle;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.001;
}
}


roundUp( floatVal )
{
if ( int( floatVal ) != floatVal )
return int( floatVal+1 );
else
return int( floatVal );
}
CreateRamps(top, bottom)
{
D = Distance(top, bottom);
blocks = roundUp(D/30);
CX = top[0] - bottom[0];
CY = top[1] - bottom[1];
CZ = top[2] - bottom[2];
XA = CX/blocks;
YA = CY/blocks;
ZA = CZ/blocks;
CXY = Distance((top[0], top[1], 0), (bottom[0], bottom[1], 0));
Temp = VectorToAngles(top - bottom);
BA = (Temp[2], Temp[1] + 90, Temp[0]);
for(b = 0; b < blocks; b++){
block = spawn("script_model", (bottom + ((XA, YA, ZA) * B)));
block setModel("com_plasticcase_friendly");
block.angles = BA;
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.01;
}
block = spawn("script_model", (bottom + ((XA, YA, ZA) * blocks) - (0, 0, 5)));
block setModel("com_plasticcase_friendly");
block.angles = (BA[0], BA[1], 0);
block Solid();
block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
wait 0.01;
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 29 users say thank you to Chrome Playa for this useful post:

!x-MONKEY-BOMB!, Albanian', Amanda, bigboybobby14, Blackstorm, cjmurder123, CleanMODSHD, DEREKTROTTER, DR-Dizzy, Dreamcather, iiSuPerBaD, ImTrippinHoes, iSergeant-Adam, Janiboy, Judgement, kmax102, LightModz, lmg123, maxrox, Merkii, oO-GKUSH-Oo, Pauly, RaverBoy, The Shoota, TheFallen, Vectriixx, W0W, xCamoLegend, xSimpleHeartz
01-30-2011, 03:33 AM #2
DR-Dizzy
aka xAeRo-_EliTzZ 8|
Nice bro !
01-30-2011, 03:34 AM #3
Tight as shit dude, Thanks.
01-30-2011, 03:47 AM #4
Dreamcather
Call me Eddie Winky Winky
I will put this on my Edit v4Smile

The following user thanked Dreamcather for this useful post:

Chrome Playa
01-30-2011, 03:53 AM #5
This is one nice watch bunker. So far so good!
One of the Best bunker I think. Smile

I will be adding it to my edit right now. I'll test it. Smile
01-30-2011, 03:55 AM #6
cjmurder123
What do I say here?
That is some cool sh*t. Thank you so much.
01-30-2011, 04:05 AM #7
Blackstorm
Veni. Vidi. Vici.
Dude that is sooo sick and original I'm definitely putting this in my patch
01-30-2011, 04:10 AM #8
I just added your Watch Tower to my edit and its AMAZING!
Good work man! Keep it up! Smile
01-30-2011, 04:16 AM #9
Chrome Playa
Chrome Gaming Reloaded
Originally posted by MecAj View Post
Dude that is sooo sick and original I'm definitely putting this in my patch


Thanks. I was amazed that I did that for my first bunker. Yesterday I didn't even know about the CreateWalls and CreateRamps functions. Smile
01-30-2011, 04:31 AM #10
-Whiteboy-
┌∩┐ (◣◢Winky Winky┌∩┐
will someone please help me with this coding?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo