View unanswered posts | View active topics It is currently Thu Jan 02, 2025 10:15 pm



Reply to topic  [ 6 posts ] 
 Custom wounds? 
Author Message
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Custom wounds?
How do I create custom wounds?(making the actual wound and then applying it to an actor)

Anything will help but I want the actual code.

thanks in advance,
~Roon3


Mon Jun 30, 2008 1:47 pm
Profile WWW
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Custom wounds?
Base.rte/Effects/Wounds/Wounds.ini for an example of the code.

First, you need to make a custom AEmitter for your wounds. You want an Entrywound, an Exitwound, and a Breakwound.

Entrywound is the most common; if a sharp particle hits your actor, it will create one. If it goes all the way through, it will create an Exitwound. If something breaks off a part of your actor, it will create a Breakwound.

Soldier templates/the default actors have all the parts and their requisite EntryWound and ExitWound code.


Mon Jun 30, 2008 6:05 pm
Profile
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Custom wounds?
Thanks Grif,

Another question: What Line of code do I need to to an actor for it to become neutral? (I have looked around in other mods and found nothing)

EDIT: will enemies attack this actor?

Thanks again,
~Roon3


Mon Jun 30, 2008 6:15 pm
Profile WWW
Reply with quote
Post Re: Custom wounds?
Roon3 wrote:
Thanks Grif,

Another question: What Line of code do I need to to an actor for it to become neutral? (I have looked around in other mods and found nothing)

EDIT: will enemies attack this actor?

Thanks again,
~Roon3


Team = 3 ( or anything above, I think 0 might work)
Put it under the actor class.
Yes anything which is from a different team will attack it.


Mon Jun 30, 2008 6:25 pm
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Custom wounds?
Team = -1 is the usual method, Tea.

And it will act as an enemy to both sides. I THINK AI attacks Team -1, but I'm not sure.

Also, if you "buy" the actor, it will go to your team regardless.


Mon Jun 30, 2008 6:27 pm
Profile
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Custom wounds?
Thanks you two,

This is just what I needed for my first mod thank you,

~Roon3


Mon Jun 30, 2008 6:34 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

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.082s | 13 Queries | GZIP : Off ]