Page 1 of 1
How do I make any unit flee like a hero? [Solved]
Posted: Mon Sep 28, 2009 4:45 pm
by IronJaw
I remember someone told me how to make any unite flee like a hero (e.g. collapse onto knees) But I can't find the "fleelikehero = 0" line that I thought I saw in the unit.odf............
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 4:57 pm
by The_Emperor
FleeLikeAHero = 1
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 8:05 pm
by Fiodis
1 = yes. Put FleeLikeAHero = "1" to make units kneeel on death.
0 = no. Put FleeLikeAHero = "0" to make units die normally (including heros). Example is BFX.
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 8:08 pm
by StarkillerMarek
This should be moved to the Modding FAQ, very interesting.
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 8:10 pm
by Xavious
StarkillerMarek wrote:This should be moved to the Modding FAQ, very interesting.
No, there isn't any reason to. It's just one odf parameter, and a fairly self-explanatory one at that. Besides, I think there's a link to a list of odf parameters in the FAQ already (not sure though).
EDIT: Yep, there is.
http://www.secretsociety.com/forum/down ... meters.txt
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 8:13 pm
by StarkillerMarek
Xavious wrote:StarkillerMarek wrote:This should be moved to the Modding FAQ, very interesting.
No, there isn't any reason to. It's just one odf parameter, and a fairly self-explanatory one at that. Besides, I think there's a link to a list of odf parameters in the FAQ already (not sure though).
EDIT: Yep, there is.
http://www.secretsociety.com/forum/down ... meters.txt
Oh, okay, there should be a topic started that lists certain things that are not in the odf guide in the documentaion, if there isn't one already.
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 8:22 pm
by IronJaw
I sorta wanted to know where and in which .odf should this go in. There are at least two .odf's fore every unit, not to mention the .ords.
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 8:34 pm
by kinetosimpetus
well which units do you want to kneel or not kneel?
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 8:41 pm
by IronJaw
I would like to get all of both teams to kneel. But for testing purposes I would just like to get all_inf_rifleman to kneel.
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 9:00 pm
by kinetosimpetus
all of both teams will kneel if you place it in the side default
like all_inf_default
or imp_inf_default
for just the rifleman, put it in all_inf_default_rifleman
anywhere below [Properties]
Re: Fleeing like a Hero
Posted: Mon Sep 28, 2009 9:01 pm
by IronJaw
Thanks!
Also, I want to change the weap_rifle to use the republic sniper rifle's laser. Which odf do I copy the lazer type from, and which .odf do I "paste" it it?
Re: Odf Help
Posted: Mon Sep 28, 2009 9:05 pm
by kinetosimpetus
from rep_weap_inf_sniperrifle to all_weap_inf_rifle.
also, copy rep_weap_inf_sniperrifle_ord to the all odf folder.
Re: Odf Help
Posted: Mon Sep 28, 2009 9:10 pm
by IronJaw
Ok, thanks, I would presume that if I wanted the damage to be "normal" I would just look for something to do with damage in the ofd and change it back to the original damage #?
Re: Odf Help
Posted: Mon Sep 28, 2009 9:18 pm
by kinetosimpetus
yep, but thos values would probably be in the common side, so copy some code from com_weap_inf_rifle_ord to the ord that the rifle uses
Re: Odf Help
Posted: Mon Sep 28, 2009 9:50 pm
by Fiodis
IronJaw wrote:Thanks!
Also, I want to change the weap_rifle to use the republic sniper rifle's laser. Which odf do I copy the lazer type from, and which .odf do I "paste" it it?
Just copy over the Republic sniper rifle's ordance file and reference it in your rifle's odf. If you have a Common folder in your Sides folder there's no need to copy classparents into individual side folders.
Re: Odf Help
Posted: Mon Sep 28, 2009 11:02 pm
by myers73
Yeah, but I find that if you copy all the stuff from the parents it makes editing easier say if you wanna have more than 1 type of rifle.
Re: Odf Help
Posted: Tue Sep 29, 2009 3:33 pm
by Fiodis
Ok, say you want to have more than one type of rifle. How does this make it easier than copying the Common folder (which you have to do anyway)? If you copy all the information from the parent odfs into the children, you may as well remove the parent references from the children, to avoid bugs later.
Re: Odf Help
Posted: Tue Sep 29, 2009 4:22 pm
by IronJaw
I changed the sides\common\ofd com_weap_inf_rifle.odf to:
And I get the general laser shape right, but the damage is the same as a sniper rifle (one hit kill). It's not that I don't mind shooting an automatic sniper rifle, but I would die to much to feel fully content.
Re: Odf Help
Posted: Tue Sep 29, 2009 4:28 pm
by kinetosimpetus
that goes in the ord file, not the rifle file
Re: Odf Help
Posted: Tue Sep 29, 2009 5:42 pm
by IronJaw
I got the laser and damage to work correctly. Thanks y'all.
