You are viewing our Forum Archives. To view or take place in current topics click here.
[RELEASE] GODLYM0DZ Hovercraft
Posted:

[RELEASE] GODLYM0DZ HovercraftPosted:

Gmodz
  • Junior Member
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
BIG Thanks to :

Lost4468
Ahaloa
Antic






onPlayerSpawned()
{
        self endon( "disconnect" );
 
        for(;;)
        {
                self waittill( "spawned_player" );
                self thread Hovercraft();
               
                         
               
        }
}



Hovercraft()
{
   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));
}




Download Link
[ Register or Signin to view external links. ]

The following 2 users thanked Gmodz for this useful post:

TTGxMaGiKz (09-07-2010), xLasers (09-07-2010)
#2. Posted:
MatthewUK
  • Retired Staff
Status: Offline
Joined: Apr 08, 201014Year Member
Posts: 7,364
Reputation Power: 478
Status: Offline
Joined: Apr 08, 201014Year Member
Posts: 7,364
Reputation Power: 478
Lol I WOW Awesome
First Time I Never Saw The Vid


Last edited by MatthewUK ; edited 1 time in total
#3. Posted:
xLasers
  • TTG Contender
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 3,068
Reputation Power: 141
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 3,068
Reputation Power: 141
looks very nice!! thanks for sharing
#4. Posted:
Gmodz
  • Junior Member
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
and btw im GODLYM0DZ
#5. Posted:
Gmodz
  • Junior Member
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
Status: Offline
Joined: Jul 21, 201014Year Member
Posts: 54
Reputation Power: 4
xLasers wrote looks very nice!! thanks for sharing


thanks and BTW im GODLYM0DZ
#6. Posted:
CuBaNzInCHaRG3
  • TTG Fanatic
Status: Offline
Joined: Jul 28, 200915Year Member
Posts: 4,326
Reputation Power: 157
Status: Offline
Joined: Jul 28, 200915Year Member
Posts: 4,326
Reputation Power: 157
looks pretty cool and its kinnda funny
#7. Posted:
FreeStylin
  • TTG Senior
Status: Offline
Joined: Jul 18, 201014Year Member
Posts: 1,350
Reputation Power: 56
Status: Offline
Joined: Jul 18, 201014Year Member
Posts: 1,350
Reputation Power: 56
That is quite sick man
#8. Posted:
Local_Market
  • TTG Senior
Status: Offline
Joined: Jun 29, 201014Year Member
Posts: 1,460
Reputation Power: 59
Status: Offline
Joined: Jun 29, 201014Year Member
Posts: 1,460
Reputation Power: 59
Thats preettty cool dude nicee
#9. Posted:
oSo-_-iSHAUN
  • TTG Addict
Status: Offline
Joined: Mar 20, 201014Year Member
Posts: 2,592
Reputation Power: 113
Status: Offline
Joined: Mar 20, 201014Year Member
Posts: 2,592
Reputation Power: 113
Gmodz wrote and btw im GODLYM0DZ
u would hold yah as teh song lolz
#10. Posted:
GioTheRipper
  • TTG Senior
Status: Offline
Joined: Jul 03, 201014Year Member
Posts: 1,122
Reputation Power: 47
Status: Offline
Joined: Jul 03, 201014Year Member
Posts: 1,122
Reputation Power: 47
i love these mods but there kinda usless
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.