| Author | Message | 
        
			| CaveCricket48 
					Joined: Tue Jun 12, 2007 11:52 pm
 Posts: 13144
 Location: Here
   |   Cloning Factory You put an actor in the top, switch control to the cloning factory, press FIRE and voila, an instant clone! The clones have the first 5 weapons from the copied actor. You can also turn on auto spawn by pressing JUMP and setting a rally point for produced clones by placing an AI Go-To point. The circular black thing with yellow "petals" is the wait-time meter. When it's full, you can produce another unit. Things to work on: -Menus -Store "memory" for different copy data -Gifs Credits: Abdul Alhazred - Some Lua help on inventory Geti/mail2345 - Major Lua help on inventory Kyred - Lua AI Go-To help (from the Growth Pod) People of the Growth Pod Topic - Suggesting that I make more factory type actors CaveCricket48 -  Everything else, including main Lua scripting, coding, sprite cutting/mashing Enjoy.
 
 | 
		
			| Sat Oct 31, 2009 6:19 am | 
					
					   | 
	
	
		|  | 
	
			| dragonxp 
					Joined: Wed Sep 09, 2009 3:16 am
 Posts: 3032
 Location: Somewhere in the universe
   |   Re: Cloning FactoryGreat now i dont have to rush in like 3 actors with the same weapon and have on of em die.Gj Cave. Keep at it.
 
 
 | 
		
			| Sat Oct 31, 2009 6:45 am | 
					
					   | 
	
	
		|  | 
	
			| Samohan25 
					Joined: Fri Jul 24, 2009 9:03 am
 Posts: 159
   |   Re: Cloning FactoryWow, very nice, the cloner makes for some interesting strategies.One thing, why is the health up higher? Can you hide it?
 It's a shame these can't be deployed mid-battle though - they destroy quite easily and the ability to replace them would make this ideal as a fortification.
 
 Can the actor held have it's AI Disabled so it won't try to shoot or attack? I made a script for that once.
 
 
 | 
		
			| Sat Oct 31, 2009 11:19 am | 
					
					   | 
	
	
		|  | 
	
			| CrazyMLC 
					Joined: Fri Dec 22, 2006 4:20 am
 Posts: 4772
 Location: Good news everyone!
   |   Re: Cloning FactoryI almost like it being able to shoot and attack; it makes the cloner a little more defensible. 
 
 | 
		
			| Sat Oct 31, 2009 11:48 am | 
					
					     | 
	
	
		|  | 
	
			| Samohan25 
					Joined: Fri Jul 24, 2009 9:03 am
 Posts: 159
   |   Re: Cloning FactoryI mean when it's not being controlled, I for some odd reason had an enemy suddenly appear on the top of a tube next to another and the one still on my team went AI and shot the living daylight out of the enemy, the cloning tube and the next one along- Code: function Update(self)for actor in MovableMan.Actors do
 if actor:GetController().InputMode ~= 1 then
 actor:GetController().InputMode = 3
 end
 end
 end
 
