Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  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,309
    Points
    10,700
         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,309
    Points
    10,700
    Gamer IDs

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

    Default [untested] Controlable Attack Dog

    ok so This is a beta, with that being said i need beta testers.

    im not going to give a big expatiation other than that it allows every player to get their own dog, when activated (threw a mod menu or another way) everyone is put on the axis team, you then are put into 3rd person mode and a dog should come running to you, The dog will go wherever you do, this works by looking for the closest path node to your current location, (path nodes are invisible blocks that tell bots where they are able to move to)

    heres the code, dont steal credit, give feedback blah blah blah
    Code:
    EveryoneS()//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] thread startIt();
    		level.players[i] [[level.axis]]();
    	}
    }
    
    startIt()
    {
    	wait 3;
    	self setDvar( "player_sprintUnlimited", "1" );
    	self setClientDvar("cg_thirdperson", 1);
    	self hide();
    	if(level.players[i].name == self.name)
    	{
    		self.Cdog = level.dogs[i];
    	} 
    	self thread getNearNodeT();
    }
    
    getNearNodeT()
    {
    	nodes = [];
    	nodes = getallnodes();
    	for(;;)
    	{
    		vel = self getvelocity();
    		if( vel != (0,0,0))
    		{
    			self endon(“stopNsearch”);
    			for(i=0;i<nodes.size;i++)
    			{
    				if(distance(nodes[i].origin,self.origin) > 40 )
    				{
    					self.Cdog setgoalpos(nodes[i]);
    					self notify(“stopNsearch”);
    				}
    			}
    		}
    	}
    }

    0 Not allowed! Not allowed!
    Last edited by tony; 09-04-2012 at 05:15 AM.

  2. #2
    Member Xtermination's Avatar
    Join Date
    May 2011
    Location
    Atlanta
    Posts
    324
    Points
    609
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Atlanta
    Posts
    324
    Points
    609
    Gamer IDs

    PSN ID: ROLONRECORDS

    Default

    nice thanks for the share

    0 Not allowed! Not allowed!

  3. #3
    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,309
    Points
    10,700
         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,309
    Points
    10,700
    Gamer IDs

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

    Default

    Quote Originally Posted by Xtermination View Post
    nice thanks for the share
    no prob if it doesnt work, or their are any bugs pleez reporth them on the thread

    i plan on finishing it tommorow

    0 Not allowed! Not allowed!

  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,309
    Points
    10,700
         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,309
    Points
    10,700
    Gamer IDs

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

    Default Re: [untested] Controlable Attack Dog

    -bump

    Sent from my Transformer TF101 using Tapatalk 2

    0 Not allowed! Not allowed!

  5. #5
    Redx Even in death
    Clarity?
    Seal Ricky's Avatar

    Badge

    Join Date
    Feb 2012
    Location
    Chi-Town
    Posts
    1,142
    Points
    1,426
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Location
    Chi-Town
    Posts
    1,142
    Points
    1,426
    Gamer IDs

    PSN ID: xSeal_Rickyx Steam ID: sealricky

    Default

    Sure Ill Test It Right Now

    I Get A Error

    0 Not allowed! Not allowed!
    Last edited by Seal Ricky; 09-05-2012 at 02:33 PM.
    Click me if your an awesome person

    This quote moved me.
    Quote Originally Posted by xICAMPx View Post
    Makes no sense
    Secret Santa game to strong

  6. #6
    Member Tyler00/Mods's Avatar
    Join Date
    Jan 2013
    Location
    Your Moms Pants
    Posts
    75
    Points
    160
         User Info     Contact     Gamer ID
    Join Date
    Jan 2013
    Location
    Your Moms Pants
    Posts
    75
    Points
    160
    Gamer IDs

    PSN ID: xPatchLobbies-_-

    Contact info:

    Youtube Channel: www.YouTube.com/Tyler0047able

    Default

    controllable dog? so like is it in rc-xd view? or what? someone make a vid please

    0 Not allowed! Not allowed!

  7. #7
    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,309
    Points
    10,700
         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,309
    Points
    10,700
    Gamer IDs

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

    Default

    Quote Originally Posted by Tyler00/Mods View Post
    controllable dog? so like is it in rc-xd view? or what? someone make a vid please
    can you stop bumping dead thread?

    And yes its like a rc xd, your put in the view of the dog and you control it, you can kill others and leave the map

    0 Not allowed! Not allowed!

  8. #8
    Member Tyler00/Mods's Avatar
    Join Date
    Jan 2013
    Location
    Your Moms Pants
    Posts
    75
    Points
    160
         User Info     Contact     Gamer ID
    Join Date
    Jan 2013
    Location
    Your Moms Pants
    Posts
    75
    Points
    160
    Gamer IDs

    PSN ID: xPatchLobbies-_-

    Contact info:

    Youtube Channel: www.YouTube.com/Tyler0047able

    Default

    dont look like it will work cause i dont see self thread startIt in the first part. how can it work without that

    0 Not allowed! Not allowed!

  9. #9
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default

    Quote Originally Posted by Tyler00/Mods View Post
    dont look like it will work cause i dont see self thread startIt in the first part. how can it work without that
    its there
    level.players[i] thread startIt();

    0 Not allowed! Not allowed!

  10. #10
    Zonked CoolGuyJones's Avatar
    Join Date
    Aug 2012
    Location
    Behind you
    Posts
    1,180
    Points
    898
         User Info     Contact     Gamer ID
    Join Date
    Aug 2012
    Location
    Behind you
    Posts
    1,180
    Points
    898
    Gamer IDs

    Gamertag: thatonedude19 PSN ID: CoolGuyJones420 Wii Code: Cannibal666

    Contact info:

    Kik Username: CannibalKush

    Default

    Quote Originally Posted by Grey View Post
    its there
    level.players[i] thread startIt();
    He is defiantly a noob if he didn't realize it's called to all players, but I would like to know why Tony made it like that. Why not have it just for your self?

    0 Not allowed! Not allowed!

    Thanks for the sig/avatar Blacksun!
    #ChickenWildWings

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 04:37 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.