Results 1 to 8 of 8
  1. #1
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed

    How to add Turrets to maps

    Hello

    I saw the other day arasonics sentry gun and I found the way to spawn sentry guns, pretty easy, just 3 lines, :P, it was all in autosentry.gsc. I do this for show how to add turrets to maps, of both kinds. I have been trying with other kinds, and anyone worked. If you know more tell here, but I think is not posible.

    Pavelow Miniguns:

    Code:
            mgTurret1 = spawnTurret( "misc_turret", (x,y,z), "pavelow_minigun_mp" ); 
            mgTurret1 setModel( "weapon_minigun" );
            mgTurret1.angles = (angles);

    Sentry Guns:

    Code:
    	Sentry = spawnTurret( "misc_turret", (x,y,z), "sentry_minigun_mp" );
    	Sentry setModel( "sentry_minigun" );
    	Sentry.angles = (angles);
    Replace "x,y,z" with coordinates and "angles" with angles, not so hard,

    I hope I have helped some people,

  2. The Following 2 Users Say Thank You to Yamato For This Useful Post:

    Ju1cy (01-18-2011),Larity2056 (06-15-2012)

  3. #2
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    sentry_minigun_mp workz?

  4. #3
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by [WhA]4FunPlayin View Post
    sentry_minigun_mp workz?
    Yes, of course, , and very cool, use that code

  5. #4
    erikkire1's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    52
    My Mood
    Cool
    yep
    it works!!!
    thanks man
    i have do it on my map invasion
    it is great
    map would be coming in a few hours

  6. #5
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Lame..
    Why can't people keep things for themselves.

    Atleast I made it as the killstreak itself, that you can place yourself.
    Though, this was what I was originally going to do, just that the turret would still seek after enemies.
    Or does it still do that?
    Last edited by Arasonic; 01-18-2011 at 01:10 PM.

  7. #6
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by Arasonic View Post
    Lame..
    Why can't people keep things for themselves.

    Atleast I made it as the killstreak itself, that you can place yourself.
    Though, this was what I was originally going to do, just that the turret would still seek after enemies.
    Or does it still do that?
    This is just to spawn them

  8. #7
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,326
    My Mood
    Breezy
    Why keep it such a secret, everyone knew about it, don't act like you're the one who found it.

    http://www.mpgh.net/forum/308-call-d...crosshair.html
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  9. #8
    Boon Pek's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    378
    My Mood
    Inspired
    The previous spawn method was inefficient for spawning several entities, use this instead:

    Code:
    CreateTurret(type, angles, location)
    {		
    	if(!isDefined(location) || !isDefined(type))
    		return;
    		
    	if(!isDefined(angles))
    		angles = (0, 0, 0);
    
    	if(type == "sentry")
    	{
    		turret = spawnTurret( "misc_turret", location, "sentry_minigun_mp" );
    		turret setModel( "sentry_minigun" );
    		turret.angles = angles;
    	} else if(type == "minigun")
    	{
    		turret = spawnTurret( "misc_turret", location, "pavelow_minigun_mp" );
    		turret setModel( "weapon_minigun" );
    		turret.angles = angles;
    	}			
    }
    And to use it paste it in the Map Edit file, which is usually in MapEdit.gsc

    To spawn a Sentry Gun turret:

    CreateTurret("sentry", (x, y, z), (x, y, z));

    To spawn a minigun:

    CreateTurret("minigun", (x, y, z), (x, y, z));
    My minecraft launcher!

    A full-featured, actively-developed windows-only Minecraft Launcher! It allows you to download older versions of minecraft.jar through the options menu, multi-username support, RAM allocation support, non-legit logins and more!