What's new

Solved Just a question about mw2 coding?

Status
Not open for further replies.
A

A7K4

Newbie
Messages
37
Reaction score
0
So I've used patches were there is a carepackage bunker/base ex. Quarantine zombies. I have also seen it were you go up to a carepackage and it says press x to buy ammo etc...
If anyone could help that would be awesome! PS:My friend Mg pointz aka Frosty ct or something like that and another tag of his was something close to xTUKxiiBeLegit. Anyway he made a carepackage bunker map.
 
Raid

Raid

Enthusiast
Messages
1,142
Reaction score
172
I think that the carepackages and (x) to buy ammo is all part of the zombies patch. I don't know how to find stuff like that, sorry.
 
F

fishguts54

Enthusiast
Messages
257
Reaction score
11
do you mean like this?
http://www.se7ensins.com/forums/topic/302170-code-hex-f-coding-distance-text-function/
 
-DRiTZ-

-DRiTZ-

Enthusiast
Messages
525
Reaction score
41
My first thought would be to open up the patch and see if you can't find the code. Of course with some of the bigger patches, it's hard to find what you want..

So godlymodz has a code for a skybase in his program, I'm not sure if it works (haven't tested it yet) but it's worth a shot :smile:

Code:
LostsSkyBase() 
{ 
self endon("death");  
vec = anglestoforward(self getPlayerAngles()); 
center = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+(vec[0] * 200000, vec[1] * 200000, vec[2] * 200000), 0, self)[ "position" ]; 
level.center = spawn("script_origin", center); 
level.lift = []; 
h=0;k=0; 
origin = level.center.origin; 
for(i=0;i<404;i++) 
{ 
if(i<=100) 
level.lift[k] = spawn("script_model", origin+(-42,42,h)); 
else if(i<=201 && i>100) 
level.lift[k] = spawn("script_model", origin+(42,42,h-2777.5*2)); 
else if(i<=302 && i>201) 
level.lift[k] = spawn("script_model", origin+(-42,-42,h-5555*2)); 
else if(i<=404 && i>301) 
level.lift[k] = spawn("script_model", origin+(42,-42,h-8332.5*2)); 
level.lift[i].angles = (90,90,0); 
h+=55; 
k++; 
} 
level.center moveto(level.center.origin+(0,0,15), 0.05); 
wait 0.05; 
level.elevator = []; 
level.elevator[0] = spawn("script_model", origin+(0,42,-15)); 
level.elevator[1] = spawn("script_model", origin+(0,-42,-15)); 
level.elevator[2] = spawn("script_model", origin+(42,0,-15)); 
level.elevator[2].angles = (0,90,0); 
level.elevator[3] = spawn("script_model", origin+(-42,0,-15)); 
level.elevator[3].angles = (0,90,0); 
level.elevator[4] = spawn("script_model", origin+(0,14,-15)); 
level.elevator[5] = spawn("script_model", origin+(0,-14,-15)); 
base = level.center.origin+(-110,182,5513.75); 
level.elevatorcontrol = []; 
level.elevatorcontrol[0] = spawn("script_model", origin+(0,-42,13.75)); 
level.elevatorcontrol[0] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[0] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[0] linkto(level.center); 
level.elevatorcontrol[1] = spawn("script_model", origin+(0,-42,28.75)); 
level.elevatorcontrol[1] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[1].angles = (0,90,0); 
level.elevatorcontrol[1] linkto(level.center); 
level.elevatorcontrol[2] = spawn("script_model", base+(0,0,28)); 
level.elevatorcontrol[2] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[2] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[3] = spawn("script_model", base+(0,0,42)); 
level.elevatorcontrol[3] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[3].angles = (0,90,0); 
level.elevatorcontrol[4] = spawn("script_model", level.center.origin+(44,60,40)); 
level.elevatorcontrol[4] setModel( "ma_flatscreen_tv_wallmount_01" ); 
level.elevatorcontrol[4].angles = (0,180,0); 
level.elevatorcontrol[5] = spawn("script_model", base+(5,224,28)); 
level.elevatorcontrol[5] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[5] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[5].angles = (0,45,0); 
level.elevatorcontrol[6] = spawn("script_model", base+(215,224,28)); 
level.elevatorcontrol[6] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[6] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[6].angles = (0,-45,0); 
level.elevatorcontrol[7] = spawn("script_model", base+(110,252,28)); 
level.elevatorcontrol[7] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[7] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[8] = spawn("script_model", base+(5,224,42)); 
level.elevatorcontrol[8] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[8].angles = (0,-45,0); 
level.elevatorcontrol[8].type = "right"; 
level.elevatorcontrol[9] = spawn("script_model", base+(215,224,42)); 
level.elevatorcontrol[9] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[9].angles = (0,-135,0); 
level.elevatorcontrol[9].type = "left"; 
level.elevatorcontrol[10] = spawn("script_model", base+(110,252,42)); 
level.elevatorcontrol[10] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[10].angles = (0,-90,0); 
level.elevatorcontrol[10].type = "forward"; 
level.elevatorcontrol[11] = spawn("script_model", base+(220,0,42)); 
level.elevatorcontrol[11] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[11].angles = (0,90,0); 
level.elevatorcontrol[11].type = "dock"; 
level.elevatorcontrol[12] = spawn("script_model", base+(220,0,28)); 
level.elevatorcontrol[12] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[12] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[13] = spawn("script_model", base+(232,98,28)); 
level.elevatorcontrol[13] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[13] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[13].angles = (0,90,0); 
level.elevatorcontrol[14] = spawn("script_model", base+(232,98,42)); 
level.elevatorcontrol[14] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[14].angles = (0,180,0); 
level.elevatorcontrol[14].type = "up"; 
level.elevatorcontrol[15] = spawn("script_model", base+(-12,98,28)); 
level.elevatorcontrol[15] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[15] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[15].angles = (0,90,0); 
level.elevatorcontrol[16] = spawn("script_model", base+(-12,98,42)); 
level.elevatorcontrol[16] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[16].type = "down"; 
level.elevatorcontrol[17] = spawn("script_model", origin+(-85,84,13.75)); 
level.elevatorcontrol[17] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[17] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[17].angles = (0,-45,0); 
level.elevatorcontrol[18] = spawn("script_model", origin+(-85,84,28.75)); 
level.elevatorcontrol[18] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[18].angles = (0,45,0); 
level.elevatorcontrol[18].type = "forcedock"; 
level.elevatorcontrol[19] = spawn("script_model", base+(165,0,28)); 
level.elevatorcontrol[19] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[19] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[20] = spawn("script_model", base+(165,0,42)); 
level.elevatorcontrol[20] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[20].angles = (0,90,0); 
level.elevatorcontrol[20].type = "destroy"; 
level.center2 = spawn("script_origin", level.center.origin); 
level.center2 linkto(level.center); 
level.elevatorPlatform = []; 
level.elevatorPlatform[0] = spawn("script_model", origin+(0,-42,-15)); 
level.elevatorPlatform[1] = spawn("script_model", origin+(0,-14,-15)); 
level.elevatorPlatform[2] = spawn("script_model", origin+(0,14,-15)); 
level.elevatorPlatform[3] = spawn("script_model", origin+(0,42,-15)); 
level.elevatorBase = []; 
j = 0; 
w = 0; 
for(x=0;x<10;x++) 
{ 
for(i=0;i<5;i++) 
{ 
level.elevatorBase[j] = spawn("script_model", base+(i*55,w,0)); 
j++; 
} 
w+= 28; 
} 
level.BaseCenter = spawn("script_origin", base+(110,126,0)); 
level.BaseCenterOrigAng = level.BaseCenter.angles; 
level.BaseCenterOrigOrigin = level.BaseCenter.origin; 
for(i=5;i<=level.elevatorcontrol.size;i++) 
level.elevatorcontrol[i] linkto(level.BaseCenter); 
level.elevatorcontrol[17] unlink(); 
level.elevatorcontrol[18] unlink(); 
level.elevatorcontrol[2] linkto(level.BaseCenter); 
level.elevatorcontrol[3] linkto(level.BaseCenter); 
foreach(elevatorbase in level.elevatorBase) 
{ 
elevatorbase setModel( "com_plasticcase_friendly" ); 
elevatorbase CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
elevatorbase linkto(level.BaseCenter); 
} 
foreach(platform in level.elevatorPlatform) 
{ 
platform linkto(level.center2); 
platform setModel( "com_plasticcase_friendly" ); 
platform CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
} 
foreach(elevator in level.elevator) 
{ 
elevator CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
elevator setmodel("com_plasticcase_friendly"); 
elevator linkto(level.center); 
} 
foreach(lift in level.lift) 
{ 
lift CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
lift setmodel("com_plasticcase_friendly"); 
} 
thread computers(); 
level.elevatorcontrol[8] thread computers2(); 
level.elevatorcontrol[9] thread computers2(); 
level.elevatorcontrol[10] thread computers2(); 
level.elevatorcontrol[11] thread computers2(); 
level.elevatorcontrol[14] thread computers2(); 
level.elevatorcontrol[16] thread computers2(); 
level.elevatorcontrol[18] thread computers2(); 
level.elevatorcontrol[20] thread computers2(); 
} 

