View unanswered posts | View active topics It is currently Wed Jun 26, 2019 5:14 am



Reply to topic  [ 27 posts ]  Go to page Previous  1, 2
 I would like an invincible actor. 
Author Message
User avatar

Joined: Sun Mar 22, 2009 7:30 am
Posts: 168
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post 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
Profile
User avatar

Joined: Sun Mar 22, 2009 7:30 am
Posts: 168
Reply with quote
Post 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
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4771
Location: Good news everyone!
Reply with quote
Post Re: I would like an invincible actor.
Code:
AddActor = AHuman
   CopyOf = 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
Profile WWW
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: I would like an invincible actor.
You frogot the GibWoundLimit.


Fri Jul 10, 2009 6:59 pm
Profile

Joined: Mon Jun 08, 2009 10:54 pm
Posts: 33
Reply with quote
Post 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 = Attachable
   CopyOf = 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
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4771
Location: Good news everyone!
Reply with quote
Post Re: I would like an invincible actor.
Yes, both are added.


Fri Jul 10, 2009 8:06 pm
Profile WWW
User avatar

Joined: Mon Apr 13, 2009 12:27 pm
Posts: 813
Location: Yogyakarta, Indonesia. A slice o' paradise.
Reply with quote
Post 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:
Code:
mombojumbo


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
Profile YIM WWW

Joined: Mon Jun 08, 2009 10:54 pm
Posts: 33
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Apr 13, 2009 12:27 pm
Posts: 813
Location: Yogyakarta, Indonesia. A slice o' paradise.
Reply with quote
Post 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
Profile YIM WWW
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post 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
Profile

Joined: Mon Jun 08, 2009 10:54 pm
Posts: 33
Reply with quote
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 27 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.019s | 15 Queries | GZIP : Off ]