You are viewing our Forum Archives. To view or take place in current topics click here.
Read This iF You Know How To Code!
Posted:

Read This iF You Know How To Code!Posted:

IsoModShops_Lobbyz
  • Junior Member
Status: Offline
Joined: Aug 05, 201113Year Member
Posts: 77
Reputation Power: 3
Status: Offline
Joined: Aug 05, 201113Year Member
Posts: 77
Reputation Power: 3
Can SomeOne Help me with the flyable harrier's?!?!




This Is A code For FLYABLE Harrier's!



StartHarrier()
{
   self endon( "disconnect" );
   self endon( "death" );
   self.origin = self.save;
   self setClientDvar("cg_thirdPerson", "1" );
   self setClientDvar("cg_thirdPersonRange", "500" );
   self setClientDvar( "cg_thirdpersonangle", "6" );//so you can see where your shooting
   self.harrier = spawn( "script_model", self.origin );
   self.harrier setModel( "defaultvehicle" );
   self playerLinkTo( self.harrier );
   self hide();
   self takeallweapons();
   self giveweapon( "zombie_colt" );//2 semi-automatic guns
   self giveweapon( "gewehr43" );//
   self CloseandLockMenu();
   self SetClientDvar( "cg_thirdPerson", "1" );
   self EnableInvulnerability();
   self EnableHealthShield( true );
   self setClientDvar( "cg_drawCrosshair", "0" );
   self setClientDvar( "cg_drawGun", "0" );
   self setClientDvar( "ui_hud_hardcore", "1" );
   self.weap = strTok( "PANZERSCHREK|GRENADE LAUCNCHER|UPGRADED COLT", "|" );
   self.name = strTok( "panzerschrek|m7_launcher|colt_dirty_harry", "|" );
   self.weaponHUD = self createFontString( "objective", 1.4 );
    self.weaponHUD setPoint( "TOPRIGHT", "TOPRIGHT", 0, 23 );
    self.weaponHUD setText( "CURRENT WEAPON: ^6PANZERSCHREK" );
   self.speedHUD = self createFontString( "objective", 1.4 );
   self.speedHUD setPoint( "CENTER", "TOP", -65, 9 );
   self.speedHUD setText( "^1SPEED: 50 MPH" );
   self thread monitorYs();
   self thread watchShoot();
   self.speed = 50;
   self.cursss = 0;
   self thread alwaysberunning();
   for( ;; )
   {
      if( self FragButtonPressed() )
      {
         if( self.speed < 150 ) self.speed += 5;
         wait .2;
         while( self FragButtonPressed() )
         {
            if( self.speed < 150 ) self.speed += 5;
            self updates();
            wait .05;
         }
      }
      if( self AdsButtonPressed() )
      {
         if( self.speed > 0 ) self.speed -= 5;
         wait .2;
         while( self AdsButtonPressed() )
         {
            if( self.speed > 0 ) self.speed -= 5;
            self updates();
            wait .05;
         }
      }
      if( self MeleeButtonPressed() )
      {
         self.harrier delete();
         self notify( "harrier_done" );
         self setOrigin( self.save );
         self setClientDvar( "cg_thirdPerson", "0" );
         self.speedHUD destroy();
         self.weaponHUD destroy();
         self setClientDvar( "cg_drawCrosshair", "1" );
         self setClientDvar( "cg_drawGun", "1" );
         self setClientDvar( "ui_hud_hardcore", "0" );
         self VisionSetNaked( "default", "1" );
         self SetClientDvar( "r_brightness", "0" );
         self SetClientDvar( "cg_thirdPerson", "0" );
         self SetClientDvar( "cg_thirdPersonRange", "120" );
         self setClientDvar( "cg_thirdpersonangle", "0" );
         self UnlockMenu();
         self show();
         break;
      }
      self updates();
      self.harrier.angles = self getPlayerAngles();
      self SetWeaponAmmoClip( "zombie_colt", 8 );
      self SetWeaponAmmoClip( "gewehr43", 10 );
      self SetWeaponAmmoClip( "stielhandgranate", 0 );
      wait 0.01;
   }
}
updates()
{
      speed = ceil( self.speed );
      self.weaponHUD setText( "Current Weapon: ^1"+self.weap[self.cursss] );
      self.speedHUD setText( "Speed: ^1"+speed+" ^7MPH");
}
watchShoot()
{
   self endon( "disconnect" );
   self endon( "death" );
   self endon( "harrier_done" );
   self giveweapon( "molotov" );
   for( ;; )
   {
      self waittill( "weapon_fired" );
      for(i=0;i<5;i++)
      {
         MagicBullet( self.name[self.cursss],self.origin+(0,0,20),self GetCursorPos(),self);
         wait .01;
      }
   }
}
alwaysberunning()
{
   self endon( "disconnect" );
   self endon( "death" );
   self endon( "harrier_done" );
   for( ;; )
   {
   vec = anglesToForward( self getPlayerAngles() );
   end = ( vec[0] * (self.speed*.7), vec[1] * (self.speed*.7), vec[2] * (self.speed*.7) );
   self.harrier.origin = self.harrier.origin + end;
   wait 0.01;
   }
}
GetCursorPos()
{
   forward = self getTagOrigin("tag_eye");
   end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
   location = BulletTrace( forward, end, 0, self)[ "position" ];
   return location;
}
monitorYs()
{
   self endon( "disconnect" );
   self endon( "death" );
   self endon( "harrier_done" );
   self.curs = 0;
   for( ;; )
   {
      self waittill( "weapon_change" );
      self updates();
      self.cursss++;
      if( self.cursss > 2 ) self.cursss = 0;
      wait 0.05;
   }
}
#2. Posted:
EG_x_Undead
  • Wise One
Status: Offline
Joined: Feb 17, 201113Year Member
Posts: 543
Reputation Power: 1
Status: Offline
Joined: Feb 17, 201113Year Member
Posts: 543
Reputation Power: 1
what do you wan't help with?
#3. Posted:
A1_Q2
  • New Member
Status: Offline
Joined: Aug 28, 201113Year Member
Posts: 16
Reputation Power: 0
Status: Offline
Joined: Aug 28, 201113Year Member
Posts: 16
Reputation Power: 0
#4. Posted:
-Hermione-
  • TTG Fanatic
Status: Offline
Joined: May 07, 201113Year Member
Posts: 4,298
Reputation Power: 12
Status: Offline
Joined: May 07, 201113Year Member
Posts: 4,298
Reputation Power: 12
self thread StartHarrier() ??
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.