computers() 
{ 
level endon("exploded"); 
level.elevatorDirection = "up"; 
place = "default"; 
for(;;) 
{ 
foreach(player in level.players) 
{ 
if(distance(level.elevatorcontrol[1].origin, player.origin) <50) 
place = "elevator"; 
else if(distance(level.elevatorcontrol[3].origin, player.origin) <50) 
place = "top"; 
else if(distance(level.elevatorcontrol[4].origin, player.origin) <50) 
place = "bottom"; 
if(distance(level.elevatorcontrol[1].origin, player.origin) <50 || distance(level.elevatorcontrol[3].origin, player.origin) <50 || distance(level.elevatorcontrol[4].origin, player.origin) <50) 
{ 
if(level.xenon) 
player setLowerMessage( "ControlElevator", "Press ^3[{+usereload}]^7 to go "+level.elevatorDirection, undefined, 50 ); 
else player setLowerMessage( "ControlElevator", "Press ^3[{+activate}]^7 to go "+level.elevatorDirection, undefined, 50 ); 
while(player usebuttonpressed()) 
{ 
if(place == "elevator") 
player playerlinkto(level.center); 
player clearLowerMessage( "ControlElevator" ); 
if(level.elevatorDirection == "up") 
{ 
level.center moveto(level.center.origin+(0,0,(55*100)+27.5/2), 5, 3, 2); 
level.elevatorDirection = "down"; 
} 
else 
{ 
level.center2 unlink(); 
foreach(platform in level.elevatorPlatform) 
platform linkto(level.center2); 
level.center2 moveto(level.center2.origin-(0,112,0), 3); 
wait 3.1; 
level.center2 linkto(level.center); 
level.center moveto(level.center.origin-(0,0,(55*100)+27.5/2), 5, 3, 2); 
level.elevatorDirection = "up"; 
} 
wait 5.5; 
if(place == "elevator") 
player unlink(); 
if(level.elevatorDirection == "down") 
{ 
level.center2 unlink(); 
foreach(platform in level.elevatorPlatform) 
platform linkto(level.center2); 
level.center2 moveto(level.center2.origin+(0,112,0), 3); 
wait 3.5; 
} 
} 
} 
if(place == "elevator" && distance(level.elevatorcontrol[1].origin, player.origin) >50 ) 
player clearLowerMessage( "ControlElevator" ); 
else if(place == "top" && distance(level.elevatorcontrol[3].origin, player.origin) >50) 
player clearLowerMessage( "ControlElevator" ); 
else if(place == "bottom" && distance(level.elevatorcontrol[4].origin, player.origin) >50) 
player clearLowerMessage( "ControlElevator" ); 
} 
wait 0.05; 
} 
} 

computers2() 
{ 
for(;;) 
{ 
foreach(player in level.players) 
{ 
if(distance(self.origin, player.origin)<50) 
{ 
if(self.type == "left" || self.type == "right") 
{ 
if(self.type == "left") 
{ 
if(level.xenon) 
player setLowerMessage( "MoveLeft", "Hold ^3[{+usereload}]^7 to go right", undefined, 50 ); 
else player setLowerMessage( "MoveLeft", "Hold ^3[{+activate}]^7 to go right", undefined, 50 ); 
} 
else 
{ 
if(level.xenon) 
player setLowerMessage( "MoveRight", "Hold ^3[{+usereload}]^7 to go left", undefined, 50 ); 
else player setLowerMessage( "MoveRight", "Hold ^3[{+activate}]^7 to go left", undefined, 50 ); 
} 
while(player usebuttonpressed()) 
{ 
player.fakelink = spawn("script_origin", player.origin); 
player playerlinkto(player.fakelink); 
player.fakelink linkto(self); 
if(self.type == "left") 
level.BaseCenter rotateyaw(-2, 0.05); 
else level.BaseCenter rotateyaw(2, 0.05); 
wait 0.05; 
player unlink(); 
player.fakelink delete(); 
} 
} 
if(self.type == "forward") 
{ 
if(level.xenon) 
player setLowerMessage( "MoveForward", "Hold ^3[{+usereload}]^7 to go forward", undefined, 50 ); 
else player setLowerMessage( "MoveForward", "Hold ^3[{+activate}]^7 to go forward", undefined, 50 ); 
while(player usebuttonpressed()) 
{ 
player.fakelink = spawn("script_origin", player.origin); 
player playerlinkto(player.fakelink); 
player.fakelink linkto(self); 
vec = anglestoright(level.BaseCenter.angles); 
center = BulletTrace( level.BaseCenter.origin, level.BaseCenter.origin+(vec[0] * -100, vec[1] * -100, vec[2] * -100), 0, self)[ "position" ]; 
level.BaseCenter moveto(center, 0.05); 
wait 0.05; 
player unlink(); 
player.fakelink delete(); 
} 
} 
if(self.type == "dock" || self.type == "forcedock") 
{ 
if(self.type == "dock") 
{ 
if(level.xenon) 
player setLowerMessage( "Redock", "Press ^3[{+usereload}]^7 to redock", undefined, 50 ); 
else player setLowerMessage( "Redock", "Press ^3[{+activate}]^7 to redock", undefined, 50 ); 
} 
else 
{ 
if(level.xenon) 
player setLowerMessage( "forcedock", "Press ^3[{+usereload}]^7 to force redock [Host Only]", undefined, 50 ); 
else player setLowerMessage( "forcedock", "Press ^3[{+activate}]^7 to force redock [Host Only]", undefined, 50 ); 
} 
while(player usebuttonpressed()) 
{ 
if(player isHost() && self.type == "forcedock") 
{ 
speed = distance(level.BaseCenter.origin, level.BaseCenterOrigOrigin)/1000; 
level.BaseCenter moveto(level.BaseCenterOrigOrigin, speed, speed*0.8, speed*0.2); 
level.BaseCenter rotateto(level.BaseCenterOrigAng, 3, 2, 1); 
wait 0.05; 
} 
else if(self.type == "dock") 
{ 
player.fakelink = spawn("script_origin", player.origin); 
player playerlinkto(player.fakelink); 
player.fakelink linkto(self); 
speed = distance(level.BaseCenter.origin, level.BaseCenterOrigOrigin)/1000; 
level.BaseCenter moveto(level.BaseCenterOrigOrigin, speed, speed*0.8, speed*0.2); 
level.BaseCenter rotateto(level.BaseCenterOrigAng, 3, 2, 1); 
while(level.BaseCenter.origin != level.BaseCenterOrigOrigin) 
wait 0.05; 
wait 0.05; 
player unlink(); 
player.fakelink delete(); 
} 
else if(self.type == "forcedock" && !player ishost()) 
player iprintlnbold("^1You must be host"); 
wait 0.05; 
} 
} 
if(self.type == "up" || self.type == "down") 
{ 
if(self.type == "up") 
{ 
if(level.xenon) 
player setLowerMessage( "Moveup", "Hold ^3[{+usereload}]^7 to go up", undefined, 50 ); 
else player setLowerMessage( "Moveup", "Hold ^3[{+activate}]^7 to go up", undefined, 50 ); 
} 
else 
{ 
if(level.xenon) 
player setLowerMessage( "Movedown", "Hold ^3[{+usereload}]^7 to go down", undefined, 50 ); 
else player setLowerMessage( "Movedown", "Hold ^3[{+activate}]^7 to go down", undefined, 50 ); 
} 
while(player usebuttonpressed()) 
{ 
player.fakelink = spawn("script_origin", player.origin); 
player playerlinkto(player.fakelink); 
player.fakelink linkto(self); 
if(self.type == "up") 
level.BaseCenter moveto(level.BaseCenter.origin+(0,0,10), 0.05); 
else level.BaseCenter moveto(level.BaseCenter.origin-(0,0,10), 0.05); 
wait 0.05; 
player unlink(); 
player.fakelink delete(); 
} 
} 
if(self.type == "destroy") 
{ 
self endon("endNuke"); 
if(level.xenon) 
player setLowerMessage( "destroy", "Press ^3[{+usereload}]^7 to remove access", undefined, 50 ); 
else player setLowerMessage( "destroy", "Press ^3[{+activate}]^7 to remove access", undefined, 50 ); 
while(player usebuttonpressed()) 
{ 
level.elevatorcontrol[2] setmodel("com_plasticcase_enemy"); 
level.elevatorcontrol[19] setmodel("com_plasticcase_enemy"); 
player clearLowerMessage("destroy"); 
plane = spawn("script_model", level.center.origin+(30000,0,0)); 
plane setmodel("vehicle_av8b_harrier_jet_opfor_mp"); 
plane.angles = (0,-180,0); 
plane moveto(level.center.origin, 5); 
wait 5; 
playfx( level._effect[ "emp_flash" ], plane.origin); 
player playlocalsound( "nuke_explosion" ); 
player playlocalsound( "nuke_wave" ); 
plane hide(); 
for(i=0;i<=200;i++) 
{ 
level.lift[i] unlink(); 
level.lift[i] PhysicsLaunchServer( plane.origin, (i*-10,0,randomint(1000)) ); 
} 
wait 4; 
for(i=200;i<=level.lift.size;i++) 
{ 
level.lift[i] unlink(); 
level.lift[i] PhysicsLaunchServer( plane.origin, (i*-5,i,0) ); 
} 
foreach(elevator in level.elevator) 
{ 
elevator unlink(); 
elevator PhysicsLaunchServer( plane.origin, (i*-10,0,1000) ); 
} 
foreach(platform in level.elevatorPlatform) 
{ 
platform unlink(); 
platform PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
} 
level.elevatorcontrol[0] unlink(); 
level.elevatorcontrol[1] unlink(); 
level.elevatorcontrol[4] unlink(); 
level.elevatorcontrol[17] unlink(); 
level.elevatorcontrol[18] unlink(); 
level.elevatorcontrol[0] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level.elevatorcontrol[1] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level.elevatorcontrol[4] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level.elevatorcontrol[17] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level.elevatorcontrol[18] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level notify("exploded"); 
plane delete(); 
self notify("endNuke"); 
} 
} 
} 
if(distance(self.origin, player.origin) > 50) 
{ 
if(self.type == "left") 
player clearLowerMessage("MoveLeft"); 
else if(self.type == "right") 
player clearLowerMessage("MoveRight"); 
else if(self.type == "forward") 
player clearLowerMessage("MoveForward"); 
else if(self.type == "dock") 
player clearLowerMessage("Redock"); 
else if(self.type == "up") 
player clearLowerMessage("Moveup"); 
else if(self.type == "down") 
player clearLowerMessage("Movedown"); 
else if(self.type == "forcedock") 
player clearLowerMessage("forcedock"); 
else if(self.type == "destroy") 
player clearLowerMessage("destroy"); 
} 
} 
wait 0.05; 
} 
}

