| Author | Message | 
        
			| ShnitzelKiller 
					Joined: Sun Mar 22, 2009 7:30 am
 Posts: 168
   |   Re: I would like an invincible actor.Can someone actually make this actor for me? I have tried to learn how to mod, but it's so complicated to make a simple actor, you have to define the coordinates of every limb and link files among each other and if you do it wrong it crashes on startup, and the language is just too alien to me, I don't know how people learn it so fast, I've tried looking at code and changing values, but it's so tedious to have to restart CC every f*cking time you change a value to see what it does. I only know one prog language really well, and it's not lua or ini. 
 
 | 
		
			| Sun Jul 05, 2009 7:00 pm | 
					
					   | 
	
	
		|  | 
	
			| piipu 
					Joined: Mon Jun 30, 2008 9:13 pm
 Posts: 499
 Location: Finland
   |   Re: I would like an invincible actor.You really don't need a new actor. Just copypaste a coalition soldier's .ini to a new .rte and create an index.ini there and then tweak the parts you need to tweak. Just be sure to change the PresetName of every thing you modified. 
 
 | 
		
			| Mon Jul 06, 2009 10:04 am | 
					
					   | 
	
	
		|  | 
	
			| ShnitzelKiller 
					Joined: Sun Mar 22, 2009 7:30 am
 Posts: 168
   |   Re: I would like an invincible actor.See, I have absolutely no idea what any of that means. I've tried learning ini at least, but there's not one step by step tutorial, the wiki is void of any information, so I don't have any modding ability. 
 
 | 
		
			| Fri Jul 10, 2009 6:30 pm | 
					
					   | 
	
	
		|  | 
	
			| CrazyMLC 
					Joined: Fri Dec 22, 2006 4:20 am
 Posts: 4772
 Location: Good news everyone!
   |   Re: I would like an invincible actor.Code: AddActor = AHumanCopyOf = Soldier Heavy
 PresetName = Soldier Invincible
 ScriptPath = Soldier Invincible.rte/Lua.lua
 
When you CopyOf, all of the variables and crap is set to the current thing you are defining. Then you just enter in the things you want to change, like sprites, health, or lua file and you don't have to define everything else. Code: function Update(self)self.Health = 100
 end
 
 | 
		
			| Fri Jul 10, 2009 6:44 pm | 
					
					     | 
	
	
		|  | 
	
			| mail2345 
					Joined: Tue Nov 06, 2007 6:58 am
 Posts: 2054
   |   Re: I would like an invincible actor.You frogot the GibWoundLimit. 
 
 | 
		
			| Fri Jul 10, 2009 6:59 pm | 
					
					   | 
	
	
		|  | 
	
			| TheValiant 
					Joined: Mon Jun 08, 2009 10:54 pm
 Posts: 33
   |   Re: I would like an invincible actor.What variable prevents an actor from loosing his limbs? I thought it was JointStrength, so I tried setting that to a high number (tried 9000, 900000, and 9000000) but he still lost his limbs. Also, in this code: Code: AddEffect = AttachableCopyOf = Soldier Helmet A
 PresetName = Invincible Helmet A
 JointStrength = 900000
 GibImpulseLimit = 900000
 GibWoundLimit = 900000
 
 AddEffect = Attachable
 CopyOf = Soldier Head B
 PresetName = Invincible Head B
 JointStrength = 900000
 AddAttachable = Attachable
 CopyOf = Invincible Helmet A
 ParentOffset = Vector
 X = -1
 Y = -4
 GibImpulseLimit = 900000
 GibWoundLimit = 900000
 
 AddActor = AHuman
 CopyOf = Soldier Light
 PresetName = Invincible Soldier
 Head = Attachable
 CopyOf = Invincible Head B
 ParentOffset = Vector
 X = 0
 Y = -10
Will the new "invincible" head overwrite the old one? And, will the new "invincible" helmet overwrite the old one? (I noticed that when I shot off his head, two helmets flew off).
 
 | 
		
			| Fri Jul 10, 2009 8:04 pm | 
					
					   | 
	
	
		|  | 
	
			| CrazyMLC 
					Joined: Fri Dec 22, 2006 4:20 am
 Posts: 4772
 Location: Good news everyone!
   |   Re: I would like an invincible actor.Yes, both are added. 
 
 | 
		
			| Fri Jul 10, 2009 8:06 pm | 
					
					     | 
	
	
		|  | 
	
			| carriontrooper 
					Joined: Mon Apr 13, 2009 12:27 pm
 Posts: 813
 Location: Yogyakarta, Indonesia. A slice o' paradise.
   |   Re: I would like an invincible actor.TheValiant wrote: What variable prevents an actor from loosing his limbs? I thought it was JointStrength, so I tried setting that to a high number (tried 9000, 900000, and 9000000) but he still lost his limbs. Also, in this code: Will the new "invincible" head overwrite the old one? And, will the new "invincible" helmet overwrite the old one? (I noticed that when I shot off his head, two helmets flew off).You also need to up the gibimpulselimit and the gibwoundlimit on the limbs. Addressing the double helmet: you created the new head by copying the original head, which already had the normal helmet on. When you added the addattachable it just attaches another helmet (your invincible one) instead of rewriting it. My suggestion: copy the whole code block for the head, and change only the helmet part.
 
 | 
		
			| Sat Jul 11, 2009 5:09 am | 
					
					       | 
	
	
		|  | 
	
			| TheValiant 
					Joined: Mon Jun 08, 2009 10:54 pm
 Posts: 33
   |   Re: I would like an invincible actor.I tried:JointStrength:9000000
 GibImpulseLimit:9000000
 GibWoundLimit:900000
 
 On all limbs and the body (except for jointstrength on the body) yet he still manages to lose all his limbs.
 
 
 | 
		
			| Sat Jul 11, 2009 6:41 am | 
					
					   | 
	
	
		|  | 
	
			| carriontrooper 
					Joined: Mon Apr 13, 2009 12:27 pm
 Posts: 813
 Location: Yogyakarta, Indonesia. A slice o' paradise.
   |   Re: I would like an invincible actor.TheValiant wrote: I tried:JointStrength:9000000
 GibImpulseLimit:9000000
 GibWoundLimit:900000
 
 On all limbs and the body (except for jointstrength on the body) yet he still manages to lose all his limbs.
Did you attach the correct limbs to the body though?
 
 | 
		
			| Sat Jul 11, 2009 9:14 am | 
					
					       | 
	
	
		|  | 
	
			| mail2345 
					Joined: Tue Nov 06, 2007 6:58 am
 Posts: 2054
   |   Re: I would like an invincible actor.Use attachable hack to find limbs, and drop weapons and respawn if any are missing. 
 
 | 
		
			| Sat Jul 11, 2009 9:23 am | 
					
					   | 
	
	
		|  | 
	
			| TheValiant 
					Joined: Mon Jun 08, 2009 10:54 pm
 Posts: 33
   |   Re: I would like an invincible actor.@carriontrooper: Yes
 @mail: Lol, I just wanted to see if I could do it; I'm not gonna go through all that trouble unless I get randomly bored one night.
 
 
 | 
		
			| Sat Jul 11, 2009 2:28 pm | 
					
					   | 
	
	
		|  | 
	
	
		|  |