Results 1 to 10 of 10
  1. #1
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default [Release] Play fetch

    When activated, if someone throws a grenade or a tomahawk or some other type of projectile a attack dog will go to the location and bring it back to you.

    Code:
    EveryoneG()//Add this in your mod menu
    {
    	setDvar( "scr_dog_count", level.players.size);
    	setDvar( "scr_dog_max_at_once", level.players.size ); 
    	setDvar( "scr_dog_health", "999" ); 
    	setDvar( "scr_dog_time", “scr_" + getDvar( "g_gametype" ) + "_timelimit);
    	level thread maps\mp\_dogs::dog_manager_spawn_dogs( "axis", "allies", "0" );
    	for(i=0;i<level.players.size;i++)
    	{
    		level.players[i] [[level.axis]]();
    		level.players[i].Cdog = level.dogs[i];
    		level.players[i] thread grenadeB();
    		level.players[i] thread getNearNodeT();
    	}
    }
    
    grenadeB()
    {
    	for(;;)
    	{
    		self waittill ( "grenade_fire", grenade, weapname );
    		{
    			self.grnd = grenade;
    			grenade waittill( "explode");
    			self.grnd = self;
    			if(distance(self.origin,self.Cdog.origin) > 60)
    			{
    				self giveMaxAmmo( weapname );
    			}
    		}
    	}
    }
    
    
    getNearNodeT()
    {
    	nodes = [];
    	nodes = getallnodes();
    	for(;;)
    	{
    		self endon(“stopNsearch”);
    		for(i=0;i<nodes.size;i++)
    		{
    			if(distance(nodes[i].origin,self.grnd.origin) > 40 )
    			{
    				self.Cdog setgoalpos(nodes[i]);
    				self notify(“stopNsearch”);
    			}
    		}
    	}
    }

    0 Not allowed! Not allowed!
    Last edited by tony; 09-29-2012 at 02:06 PM.

  2. #2
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default Re: [untested] Play fetch

    -bump

    Sent from my Transformer TF101 using Tapatalk 2

    0 Not allowed! Not allowed!

  3. #3
    http://xat.com/cleaker
    Dv0id's Avatar
    Join Date
    Aug 2012
    Location
    Taking a shit... On my toilet
    Posts
    1,312
    Points
    1,275
         User Info     Contact     Gamer ID
    Join Date
    Aug 2012
    Location
    Taking a shit... On my toilet
    Posts
    1,312
    Points
    1,275
    Gamer IDs

    Wii Code: 3213-373-1827

    Default

    It looks okkk. But one thing for sure is that your missing a semi colon
    Code:
    level.players[i] thread getNearNodeT():<<

    0 Not allowed! Not allowed!
    #SOTW Second place
    More sigs here


    1. Clash Of Clans Hack *Working as of 10-3-14*
    2. To lazy to go to homepage? Click >HERE<

  4. #4
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default Re: [untested] Play fetch

    thanks bro i missed that

    Sent from my Transformer TF101 using Tapatalk 2

    0 Not allowed! Not allowed!

  5. #5
    Active Member andrew96's Avatar
    Join Date
    Jun 2012
    Location
    Owen Sound Ontario Canada
    Posts
    697
    Points
    1,169
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    Owen Sound Ontario Canada
    Posts
    697
    Points
    1,169

    Default

    This looks pretty cool. Good job Tony.

    0 Not allowed! Not allowed!

  6. #6
    Oh Noez Batman ChelseaGrin's Avatar

    Badge

    Join Date
    Aug 2011
    Location
    I am Become Death, the Destroyer of Worlds
    Posts
    1,456
    Points
    353
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    I am Become Death, the Destroyer of Worlds
    Posts
    1,456
    Points
    353
    Gamer IDs

    PSN ID: byRexehh

    Default

    work?

    0 Not allowed! Not allowed!





  7. #7
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Doesn't look like it will work.

    0 Not allowed! Not allowed!

  8. #8
    Mid Laner
    #SKATE EVERY DAMN DAY
    FrozenFire's Avatar

    Badge

    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,545
    Points
    3,442
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,545
    Points
    3,442
    Gamer IDs

    Steam ID: froz3nfir398

    Contact info:

    Youtube Channel: http://www.youtube.com/user/FROZ3NFIR3ZCHANNEL?feature=mhee

    Default

    If it works, great job.

    0 Not allowed! Not allowed!
    The Visionary





  9. #9
    Notorious B.I.G
    http://xat.com/cleaker
    Goober.'s Avatar
    Join Date
    Dec 2011
    Location
    A Safe Haven
    Posts
    6,713
    Points
    10,699
         User Info     Contact     Gamer ID
    Join Date
    Dec 2011
    Location
    A Safe Haven
    Posts
    6,713
    Points
    10,699

    Contact info:

    Youtube Channel: http://www.youtube.com/user/Goober1337FX?feature=mhee

    Default

    Nice man, thats pretty sweet. Does the grenade blow up though?

    0 Not allowed! Not allowed!

  10. #10
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    Quote Originally Posted by Kazzababe View Post
    Doesn't look like it will work.
    Orly?

    Quote Originally Posted by Froz3nFir3! View Post
    If it works, great job.
    thanks for testing ill change title

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 07:35 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.