There's a skybase code, he also has one for a hovercraft...

Code:
GODLYM0DZHovercraft()
{
self thread DrawCodeFile();
self thread doRamp();
}
WP(D,Z,P)
{
L=strTok(D,",");
for(i=0;i<L.size;i+=2)
{
B=spawn("script_model",(1776.19, -2851.48, 40.125)+(int(L[i]),int(L[i+1]),Z));
if(!P)B.angles=(90,0,0);
B setModel("com_plasticcase_friendly");
B Solid();
B CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
level.boxes[level.boxes.size] = B;
}
}
DrawCodeFile()
{

self endon ( "disconnect" );
self endon ( "death" );
level.boxes = [];
self setOrigin((1854.36,-1942.4, 40.1269));
level.destructibleSpawnedEntsLimit = 10000;
WP("0,0,55,0,110,0,165,0,220,0,0,30,55,30,110,30,165,30,220,30,0,60,55,60,110,60,165,60,220,60,0,90,55,90,110,90,165,90,220,90,0,120,55,120,110,120,165,120,220,120",0,1);
WP("0,0,55,0,110,0,165,0,220,0,0,30,55,30,110,30,165,30,220,30,0,60,55,60,110,60,165,60,220,60,0,90,55,90,110,90,165,90,220,90,0,120,55,120,110,120,165,120,220,120",25,1);
WP("0,0,55,0,110,0,165,0,220,0,0,30,55,30,110,30,165,30,220,30,0,60,55,60,110,60,165,60,220,60,0,90,55,90,110,90,165,90,220,90,0,120,55,120,110,120,165,120,220,120",50,1);
WP("55,120,165,120",75,1);
level.centercp = spawn("script_origin", (1877.83, -2789.54, 105.25));
level.Turret = [];
level.Turret[0] = spawnTurret( "misc_turret", (1997.66,-2861.01, 105.25), "pavelow_minigun_mp" );
level.Turret[0].angles = (0, -180, 0);
level.Turret[0] setModel( "weapon_minigun" );
level.Turret[0].owner = self.owner;
level.Turret[0].team = self.team;
level.Turret[0] SetBottomArc(360);
level.Turret[0] SetTopArc(360);
level.Turret[0] SetLeftArc(360);
level.Turret[0] SetRightArc(360);
wait 0.05;
level.Turret[1] = spawnTurret( "misc_turret", (1776.88,-2865.16, 105.25), "pavelow_minigun_mp" );
level.Turret[1].angles = (0, -180, 0);
level.Turret[1] setModel( "weapon_minigun" );
level.Turret[1].owner = self.owner;
level.Turret[1].team = self.team;
level.Turret[1] SetBottomArc(360);
level.Turret[1] SetTopArc(360);
level.Turret[1] SetLeftArc(360);
level.Turret[1] SetRightArc(360);
wait 0.05;
level.Turret[2] = spawnTurret( "misc_turret", (1992.01,-2730.64, 105.25), "pavelow_minigun_mp" );
level.Turret[2].angles = (0, 87.8687, 0);
level.Turret[2] setModel( "weapon_minigun" );
level.Turret[2].owner = self.owner;
level.Turret[2].team = self.team;
level.Turret[2] SetBottomArc(360);
level.Turret[2] SetTopArc(360);
level.Turret[2] SetLeftArc(360);
level.Turret[2] SetRightArc(360);
wait 0.05;
level.Turret[3] = spawnTurret( "misc_turret", (1775.33,-2723.89, 105.25), "pavelow_minigun_mp" );
level.Turret[3].angles = (0, 87.8687, 0);
level.Turret[3] setModel( "weapon_minigun" );
level.Turret[3].owner = self.owner;
level.Turret[3].team = self.team;
level.Turret[3] SetBottomArc(360);
level.Turret[3] SetTopArc(360);
level.Turret[3] SetLeftArc(360);
level.Turret[3] SetRightArc(360);
level.Laptop = [];
level.Laptop[0] = spawn( "script_model", (1939.06,-2730.4,130.25) );
level.Laptop[0].angles = (0,-91.6992,0);
level.Laptop[0].type = "drive";
level.Laptop[0] setModel( "com_laptop_2_open" );
level.Laptop[0].targetname = "com_laptop_2_open";
level.Laptop[0] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Laptop[1] = spawn( "script_model", (1827.66,-2730.4,130.25) );
level.Laptop[1] thread computer();
level.Laptop[1].angles = (0,-91.6992,0);
level.Laptop[1].type = "engineon";
level.Laptop[1] setModel( "com_laptop_2_open" );
level.Laptop[1].targetname = "com_laptop_2_open";
level.Laptop[1] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan = [];
level.Fan[0] = spawn( "script_model", (1789.13,-2866.68,78.7019) );
level.Fan[0].angles = (0,-5.05371,0);
level.Fan[0] setModel( "cs_wallfan1" );
level.Fan[0].targetname = "destructible_toy";
level.Fan[0] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[1] = spawn( "script_model", (1837.42,-2866.68,78.7019) );
level.Fan[1].angles = (0,-5.05371,0);
level.Fan[1] setModel( "cs_wallfan1" );
level.Fan[1].targetname = "destructible_toy";
level.Fan[1] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[2] = spawn( "script_model", (1885.71,-2866.68,78.7019) );
level.Fan[2].angles = (0,-5.05371,0);
level.Fan[2] setModel( "cs_wallfan1" );
level.Fan[2].targetname = "destructible_toy";
level.Fan[2] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[3] = spawn( "script_model", (1934.71,-2866.68,78.7019) );
level.Fan[3].angles = (0,-5.05371,0);
level.Fan[3] setModel( "cs_wallfan1" );
level.Fan[3].targetname = "destructible_toy";
level.Fan[3] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[4] = spawn( "script_model", (1983.71,-2866.68,78.7019) );
level.Fan[4].angles = (0,-5.05371,0);
level.Fan[4] setModel( "cs_wallfan1" );
level.Fan[4].targetname = "destructible_toy";
level.Fan[4] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[5] = spawn( "script_model", (2025.39,-2814.57,74.207) );
level.Fan[5].angles = (0,89.0826,0);
level.Fan[5] setModel( "cs_wallfan1" );
level.Fan[5].targetname = "destructible_toy";
level.Fan[5] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[6] = spawn( "script_model", (2025.39,-2754.71,74.3194) );
level.Fan[6].angles = (0,89.0826,0);
level.Fan[6] setModel( "cs_wallfan1" );
level.Fan[6].targetname = "destructible_toy";
level.Fan[6] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[7] = spawn( "script_model", (1747.99,-2841.19,73.3035) );
level.Fan[7].angles = (0,-92.0874,0);
level.Fan[7] setModel( "cs_wallfan1" );
level.Fan[7].targetname = "destructible_toy";
level.Fan[7] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[8] = spawn( "script_model", (1973.36,-2714.96,75.1974) );
level.Fan[8].angles = (0,176.391,0);
level.Fan[8] setModel( "cs_wallfan1" );
level.Fan[8].targetname = "destructible_toy";
level.Fan[8] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[9] = spawn( "script_model", (1925.07,-2714.96,75.1974) );
level.Fan[9].angles = (0,176.391,0);
level.Fan[9] setModel( "cs_wallfan1" );
level.Fan[9].targetname = "destructible_toy";
level.Fan[9] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[10] = spawn( "script_model", (1876.78,-2714.96,75.1974) );
level.Fan[10].angles = (0,176.391,0);
level.Fan[10] setModel( "cs_wallfan1" );
level.Fan[10].targetname = "destructible_toy";
level.Fan[10] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[11] = spawn( "script_model", (1826.49,-2714.96,75.1974) );
level.Fan[11].angles = (0,176.391,0);
level.Fan[11] setModel( "cs_wallfan1" );
level.Fan[11].targetname = "destructible_toy";
level.Fan[11] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[12] = spawn( "script_model", (1778.2,-2714.96,75.1974) );
level.Fan[12].angles = (0,176.391,0);
level.Fan[12] setModel( "cs_wallfan1" );
level.Fan[12].targetname = "destructible_toy";
level.Fan[12] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[13] = spawn( "script_model", (1748.17,-2746.87,74.1053) );
level.Fan[13].angles = (0,-92.0874,0);
level.Fan[13] setModel( "cs_wallfan1" );
level.Fan[13].targetname = "destructible_toy";
level.Fan[13] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
foreach(box in level.boxes)
box linkto(level.centercp);
foreach(box in level.Laptop)
box linkto(level.centercp);
foreach(box in level.Fan)
box linkto(level.centercp);
foreach(box in level.Turret)
box linkto(level.centercp);
foreach(box in level.ramp)
box linkto(level.centercp);
foreach(box in level.Detonator)
box linkto(level.centercp);
}
computer()
{
inengineoff = 0;
for(;;)
{    
foreach(player in level.players)
{
if(distance(level.Laptop[1].origin, player gettagorigin("j_head")) <50 && inengineoff == 0)
{
if(level.xenon)
player setlowermessage("engineon", "Press [{+melee}] To Start The Engine", undefined, 50 );
else      
player setlowermessage("engineon", "Press [{+melee}] To Start The Engine", undefined, 50 );

if(player meleebuttonpressed())
{
player.fakelink = spawn("script_origin", player.origin);
player playerlinkto(player.fakelink);
player.fakelink moveto(player.fakelink.origin+(0,0,70), 5);
level.centercp moveto(level.centercp.origin+(0,0,70), 5);
player iPrintlnBold("^1Engine Starting ....");
player thread Fanssound();
wait 3.0;
player unlink();
player.fakelink delete();
foreach(box in level.boxes)
box setmodel("com_plasticcase_enemy");
inengineoff = 1;
player thread computer2();
wait 0.2;

}
}
if(distance(level.Laptop[1].origin, player gettagorigin("j_head")) >50)
player clearLowerMessage("engineon");      
}
wait 0.05;  
}
}    

