• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Make ac130 shoot custom bullets
#1
Hello Big Grin

I was working on how to shoot magicbullets from ac130, but it doesn't work :/
The modified _ac130.gsc
Code:
weaponFiredThread()
{
    self endon ( "ac130player_removed" );

    for(;;)
    {
        self waittill( "weapon_fired" );  
        
        ForwardTrace = Bullettrace(level.ac130 gettagorigin("tag_player"), level.ac130 getTagOrigin("tag_player") + vector_multiply(anglestoforward(self getplayerangles()), 100000), true, self)[ "position" ];
        MagicBullet("remotemissile_projectile_mp", level.ac130 gettagorigin("tag_player"), ForwardTrace, false, self);

        weapon = self getCurrentWeapon();
        
        if ( weapon == "ac130_105mm_mp" )
        {
            self thread gun_fired_and_ready_105mm();            
            earthquake (0.2, 1, level.ac130.planeModel.origin, 1000);
        }
        else if ( weapon == "ac130_40mm_mp" )
        {
            earthquake (0.1, 0.5, level.ac130.planeModel.origin, 1000);
        }

        if ( self getWeaponAmmoClip( weapon ) )
            continue;
            
        self thread weaponReload( weapon );
    }
}


Can anyone help please, thanks Rolleyes
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 5,795 10-29-2013, 07:22
Last Post: xInfinity.
  Make area detect. flag Teleport lewisbibo 4 2,179 10-12-2013, 18:10
Last Post: EnVi Sweden Rocks
Wink Make Platforme lewisbibo 5 2,250 10-08-2013, 14:35
Last Post: 8q4s8
  Make obj MW3.by lewisbibo lewisbibo 3 1,883 10-05-2013, 20:16
Last Post: Nekochan
  Make obj MW3.by lewisbibo lewisbibo 0 1,110 10-03-2013, 20:19
Last Post: lewisbibo
  Help need help?how to make plugins code hXnarutoXone 12 3,614 09-01-2013, 18:30
Last Post: Bandarigoda123
  Custom xanims DidUknowiPwn 8 3,232 08-28-2013, 08:17
Last Post: RaZ
  [Tutorial] Custom gametype HUD iAegle 17 7,512 07-14-2013, 01:16
Last Post: Nekochan
  how to make a plugin (mod) E-losev 5 2,088 07-12-2013, 15:48
Last Post: OzonE
Video Custom Facepaints? Cuddlyedits 5 1,667 07-01-2013, 14:58
Last Post: iPaddie

Forum Jump:


Users browsing this thread: 1 Guest(s)