How do I make any unit flee like a hero? [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
IronJaw
Sergeant Major
Sergeant Major
Posts: 225
Joined: Tue Jul 14, 2009 8:33 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Look behind you, I'm with four other ninjas

How do I make any unit flee like a hero? [Solved]

Post 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............
Last edited by IronJaw on Mon Sep 28, 2009 9:02 pm, edited 1 time in total.
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Re: Fleeing like a Hero

Post by The_Emperor »

FleeLikeAHero = 1
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Fleeing like a Hero

Post 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.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Fleeing like a Hero

Post by StarkillerMarek »

This should be moved to the Modding FAQ, very interesting.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Fleeing like a Hero

Post 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
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Fleeing like a Hero

Post 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.
User avatar
IronJaw
Sergeant Major
Sergeant Major
Posts: 225
Joined: Tue Jul 14, 2009 8:33 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Look behind you, I'm with four other ninjas

Re: Fleeing like a Hero

Post 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.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Fleeing like a Hero

Post by kinetosimpetus »

well which units do you want to kneel or not kneel?
User avatar
IronJaw
Sergeant Major
Sergeant Major
Posts: 225
Joined: Tue Jul 14, 2009 8:33 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Look behind you, I'm with four other ninjas

Re: Fleeing like a Hero

Post 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.
Last edited by IronJaw on Mon Sep 28, 2009 9:01 pm, edited 2 times in total.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Fleeing like a Hero

Post 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]
User avatar
IronJaw
Sergeant Major
Sergeant Major
Posts: 225
Joined: Tue Jul 14, 2009 8:33 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Look behind you, I'm with four other ninjas

Re: Fleeing like a Hero

Post 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?
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Odf Help

Post by kinetosimpetus »

from rep_weap_inf_sniperrifle to all_weap_inf_rifle.
also, copy rep_weap_inf_sniperrifle_ord to the all odf folder.
User avatar
IronJaw
Sergeant Major
Sergeant Major
Posts: 225
Joined: Tue Jul 14, 2009 8:33 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Look behind you, I'm with four other ninjas

Re: Odf Help

Post 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 #?
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Odf Help

Post 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
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Odf Help

Post 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.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Atlanta, GA xfire=myers73 IngameName=mYers

Re: Odf Help

Post 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.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Odf Help

Post 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.
User avatar
IronJaw
Sergeant Major
Sergeant Major
Posts: 225
Joined: Tue Jul 14, 2009 8:33 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Look behind you, I'm with four other ninjas

Re: Odf Help

Post by IronJaw »

I changed the sides\common\ofd com_weap_inf_rifle.odf to:
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"

[Properties]
ScoreForMedalsType = 1
MedalsTypeToLock = 1

AnimationBank = "rifle"
LaserTexture = "com_sfx_laser_blue"
LaserGlowColor = "92 136 250 100"
LightColor = "92 136 250 100"
LightRadius = "4.0"
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.
Hidden/Spoiler:
Image
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Odf Help

Post by kinetosimpetus »

that goes in the ord file, not the rifle file
User avatar
IronJaw
Sergeant Major
Sergeant Major
Posts: 225
Joined: Tue Jul 14, 2009 8:33 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Look behind you, I'm with four other ninjas

Re: Odf Help

Post by IronJaw »

I got the laser and damage to work correctly. Thanks y'all. :thumbs:
Post Reply