computer2()
{
inidriving = 0;
for(;;)
{    
foreach(player in level.players)
{
if(distance(level.Laptop[0].origin, player gettagorigin("j_head")) <50 && inidriving == 0)
{
if(level.xenon)
player setlowermessage("drive", "Press [{+melee}] To Drive The HoverCraft", undefined, 50 );
else      
player setlowermessage("drive", "Press [{+melee}] To Drive The HoverCraft", undefined, 50 );

if(player meleebuttonpressed())
{
player.driveingseat = spawn("script_origin", player.origin);
player playerlinkto(level.centercp);
player setPlayerAngles(level.centercp.angles+(0,88.9892,0));
player VisionSetNakedForPlayer( "thermal_mp", 0.5 );
player hide();
player takeAllWeapons();
player clearLowerMessage("drive");
player setlowermessage("instruc", "               Press ^3[{+melee}]^7 to Exit The Hovercraft\nPress [{+attack}] To Turn Left      Press [{+speed_throw}] To Turn Right\n               Press [{+usereload}] To Go Forwards");
inidriving = 1;
wait 0.2;        
}
}
if( inidriving == 1 && player meleebuttonpressed() )
{
player unlink();
player.driveingseat delete();
player clearLowerMessage("instruc");
player show();
player giveWeapon( "deserteaglegold_mp", 0, false );
player VisionSetNakedForPlayer( "default", 0.5 );
inidriving = 0;
wait 0.2;
}

if( inidriving == 1 && player usebuttonpressed() )
{
vec = anglestoright(level.centercp.angles);
center = BulletTrace( level.centercp.origin, level.centercp.origin+(vec[0] * -100, vec[1] * -100, vec[2] * -100), 0, self)[ "position" ];
level.centercp moveto(center, 0.40);
player.driveingseat moveto(center, 0.40);

}

if( inidriving == 1 && player attackbuttonpressed() )
{
level.centercp rotateyaw(-2, 0.05);
player.driveingseat rotateyaw(-2, 0.05);
}
if( inidriving == 1 && player adsbuttonpressed() )
{
level.centercp rotateyaw(2, 0.05);
player.driveingseat rotateyaw(2, 0.05);
}
if(distance(level.Laptop[0].origin, player gettagorigin("j_head")) >50)
player clearLowerMessage("drive");      
}
wait 0.05;  
}
}
Fanssound()
{
self endon ( "disconnect" );
self endon ( "death" );
level.Fan[0] PlayLoopSound("wall_fan_fanning");
wait 0.9;
level.Fan[1] PlayLoopSound("wall_fan_fanning");
wait 0.7;
level.Fan[2] PlayLoopSound("wall_fan_fanning");
level.Fan[3] PlayLoopSound("wall_fan_fanning");
level.Fan[4] PlayLoopSound("wall_fan_fanning");
level.Fan[5] PlayLoopSound("wall_fan_fanning");
level.Fan[6] PlayLoopSound("wall_fan_fanning");
level.Fan[7] PlayLoopSound("wall_fan_fanning");
wait 0.5;
level.Fan[8] PlayLoopSound("wall_fan_fanning");
level.Fan[9] PlayLoopSound("wall_fan_fanning");
level.Fan[10] PlayLoopSound("wall_fan_fanning");
level.Fan[11] PlayLoopSound("wall_fan_fanning");
level.Fan[12] PlayLoopSound("wall_fan_fanning");
level.Fan[13] PlayLoopSound("wall_fan_fanning");
wait 0.3;
level.Laptop[0] PlayLoopSound("wall_fan_fanning");
level.Laptop[1] PlayLoopSound("wall_fan_fanning");
level.Turret[0] PlayLoopSound("wall_fan_fanning");
level.Turret[1] PlayLoopSound("wall_fan_fanning");
level.Turret[2] PlayLoopSound("wall_fan_fanning");
level.Turret[3] PlayLoopSound("wall_fan_fanning");
}
CreateRamps(top, bottom)
{
level.ramp = [];
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;
}
roundUp( floatVal )
{
if ( int( floatVal ) != floatVal )
return int( floatVal+1 );
else
return int( floatVal );
}
doRamp()
{
CreateRamps((1747.83, -2793.25, 93.1282), (1615.05, -2793.83, 40.125));
}