My very first script    Oh, and the bug seems to occur when the tube is unocupied, the tube snaps the nearest actor (enemy) to the top but also continues spawning the previously selected actor.
 
 | 
		
			| Sat Oct 31, 2009 4:11 pm | 
					
					   | 
	
	
		|  | 
	
			| CaveCricket48 
					Joined: Tue Jun 12, 2007 11:52 pm
 Posts: 13144
 Location: Here
   |   Re: Cloning FactoryCheck if you were on the map fold. Lua has a few problems with area detection in map folds. For disabling AI, I already have a method I use (swiped from Darlos9D's DarkStorm) that would work. Thanks anyways!
 For the health height, it's so high because the sprite used to be larger. I'll fix it next update.
 
 
 | 
		
			| Sat Oct 31, 2009 5:17 pm | 
					
					   | 
	
	
		|  | 
	
			| The Decaying Soldat 
					Joined: Thu May 15, 2008 11:40 am
 Posts: 1527
 Location: In heaven, everything is fine.
   |   Re: Cloning FactoryI love it. Great job. I'm surprised it even duplicate devices held by the actor. Finally, a way to mass produce almost anything  
 
 | 
		
			| Sat Oct 31, 2009 5:38 pm | 
					
					   | 
	
	
		|  | 
	
			| Yoshi(cant mod) 
					Joined: Sun Sep 20, 2009 6:32 pm
 Posts: 6
   |   Re: Cloning Factorywhat do you edit in the file to make the whole factory spawn faster? because i had a Novamind light "oppresser" and it took a long time compared to some other small unit that had a shorter timenot to be mean or anything
 
 
 | 
		
			| Sat Oct 31, 2009 5:41 pm | 
					
					   | 
	
	
		|  | 
	
			| CaveCricket48 
					Joined: Tue Jun 12, 2007 11:52 pm
 Posts: 13144
 Location: Here
   |   Re: Cloning Factory@Yoshi(cant mod) - The delay is based on actor gold cost for balancing, so a more expensive actor would take longer to produce then a cheaper one. Code: self.delaytime = self.target.GoldValue*100;On line 18, change the "100" to a lower number, like 10.
 
 | 
		
			| Sat Oct 31, 2009 6:19 pm | 
					
					   | 
	
	
		|  | 
	
			| mail2345 
					Joined: Tue Nov 06, 2007 6:58 am
 Posts: 2054
   |   Re: Cloning FactoryCode: self.delaytime = self.target.GoldValue*100;Line 18. In the .lua file. Either reduce 100 to a lower number, or change the line to: Code: self.delaytime = <x>;Replace x with a value in miliseconds. EDIT: CAVE NINJAS.
 
 | 
		
			| Sat Oct 31, 2009 6:21 pm | 
					
					   | 
	
	
		|  | 
	
			| Samohan25 
					Joined: Fri Jul 24, 2009 9:03 am
 Posts: 159
   |   Re: Cloning FactoryAnother small thing, the bigger actors (AAL Slayer and definatley MPAM's) don't fit, could the height to snap the actor too be calculated based on CharHeight?
 EDIT: Doesn't this need an anti-MOID limit script? When I made a base in tutorial level with 26 Shinobi tengu armed with AK-47's and force diggers I thought- what does happen when I break the limit? Well, it turns out that the AI starts picking the new person up as an enemy, promptly shooting them to peices. Also, is the limit 252? I got to 250 okay. Oh, and killing anu shinobi with a force digger creates massive particle lag (Over 8000)
 
 
 | 
		
			| Sat Oct 31, 2009 9:23 pm | 
					
					   | 
	
	
		|  | 
	
			| Mr Johnson 
					Joined: Tue Jun 30, 2009 1:19 pm
 Posts: 25
 Location: Do u like zoos?
   |   Re: Cloning FactoryCould be used for some missions. You are a trader, you created an amazing cloning factory but now you are ruined. So you make clones in order to sell them, but another ruined trader wants your cloning technology and attacks your base... uh. edit :   Cloning a clone who will be cloned to finally die
 
 | 
		
			| Sun Nov 01, 2009 2:45 am | 
					
					   | 
	
	
		|  | 
	
			| PhantomAGN 
					Joined: Mon Jun 29, 2009 2:40 am
 Posts: 610
 Location: Deep below The Map of Mars
   |   Re: Cloning FactoryCloning a crab in auto mode is as effective as a crab bomb, but everyone eventually dies.I think there should be a maximum speed at which to clone.
 
 
 | 
		
			| Sun Nov 01, 2009 8:31 am | 
					
					   | 
	
	
		|  | 
	
			| The Decaying Soldat 
					Joined: Thu May 15, 2008 11:40 am
 Posts: 1527
 Location: In heaven, everything is fine.
   |   Re: Cloning FactoryPhantomAGN wrote: Cloning a crab in auto mode is as effective as a crab bomb, but everyone eventually dies.I think there should be a maximum speed at which to clone.
I'm enjoying that, actually    But yea, max speed needed.
 
 | 
		
			| Sun Nov 01, 2009 9:05 am | 
					
					   | 
	
	
		|  | 
	
			| Geti 
					Joined: Sun Jul 13, 2008 9:57 am
 Posts: 4886
 Location: some compy
   |   Re: Cloning FactoryDoes this cost money to use?Also, glad the inventory handler works.
 You could add the actors to a table and use that to limit the amount of dudes spawned when in auto mode, to prevent MOID-fails.
 
 
 | 
		
			| Sun Nov 01, 2009 9:17 am | 
					
					     | 
	
	
		|  | 
	
	
		|  |