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,834 11-07-2013, 13:41
Last Post: Nekochan
  Black Ops 2 Custom background? jotape99 10 12,414 10-29-2013, 07:22
Last Post: xInfinity.
  Custom xanims DidUknowiPwn 8 7,043 08-28-2013, 08:17
Last Post: RaZ
  Help Make ac130 shoot custom bullets Ra3shed 0 2,722 07-23-2013, 13:02
Last Post: Ra3shed
  [Tutorial] Custom gametype HUD iAegle 17 15,278 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,521 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,506 06-22-2013, 07:33
Last Post: mattyman
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 154,572 05-25-2013, 01:05
Last Post: Nero Z zero
  QS Mod by GeKKo v 6.5 with Custom Maps GeKKoFL0X 35 30,508 05-21-2013, 19:30
Last Post: [HARD] Tony.
  [Request] custom gun mod ColorCorrects 2 3,150 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.