ODF question(s)

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
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 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: CANADA!

ODF question(s)

Post by EGG_GUTS »

OK I only have 3 not 10 this time.

How do I make normal units kneel like heroes?
How do you change gun's bullets or the effect of the bullet?
How do you change the quantity of bullets that get shot out?

thanks
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

RE: ODF question(s)

Post by FragMe! »

For 2 it is done in the (example) com_weap_inf_rifle_ord.odf, can change color of bolt or type of effect.

For 3 it is done in the (example) com_weap_inf_rifle.odf, for quantity at one time change the number for salvo
User avatar
Hero_Unit
Private First Class
Posts: 78
Joined: Tue Mar 13, 2007 3:15 pm

RE: ODF question(s)

Post by Hero_Unit »

I know 1, add this line in the odf "FleeLikeAHero = 1".(Without quotes of course.)
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 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: CANADA!

Post by EGG_GUTS »

Thanks but for what FragME answered I don't see the number quantity and where do I put that in the ODF, Hero_Unit?
User avatar
Hero_Unit
Private First Class
Posts: 78
Joined: Tue Mar 13, 2007 3:15 pm

Post by Hero_Unit »

Anywhere under [Properties], for example, say I wanted the clone engineer to kneel, I'd change the Default engineer odf to this(Even though it can be anywhere, it is usually best to put it near the top):

Code: Select all

[GameObjectClass]
ClassParent        	= "rep_inf_default"


[Properties]
UnitType           	= "pilot"
FleeLikeAHero           = 1
ImmuneToMines       	= "1"

WEAPONSECTION 		= 1
WeaponName        	= "rep_weap_inf_shotgun"
WeaponAmmo        	= 8

WEAPONSECTION 		= 2
WeaponName        	= "rep_weap_inf_fusioncutter"
WeaponAmmo         	= 0

WEAPONSECTION 		= 3
WeaponName         	= "rep_weap_inf_detpack"
WeaponAmmo         	= 3
WeaponChannel      	= 1

WEAPONSECTION 		= 4
WeaponName         	= "rep_weap_inf_powerup_dispenser"
WeaponAmmo         	= 5
WeaponChannel      	= 1

WEAPONSECTION 		= 5
WeaponName        	= "rep_weap_award_shotgun"
WeaponAmmo        	= 8

VOUnitType        	= 121
Last edited by Hero_Unit on Sat Mar 17, 2007 5:24 pm, edited 1 time in total.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Post by FragMe! »

From com_weap_inf_rifle.odf about 3/4 the way down

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "50"
ReloadTime = "1.5"
ShotDelay = "0.2"
TriggerSingle = "0"

DisplayRefire = "0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

Rounds per clip will change the total ammo, can't see where to change number of clips anywhere. You can also change how fast it reloads and how fast it will fire. Hope that is what you were looking for.
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 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: All Along The Watchtower

Post by jangoisbaddest »

FYI, the number of clips a soldier has for a weapon is defined in that soldier's ODF, not the gun's.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Post by FragMe! »

I knew it had to be somewhere, I thank you for providing the additional info (for my own learning as well)
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 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: CANADA!

Post by EGG_GUTS »

FragMe! wrote:From com_weap_inf_rifle.odf about 3/4 the way down

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "50"
ReloadTime = "1.5"
ShotDelay = "0.2"
TriggerSingle = "0"

DisplayRefire = "0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

Rounds per clip will change the total ammo, can't see where to change number of clips anywhere. You can also change how fast it reloads and how fast it will fire. Hope that is what you were looking for.

And the salvo is how many bullets come out every time you fire?

and sorry for another question but What if I wanted a emp launcher to fire the IFT-X's beam laser? how would I do this?


EDIT: Ok I went into Data_GT1/Sides/Common/odf/com_weap_inf_rocket_launcher

I changed the salvocount from 1 to 3 and munged the Common side. and the rocket launcher still shot one. So how do I change how many bullets come out in one shot?

Thanks again
Rekubot
Jedi
Jedi
Posts: 1080
Joined: Wed Apr 05, 2006 12:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: Shadow Complex
xbox live or psn: Rekubot
Location: UK

Post by Rekubot »

EDIT: Ok I went into Data_GT1/Sides/Common/odf/com_weap_inf_rocket_launcher

I changed the salvocount from 1 to 3 and munged the Common side. and the rocket launcher still shot one. So how do I change how many bullets come out in one shot?

Thanks again
Hm... did you make sure to turn up the RoundsPerClip to at least 3? If you don't, it'll have to reload every shot, so you wouldn't get a salvo of three. However, if you turned the RoundsPerClip number to five, you'd first get a 3-round salvo, but when you fire next you'd only get a 2-round salvo before you'd be forced to reload, see?
User avatar
Hero_Unit
Private First Class
Posts: 78
Joined: Tue Mar 13, 2007 3:15 pm

Post by Hero_Unit »

and sorry for another question but What if I wanted a emp launcher to fire the IFT-X's beam laser? how would I do this?
You would open up the IFT-X laser weapon, and scroll down untill you see a line with _ord at the end. Open the EMP launcher and do the same, then replace it's_ord line with the beam cannon _ord line.
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 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: happy fun island

Post by Syth »

you also have to change this line-
SalvoDelay = "0.0"
its the shot delay between each salvo. if its zero the weapon will fire all 3 shots at the same time.
Post Reply