Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Controllable sentry
#1
basicaly this allows you to spawn a sentry gun that shoots custom ammo


heres a example of a way to use it

self thread spawn_speacialT(Fort1, "m60_mp", self.origin);


Code:
spawn_speacialT(name, weapon, pos)
{
    level.miniGun[name] = spawnTurret( "auto_turret", pos, "auto_gun_turret_mp" );
        level.miniGun[name] setModel(level.auto_turret_settings["sentry"].modelBase);
        level.miniGun[name] SetTurretType("sentry");
        level.miniGun[name].angles = self.angles;
    level thread checkitT(level.miniGun[name], weapon, self getTagOrigin("tag_eye"));
    
}

checkitT(name, weapon, pos)
{
    for(;;)
    {
        if( name IsFiringTurret() )
        {
            end = self vector_multiply(anglestoforward(name.angles),1000000);
                Crosshair = BulletTrace( pos, end, true, self )[ "position" ];
            MagicBullet( weapon, pos,  Crosshair);
        }
    }
}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Sentry Gun kill = Player kill Snake 8 5,455 11-07-2013, 13:41
Last Post: Nekochan
  Black Ops 2 Custom background? jotape99 10 11,690 10-29-2013, 07:22
Last Post: xInfinity.
  Custom xanims DidUknowiPwn 8 6,686 08-28-2013, 08:17
Last Post: RaZ
  Help Make ac130 shoot custom bullets Ra3shed 0 2,579 07-23-2013, 13:02
Last Post: Ra3shed
  [Tutorial] Custom gametype HUD iAegle 17 14,275 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,175 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,358 06-22-2013, 07:33
Last Post: mattyman
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 139,133 05-25-2013, 01:05
Last Post: Nero Z zero
  QS Mod by GeKKo v 6.5 with Custom Maps GeKKoFL0X 35 28,868 05-21-2013, 19:30
Last Post: [HARD] Tony.
  [Request] custom gun mod ColorCorrects 2 2,939 05-18-2013, 22:19
Last Post: mitchhacker

Forum Jump:


Users browsing this thread:
1 Guest(s)

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