Hope I could provide a little bit of help :smile:
 
A

A7K4

Newbie
Messages
37
Reaction score
0
My first thought would be to open up the patch and see if you can't find the code. Of course with some of the bigger patches, it's hard to find what you want..

So godlymodz has a code for a skybase in his program, I'm not sure if it works (haven't tested it yet) but it's worth a shot :smile:

Code:
LostsSkyBase() 
{ 
self endon("death");  
vec = anglestoforward(self getPlayerAngles()); 
center = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+(vec[0] * 200000, vec[1] * 200000, vec[2] * 200000), 0, self)[ "position" ]; 
level.center = spawn("script_origin", center); 
level.lift = []; 
h=0;k=0; 
origin = level.center.origin; 
for(i=0;i<404;i++) 
{ 
if(i<=100) 
level.lift[k] = spawn("script_model", origin+(-42,42,h)); 
else if(i<=201 && i>100) 
level.lift[k] = spawn("script_model", origin+(42,42,h-2777.5*2)); 
else if(i<=302 && i>201) 
level.lift[k] = spawn("script_model", origin+(-42,-42,h-5555*2)); 
else if(i<=404 && i>301) 
level.lift[k] = spawn("script_model", origin+(42,-42,h-8332.5*2)); 
level.lift[i].angles = (90,90,0); 
h+=55; 
k++; 
} 
level.center moveto(level.center.origin+(0,0,15), 0.05); 
wait 0.05; 
level.elevator = []; 
level.elevator[0] = spawn("script_model", origin+(0,42,-15)); 
level.elevator[1] = spawn("script_model", origin+(0,-42,-15)); 
level.elevator[2] = spawn("script_model", origin+(42,0,-15)); 
level.elevator[2].angles = (0,90,0); 
level.elevator[3] = spawn("script_model", origin+(-42,0,-15)); 
level.elevator[3].angles = (0,90,0); 
level.elevator[4] = spawn("script_model", origin+(0,14,-15)); 
level.elevator[5] = spawn("script_model", origin+(0,-14,-15)); 
base = level.center.origin+(-110,182,5513.75); 
level.elevatorcontrol = []; 
level.elevatorcontrol[0] = spawn("script_model", origin+(0,-42,13.75)); 
level.elevatorcontrol[0] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[0] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[0] linkto(level.center); 
level.elevatorcontrol[1] = spawn("script_model", origin+(0,-42,28.75)); 
level.elevatorcontrol[1] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[1].angles = (0,90,0); 
level.elevatorcontrol[1] linkto(level.center); 
level.elevatorcontrol[2] = spawn("script_model", base+(0,0,28)); 
level.elevatorcontrol[2] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[2] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[3] = spawn("script_model", base+(0,0,42)); 
level.elevatorcontrol[3] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[3].angles = (0,90,0); 
level.elevatorcontrol[4] = spawn("script_model", level.center.origin+(44,60,40)); 
level.elevatorcontrol[4] setModel( "ma_flatscreen_tv_wallmount_01" ); 
level.elevatorcontrol[4].angles = (0,180,0); 
level.elevatorcontrol[5] = spawn("script_model", base+(5,224,28)); 
level.elevatorcontrol[5] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[5] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[5].angles = (0,45,0); 
level.elevatorcontrol[6] = spawn("script_model", base+(215,224,28)); 
level.elevatorcontrol[6] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[6] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[6].angles = (0,-45,0); 
level.elevatorcontrol[7] = spawn("script_model", base+(110,252,28)); 
level.elevatorcontrol[7] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[7] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[8] = spawn("script_model", base+(5,224,42)); 
level.elevatorcontrol[8] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[8].angles = (0,-45,0); 
level.elevatorcontrol[8].type = "right"; 
level.elevatorcontrol[9] = spawn("script_model", base+(215,224,42)); 
level.elevatorcontrol[9] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[9].angles = (0,-135,0); 
level.elevatorcontrol[9].type = "left"; 
level.elevatorcontrol[10] = spawn("script_model", base+(110,252,42)); 
level.elevatorcontrol[10] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[10].angles = (0,-90,0); 
level.elevatorcontrol[10].type = "forward"; 
level.elevatorcontrol[11] = spawn("script_model", base+(220,0,42)); 
level.elevatorcontrol[11] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[11].angles = (0,90,0); 
level.elevatorcontrol[11].type = "dock"; 
level.elevatorcontrol[12] = spawn("script_model", base+(220,0,28)); 
level.elevatorcontrol[12] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[12] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[13] = spawn("script_model", base+(232,98,28)); 
level.elevatorcontrol[13] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[13] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[13].angles = (0,90,0); 
level.elevatorcontrol[14] = spawn("script_model", base+(232,98,42)); 
level.elevatorcontrol[14] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[14].angles = (0,180,0); 
level.elevatorcontrol[14].type = "up"; 
level.elevatorcontrol[15] = spawn("script_model", base+(-12,98,28)); 
level.elevatorcontrol[15] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[15] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[15].angles = (0,90,0); 
level.elevatorcontrol[16] = spawn("script_model", base+(-12,98,42)); 
level.elevatorcontrol[16] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[16].type = "down"; 
level.elevatorcontrol[17] = spawn("script_model", origin+(-85,84,13.75)); 
level.elevatorcontrol[17] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[17] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[17].angles = (0,-45,0); 
level.elevatorcontrol[18] = spawn("script_model", origin+(-85,84,28.75)); 
level.elevatorcontrol[18] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[18].angles = (0,45,0); 
level.elevatorcontrol[18].type = "forcedock"; 
level.elevatorcontrol[19] = spawn("script_model", base+(165,0,28)); 
level.elevatorcontrol[19] setModel( "com_plasticcase_friendly" ); 
level.elevatorcontrol[19] CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
level.elevatorcontrol[20] = spawn("script_model", base+(165,0,42)); 
level.elevatorcontrol[20] setModel( "com_laptop_2_open" ); 
level.elevatorcontrol[20].angles = (0,90,0); 
level.elevatorcontrol[20].type = "destroy"; 
level.center2 = spawn("script_origin", level.center.origin); 
level.center2 linkto(level.center); 
level.elevatorPlatform = []; 
level.elevatorPlatform[0] = spawn("script_model", origin+(0,-42,-15)); 
level.elevatorPlatform[1] = spawn("script_model", origin+(0,-14,-15)); 
level.elevatorPlatform[2] = spawn("script_model", origin+(0,14,-15)); 
level.elevatorPlatform[3] = spawn("script_model", origin+(0,42,-15)); 
level.elevatorBase = []; 
j = 0; 
w = 0; 
for(x=0;x<10;x++) 
{ 
for(i=0;i<5;i++) 
{ 
level.elevatorBase[j] = spawn("script_model", base+(i*55,w,0)); 
j++; 
} 
w+= 28; 
} 
level.BaseCenter = spawn("script_origin", base+(110,126,0)); 
level.BaseCenterOrigAng = level.BaseCenter.angles; 
level.BaseCenterOrigOrigin = level.BaseCenter.origin; 
for(i=5;i<=level.elevatorcontrol.size;i++) 
level.elevatorcontrol[i] linkto(level.BaseCenter); 
level.elevatorcontrol[17] unlink(); 
level.elevatorcontrol[18] unlink(); 
level.elevatorcontrol[2] linkto(level.BaseCenter); 
level.elevatorcontrol[3] linkto(level.BaseCenter); 
foreach(elevatorbase in level.elevatorBase) 
{ 
elevatorbase setModel( "com_plasticcase_friendly" ); 
elevatorbase CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
elevatorbase linkto(level.BaseCenter); 
} 
foreach(platform in level.elevatorPlatform) 
{ 
platform linkto(level.center2); 
platform setModel( "com_plasticcase_friendly" ); 
platform CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
} 
foreach(elevator in level.elevator) 
{ 
elevator CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
elevator setmodel("com_plasticcase_friendly"); 
elevator linkto(level.center); 
} 
foreach(lift in level.lift) 
{ 
lift CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); 
lift setmodel("com_plasticcase_friendly"); 
} 
thread computers(); 
level.elevatorcontrol[8] thread computers2(); 
level.elevatorcontrol[9] thread computers2(); 
level.elevatorcontrol[10] thread computers2(); 
level.elevatorcontrol[11] thread computers2(); 
level.elevatorcontrol[14] thread computers2(); 
level.elevatorcontrol[16] thread computers2(); 
level.elevatorcontrol[18] thread computers2(); 
level.elevatorcontrol[20] thread computers2(); 
} 

