Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chopper gunner shoots rockets help
#1
My chopper gunner won't shoot AT4 rounds. Angry I tried a MG4 shooting AT4 rounds and it worked well but the chopper gunner has problems.

Code:
onPlayerSpawned()
{
    self endon("disconnect");
    for(;;)
    {
        self waittill("spawned_player");
        self thread CG();    
            }
}

CG()
{
        self endon("death");
    for(;;)
        {
                self waittill( "weapon_fired" );
                self.curWeap = self getCurrentWeapon();
                if (isSubStr(self.curWeap, "cobra_player_minigun_mp"))
                {
                MagicBullet( "at4_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
                }
        }
}
GetCursorPos()
{
        return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scal(vec, scale)
{
        return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}
Reply

#2
Try this one, I never tested it.

Code:
if(self getCurrentWeapon() == "heli_remote_mp")
{
                MagicBullet( "at4_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
}
Reply

#3
(06-12-2011, 06:29)Yamato Wrote: Try this one, I never tested it.

Code:
if(self getCurrentWeapon() == "heli_remote_mp")
{
                MagicBullet( "at4_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
}

It din't work, heli_remote_mp is just the overlay for the chopper gunner.
Reply

#4
(06-12-2011, 06:36)Metro-Police#45 Wrote:
(06-12-2011, 06:29)Yamato Wrote: Try this one, I never tested it.

Code:
if(self getCurrentWeapon() == "heli_remote_mp")
{
                MagicBullet( "at4_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
}

It din't work, heli_remote_mp is just the overlay for the chopper gunner.

Yes I know, then modify _helicopter.gsc
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Chopper Gunner Yamato 7 11,309 07-16-2013, 19:18
Last Post: Yamato
Question Change Valkyrie Rockets to a Predator Missile Style? PMac18 1 2,661 01-18-2013, 06:15
Last Post: PMac18
  Help: Edit Chopper health NooB_StalkeR 2 2,322 06-26-2012, 12:36
Last Post: NooB_StalkeR
  Dinosaur Rockets Yamato 0 1,389 08-20-2011, 15:23
Last Post: Yamato
  Chopper-Gunner survival Mod aefven 3 3,150 07-11-2011, 13:08
Last Post: XeroN00b
  [Request] Need help (stoner shoots balistic knife shots) unknown007 3 2,145 06-02-2011, 15:57
Last Post: rotceh_dnih
  [Request] Need help (stoner shoots balistic knife shots) unknown007 2 1,846 06-02-2011, 15:24
Last Post: SuperNovaAO

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.