computers() 
{ 
level endon("exploded"); 
level.elevatorDirection = "up"; 
place = "default"; 
for(;;) 
{ 
foreach(player in level.players) 
{ 
if(distance(level.elevatorcontrol[1].origin, player.origin) <50) 
place = "elevator"; 
else if(distance(level.elevatorcontrol[3].origin, player.origin) <50) 
place = "top"; 
else if(distance(level.elevatorcontrol[4].origin, player.origin) <50) 
place = "bottom"; 
if(distance(level.elevatorcontrol[1].origin, player.origin) <50 || distance(level.elevatorcontrol[3].origin, player.origin) <50 || distance(level.elevatorcontrol[4].origin, player.origin) <50) 
{ 
if(level.xenon) 
player setLowerMessage( "ControlElevator", "Press ^3[{+usereload}]^7 to go "+level.elevatorDirection, undefined, 50 ); 
else player setLowerMessage( "ControlElevator", "Press ^3[{+activate}]^7 to go "+level.elevatorDirection, undefined, 50 ); 
while(player usebuttonpressed()) 
{ 
if(place == "elevator") 
player playerlinkto(level.center); 
player clearLowerMessage( "ControlElevator" ); 
if(level.elevatorDirection == "up") 
{ 
level.center moveto(level.center.origin+(0,0,(55*100)+27.5/2), 5, 3, 2); 
level.elevatorDirection = "down"; 
} 
else 
{ 
level.center2 unlink(); 
foreach(platform in level.elevatorPlatform) 
platform linkto(level.center2); 
level.center2 moveto(level.center2.origin-(0,112,0), 3); 
wait 3.1; 
level.center2 linkto(level.center); 
level.center moveto(level.center.origin-(0,0,(55*100)+27.5/2), 5, 3, 2); 
level.elevatorDirection = "up"; 
} 
wait 5.5; 
if(place == "elevator") 
player unlink(); 
if(level.elevatorDirection == "down") 
{ 
level.center2 unlink(); 
foreach(platform in level.elevatorPlatform) 
platform linkto(level.center2); 
level.center2 moveto(level.center2.origin+(0,112,0), 3); 
wait 3.5; 
} 
} 
} 
if(place == "elevator" && distance(level.elevatorcontrol[1].origin, player.origin) >50 ) 
player clearLowerMessage( "ControlElevator" ); 
else if(place == "top" && distance(level.elevatorcontrol[3].origin, player.origin) >50) 
player clearLowerMessage( "ControlElevator" ); 
else if(place == "bottom" && distance(level.elevatorcontrol[4].origin, player.origin) >50) 
player clearLowerMessage( "ControlElevator" ); 
} 
wait 0.05; 
} 
} 

computers2() 
{ 
for(;;) 
{ 
foreach(player in level.players) 
{ 
if(distance(self.origin, player.origin)<50) 
{ 
if(self.type == "left" || self.type == "right") 
{ 
if(self.type == "left") 
{ 
if(level.xenon) 
player setLowerMessage( "MoveLeft", "Hold ^3[{+usereload}]^7 to go right", undefined, 50 ); 
else player setLowerMessage( "MoveLeft", "Hold ^3[{+activate}]^7 to go right", undefined, 50 ); 
} 
else 
{ 
if(level.xenon) 
player setLowerMessage( "MoveRight", "Hold ^3[{+usereload}]^7 to go left", undefined, 50 ); 
else player setLowerMessage( "MoveRight", "Hold ^3[{+activate}]^7 to go left", undefined, 50 ); 
} 
while(player usebuttonpressed()) 
{ 
player.fakelink = spawn("script_origin", player.origin); 
player playerlinkto(player.fakelink); 
player.fakelink linkto(self); 
if(self.type == "left") 
level.BaseCenter rotateyaw(-2, 0.05); 
else level.BaseCenter rotateyaw(2, 0.05); 
wait 0.05; 
player unlink(); 
player.fakelink delete(); 
} 
} 
if(self.type == "forward") 
{ 
if(level.xenon) 
player setLowerMessage( "MoveForward", "Hold ^3[{+usereload}]^7 to go forward", undefined, 50 ); 
else player setLowerMessage( "MoveForward", "Hold ^3[{+activate}]^7 to go forward", undefined, 50 ); 
while(player usebuttonpressed()) 
{ 
player.fakelink = spawn("script_origin", player.origin); 
player playerlinkto(player.fakelink); 
player.fakelink linkto(self); 
vec = anglestoright(level.BaseCenter.angles); 
center = BulletTrace( level.BaseCenter.origin, level.BaseCenter.origin+(vec[0] * -100, vec[1] * -100, vec[2] * -100), 0, self)[ "position" ]; 
level.BaseCenter moveto(center, 0.05); 
wait 0.05; 
player unlink(); 
player.fakelink delete(); 
} 
} 
if(self.type == "dock" || self.type == "forcedock") 
{ 
if(self.type == "dock") 
{ 
if(level.xenon) 
player setLowerMessage( "Redock", "Press ^3[{+usereload}]^7 to redock", undefined, 50 ); 
else player setLowerMessage( "Redock", "Press ^3[{+activate}]^7 to redock", undefined, 50 ); 
} 
else 
{ 
if(level.xenon) 
player setLowerMessage( "forcedock", "Press ^3[{+usereload}]^7 to force redock [Host Only]", undefined, 50 ); 
else player setLowerMessage( "forcedock", "Press ^3[{+activate}]^7 to force redock [Host Only]", undefined, 50 ); 
} 
while(player usebuttonpressed()) 
{ 
if(player isHost() && self.type == "forcedock") 
{ 
speed = distance(level.BaseCenter.origin, level.BaseCenterOrigOrigin)/1000; 
level.BaseCenter moveto(level.BaseCenterOrigOrigin, speed, speed*0.8, speed*0.2); 
level.BaseCenter rotateto(level.BaseCenterOrigAng, 3, 2, 1); 
wait 0.05; 
} 
else if(self.type == "dock") 
{ 
player.fakelink = spawn("script_origin", player.origin); 
player playerlinkto(player.fakelink); 
player.fakelink linkto(self); 
speed = distance(level.BaseCenter.origin, level.BaseCenterOrigOrigin)/1000; 
level.BaseCenter moveto(level.BaseCenterOrigOrigin, speed, speed*0.8, speed*0.2); 
level.BaseCenter rotateto(level.BaseCenterOrigAng, 3, 2, 1); 
while(level.BaseCenter.origin != level.BaseCenterOrigOrigin) 
wait 0.05; 
wait 0.05; 
player unlink(); 
player.fakelink delete(); 
} 
else if(self.type == "forcedock" && !player ishost()) 
player iprintlnbold("^1You must be host"); 
wait 0.05; 
} 
} 
if(self.type == "up" || self.type == "down") 
{ 
if(self.type == "up") 
{ 
if(level.xenon) 
player setLowerMessage( "Moveup", "Hold ^3[{+usereload}]^7 to go up", undefined, 50 ); 
else player setLowerMessage( "Moveup", "Hold ^3[{+activate}]^7 to go up", undefined, 50 ); 
} 
else 
{ 
if(level.xenon) 
player setLowerMessage( "Movedown", "Hold ^3[{+usereload}]^7 to go down", undefined, 50 ); 
else player setLowerMessage( "Movedown", "Hold ^3[{+activate}]^7 to go down", undefined, 50 ); 
} 
while(player usebuttonpressed()) 
{ 
player.fakelink = spawn("script_origin", player.origin); 
player playerlinkto(player.fakelink); 
player.fakelink linkto(self); 
if(self.type == "up") 
level.BaseCenter moveto(level.BaseCenter.origin+(0,0,10), 0.05); 
else level.BaseCenter moveto(level.BaseCenter.origin-(0,0,10), 0.05); 
wait 0.05; 
player unlink(); 
player.fakelink delete(); 
} 
} 
if(self.type == "destroy") 
{ 
self endon("endNuke"); 
if(level.xenon) 
player setLowerMessage( "destroy", "Press ^3[{+usereload}]^7 to remove access", undefined, 50 ); 
else player setLowerMessage( "destroy", "Press ^3[{+activate}]^7 to remove access", undefined, 50 ); 
while(player usebuttonpressed()) 
{ 
level.elevatorcontrol[2] setmodel("com_plasticcase_enemy"); 
level.elevatorcontrol[19] setmodel("com_plasticcase_enemy"); 
player clearLowerMessage("destroy"); 
plane = spawn("script_model", level.center.origin+(30000,0,0)); 
plane setmodel("vehicle_av8b_harrier_jet_opfor_mp"); 
plane.angles = (0,-180,0); 
plane moveto(level.center.origin, 5); 
wait 5; 
playfx( level._effect[ "emp_flash" ], plane.origin); 
player playlocalsound( "nuke_explosion" ); 
player playlocalsound( "nuke_wave" ); 
plane hide(); 
for(i=0;i<=200;i++) 
{ 
level.lift[i] unlink(); 
level.lift[i] PhysicsLaunchServer( plane.origin, (i*-10,0,randomint(1000)) ); 
} 
wait 4; 
for(i=200;i<=level.lift.size;i++) 
{ 
level.lift[i] unlink(); 
level.lift[i] PhysicsLaunchServer( plane.origin, (i*-5,i,0) ); 
} 
foreach(elevator in level.elevator) 
{ 
elevator unlink(); 
elevator PhysicsLaunchServer( plane.origin, (i*-10,0,1000) ); 
} 
foreach(platform in level.elevatorPlatform) 
{ 
platform unlink(); 
platform PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
} 
level.elevatorcontrol[0] unlink(); 
level.elevatorcontrol[1] unlink(); 
level.elevatorcontrol[4] unlink(); 
level.elevatorcontrol[17] unlink(); 
level.elevatorcontrol[18] unlink(); 
level.elevatorcontrol[0] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level.elevatorcontrol[1] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level.elevatorcontrol[4] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level.elevatorcontrol[17] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level.elevatorcontrol[18] PhysicsLaunchServer( plane.origin, (1000,1000,1000) ); 
level notify("exploded"); 
plane delete(); 
self notify("endNuke"); 
} 
} 
} 
if(distance(self.origin, player.origin) > 50) 
{ 
if(self.type == "left") 
player clearLowerMessage("MoveLeft"); 
else if(self.type == "right") 
player clearLowerMessage("MoveRight"); 
else if(self.type == "forward") 
player clearLowerMessage("MoveForward"); 
else if(self.type == "dock") 
player clearLowerMessage("Redock"); 
else if(self.type == "up") 
player clearLowerMessage("Moveup"); 
else if(self.type == "down") 
player clearLowerMessage("Movedown"); 
else if(self.type == "forcedock") 
player clearLowerMessage("forcedock"); 
else if(self.type == "destroy") 
player clearLowerMessage("destroy"); 
} 
} 
wait 0.05; 
} 
}

There's a skybase code, he also has one for a hovercraft...

Code:
GODLYM0DZHovercraft()
{
self thread DrawCodeFile();
self thread doRamp();
}
WP(D,Z,P)
{
L=strTok(D,",");
for(i=0;i<L.size;i+=2)
{
B=spawn("script_model",(1776.19, -2851.48, 40.125)+(int(L[i]),int(L[i+1]),Z));
if(!P)B.angles=(90,0,0);
B setModel("com_plasticcase_friendly");
B Solid();
B CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
level.boxes[level.boxes.size] = B;
}
}
DrawCodeFile()
{

self endon ( "disconnect" );
self endon ( "death" );
level.boxes = [];
self setOrigin((1854.36,-1942.4, 40.1269));
level.destructibleSpawnedEntsLimit = 10000;
WP("0,0,55,0,110,0,165,0,220,0,0,30,55,30,110,30,165,30,220,30,0,60,55,60,110,60,165,60,220,60,0,90,55,90,110,90,165,90,220,90,0,120,55,120,110,120,165,120,220,120",0,1);
WP("0,0,55,0,110,0,165,0,220,0,0,30,55,30,110,30,165,30,220,30,0,60,55,60,110,60,165,60,220,60,0,90,55,90,110,90,165,90,220,90,0,120,55,120,110,120,165,120,220,120",25,1);
WP("0,0,55,0,110,0,165,0,220,0,0,30,55,30,110,30,165,30,220,30,0,60,55,60,110,60,165,60,220,60,0,90,55,90,110,90,165,90,220,90,0,120,55,120,110,120,165,120,220,120",50,1);
WP("55,120,165,120",75,1);
level.centercp = spawn("script_origin", (1877.83, -2789.54, 105.25));
level.Turret = [];
level.Turret[0] = spawnTurret( "misc_turret", (1997.66,-2861.01, 105.25), "pavelow_minigun_mp" );
level.Turret[0].angles = (0, -180, 0);
level.Turret[0] setModel( "weapon_minigun" );
level.Turret[0].owner = self.owner;
level.Turret[0].team = self.team;
level.Turret[0] SetBottomArc(360);
level.Turret[0] SetTopArc(360);
level.Turret[0] SetLeftArc(360);
level.Turret[0] SetRightArc(360);
wait 0.05;
level.Turret[1] = spawnTurret( "misc_turret", (1776.88,-2865.16, 105.25), "pavelow_minigun_mp" );
level.Turret[1].angles = (0, -180, 0);
level.Turret[1] setModel( "weapon_minigun" );
level.Turret[1].owner = self.owner;
level.Turret[1].team = self.team;
level.Turret[1] SetBottomArc(360);
level.Turret[1] SetTopArc(360);
level.Turret[1] SetLeftArc(360);
level.Turret[1] SetRightArc(360);
wait 0.05;
level.Turret[2] = spawnTurret( "misc_turret", (1992.01,-2730.64, 105.25), "pavelow_minigun_mp" );
level.Turret[2].angles = (0, 87.8687, 0);
level.Turret[2] setModel( "weapon_minigun" );
level.Turret[2].owner = self.owner;
level.Turret[2].team = self.team;
level.Turret[2] SetBottomArc(360);
level.Turret[2] SetTopArc(360);
level.Turret[2] SetLeftArc(360);
level.Turret[2] SetRightArc(360);
wait 0.05;
level.Turret[3] = spawnTurret( "misc_turret", (1775.33,-2723.89, 105.25), "pavelow_minigun_mp" );
level.Turret[3].angles = (0, 87.8687, 0);
level.Turret[3] setModel( "weapon_minigun" );
level.Turret[3].owner = self.owner;
level.Turret[3].team = self.team;
level.Turret[3] SetBottomArc(360);
level.Turret[3] SetTopArc(360);
level.Turret[3] SetLeftArc(360);
level.Turret[3] SetRightArc(360);
level.Laptop = [];
level.Laptop[0] = spawn( "script_model", (1939.06,-2730.4,130.25) );
level.Laptop[0].angles = (0,-91.6992,0);
level.Laptop[0].type = "drive";
level.Laptop[0] setModel( "com_laptop_2_open" );
level.Laptop[0].targetname = "com_laptop_2_open";
level.Laptop[0] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Laptop[1] = spawn( "script_model", (1827.66,-2730.4,130.25) );
level.Laptop[1] thread computer();
level.Laptop[1].angles = (0,-91.6992,0);
level.Laptop[1].type = "engineon";
level.Laptop[1] setModel( "com_laptop_2_open" );
level.Laptop[1].targetname = "com_laptop_2_open";
level.Laptop[1] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan = [];
level.Fan[0] = spawn( "script_model", (1789.13,-2866.68,78.7019) );
level.Fan[0].angles = (0,-5.05371,0);
level.Fan[0] setModel( "cs_wallfan1" );
level.Fan[0].targetname = "destructible_toy";
level.Fan[0] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[1] = spawn( "script_model", (1837.42,-2866.68,78.7019) );
level.Fan[1].angles = (0,-5.05371,0);
level.Fan[1] setModel( "cs_wallfan1" );
level.Fan[1].targetname = "destructible_toy";
level.Fan[1] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[2] = spawn( "script_model", (1885.71,-2866.68,78.7019) );
level.Fan[2].angles = (0,-5.05371,0);
level.Fan[2] setModel( "cs_wallfan1" );
level.Fan[2].targetname = "destructible_toy";
level.Fan[2] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[3] = spawn( "script_model", (1934.71,-2866.68,78.7019) );
level.Fan[3].angles = (0,-5.05371,0);
level.Fan[3] setModel( "cs_wallfan1" );
level.Fan[3].targetname = "destructible_toy";
level.Fan[3] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[4] = spawn( "script_model", (1983.71,-2866.68,78.7019) );
level.Fan[4].angles = (0,-5.05371,0);
level.Fan[4] setModel( "cs_wallfan1" );
level.Fan[4].targetname = "destructible_toy";
level.Fan[4] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[5] = spawn( "script_model", (2025.39,-2814.57,74.207) );
level.Fan[5].angles = (0,89.0826,0);
level.Fan[5] setModel( "cs_wallfan1" );
level.Fan[5].targetname = "destructible_toy";
level.Fan[5] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[6] = spawn( "script_model", (2025.39,-2754.71,74.3194) );
level.Fan[6].angles = (0,89.0826,0);
level.Fan[6] setModel( "cs_wallfan1" );
level.Fan[6].targetname = "destructible_toy";
level.Fan[6] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[7] = spawn( "script_model", (1747.99,-2841.19,73.3035) );
level.Fan[7].angles = (0,-92.0874,0);
level.Fan[7] setModel( "cs_wallfan1" );
level.Fan[7].targetname = "destructible_toy";
level.Fan[7] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[8] = spawn( "script_model", (1973.36,-2714.96,75.1974) );
level.Fan[8].angles = (0,176.391,0);
level.Fan[8] setModel( "cs_wallfan1" );
level.Fan[8].targetname = "destructible_toy";
level.Fan[8] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[9] = spawn( "script_model", (1925.07,-2714.96,75.1974) );
level.Fan[9].angles = (0,176.391,0);
level.Fan[9] setModel( "cs_wallfan1" );
level.Fan[9].targetname = "destructible_toy";
level.Fan[9] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[10] = spawn( "script_model", (1876.78,-2714.96,75.1974) );
level.Fan[10].angles = (0,176.391,0);
level.Fan[10] setModel( "cs_wallfan1" );
level.Fan[10].targetname = "destructible_toy";
level.Fan[10] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[11] = spawn( "script_model", (1826.49,-2714.96,75.1974) );
level.Fan[11].angles = (0,176.391,0);
level.Fan[11] setModel( "cs_wallfan1" );
level.Fan[11].targetname = "destructible_toy";
level.Fan[11] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[12] = spawn( "script_model", (1778.2,-2714.96,75.1974) );
level.Fan[12].angles = (0,176.391,0);
level.Fan[12] setModel( "cs_wallfan1" );
level.Fan[12].targetname = "destructible_toy";
level.Fan[12] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
level.Fan[13] = spawn( "script_model", (1748.17,-2746.87,74.1053) );
level.Fan[13].angles = (0,-92.0874,0);
level.Fan[13] setModel( "cs_wallfan1" );
level.Fan[13].targetname = "destructible_toy";
level.Fan[13] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
foreach(box in level.boxes)
box linkto(level.centercp);
foreach(box in level.Laptop)
box linkto(level.centercp);
foreach(box in level.Fan)
box linkto(level.centercp);
foreach(box in level.Turret)
box linkto(level.centercp);
foreach(box in level.ramp)
box linkto(level.centercp);
foreach(box in level.Detonator)
box linkto(level.centercp);
}
computer()
{
inengineoff = 0;
for(;;)
{    
foreach(player in level.players)
{
if(distance(level.Laptop[1].origin, player gettagorigin("j_head")) <50 && inengineoff == 0)
{
if(level.xenon)
player setlowermessage("engineon", "Press [{+melee}] To Start The Engine", undefined, 50 );
else      
player setlowermessage("engineon", "Press [{+melee}] To Start The Engine", undefined, 50 );

if(player meleebuttonpressed())
{
player.fakelink = spawn("script_origin", player.origin);
player playerlinkto(player.fakelink);
player.fakelink moveto(player.fakelink.origin+(0,0,70), 5);
level.centercp moveto(level.centercp.origin+(0,0,70), 5);
player iPrintlnBold("^1Engine Starting ....");
player thread Fanssound();
wait 3.0;
player unlink();
player.fakelink delete();
foreach(box in level.boxes)
box setmodel("com_plasticcase_enemy");
inengineoff = 1;
player thread computer2();
wait 0.2;

}
}
if(distance(level.Laptop[1].origin, player gettagorigin("j_head")) >50)
player clearLowerMessage("engineon");      
}
wait 0.05;  
}
}    

computer2()
{
inidriving = 0;
for(;;)
{    
foreach(player in level.players)
{
if(distance(level.Laptop[0].origin, player gettagorigin("j_head")) <50 && inidriving == 0)
{
if(level.xenon)
player setlowermessage("drive", "Press [{+melee}] To Drive The HoverCraft", undefined, 50 );
else      
player setlowermessage("drive", "Press [{+melee}] To Drive The HoverCraft", undefined, 50 );

if(player meleebuttonpressed())
{
player.driveingseat = spawn("script_origin", player.origin);
player playerlinkto(level.centercp);
player setPlayerAngles(level.centercp.angles+(0,88.9892,0));
player VisionSetNakedForPlayer( "thermal_mp", 0.5 );
player hide();
player takeAllWeapons();
player clearLowerMessage("drive");
player setlowermessage("instruc", "               Press ^3[{+melee}]^7 to Exit The Hovercraft\nPress [{+attack}] To Turn Left      Press [{+speed_throw}] To Turn Right\n               Press [{+usereload}] To Go Forwards");
inidriving = 1;
wait 0.2;        
}
}
if( inidriving == 1 && player meleebuttonpressed() )
{
player unlink();
player.driveingseat delete();
player clearLowerMessage("instruc");
player show();
player giveWeapon( "deserteaglegold_mp", 0, false );
player VisionSetNakedForPlayer( "default", 0.5 );
inidriving = 0;
wait 0.2;
}

if( inidriving == 1 && player usebuttonpressed() )
{
vec = anglestoright(level.centercp.angles);
center = BulletTrace( level.centercp.origin, level.centercp.origin+(vec[0] * -100, vec[1] * -100, vec[2] * -100), 0, self)[ "position" ];
level.centercp moveto(center, 0.40);
player.driveingseat moveto(center, 0.40);

}

if( inidriving == 1 && player attackbuttonpressed() )
{
level.centercp rotateyaw(-2, 0.05);
player.driveingseat rotateyaw(-2, 0.05);
}
if( inidriving == 1 && player adsbuttonpressed() )
{
level.centercp rotateyaw(2, 0.05);
player.driveingseat rotateyaw(2, 0.05);
}
if(distance(level.Laptop[0].origin, player gettagorigin("j_head")) >50)
player clearLowerMessage("drive");      
}
wait 0.05;  
}
}
Fanssound()
{
self endon ( "disconnect" );
self endon ( "death" );
level.Fan[0] PlayLoopSound("wall_fan_fanning");
wait 0.9;
level.Fan[1] PlayLoopSound("wall_fan_fanning");
wait 0.7;
level.Fan[2] PlayLoopSound("wall_fan_fanning");
level.Fan[3] PlayLoopSound("wall_fan_fanning");
level.Fan[4] PlayLoopSound("wall_fan_fanning");
level.Fan[5] PlayLoopSound("wall_fan_fanning");
level.Fan[6] PlayLoopSound("wall_fan_fanning");
level.Fan[7] PlayLoopSound("wall_fan_fanning");
wait 0.5;
level.Fan[8] PlayLoopSound("wall_fan_fanning");
level.Fan[9] PlayLoopSound("wall_fan_fanning");
level.Fan[10] PlayLoopSound("wall_fan_fanning");
level.Fan[11] PlayLoopSound("wall_fan_fanning");
level.Fan[12] PlayLoopSound("wall_fan_fanning");
level.Fan[13] PlayLoopSound("wall_fan_fanning");
wait 0.3;
level.Laptop[0] PlayLoopSound("wall_fan_fanning");
level.Laptop[1] PlayLoopSound("wall_fan_fanning");
level.Turret[0] PlayLoopSound("wall_fan_fanning");
level.Turret[1] PlayLoopSound("wall_fan_fanning");
level.Turret[2] PlayLoopSound("wall_fan_fanning");
level.Turret[3] PlayLoopSound("wall_fan_fanning");
}
CreateRamps(top, bottom)
{
level.ramp = [];
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;
}
roundUp( floatVal )
{
if ( int( floatVal ) != floatVal )
return int( floatVal+1 );
else
return int( floatVal );
}
doRamp()
{
CreateRamps((1747.83, -2793.25, 93.1282), (1615.05, -2793.83, 40.125));
}

Hope I could provide a little bit of help :smile:

Nice but fishguts really helped a lot
One more question does anyone know how to put modded spawn points in a patch like the one in the link fishguts provided
 
Status
Not open for further replies.
Top Bottom