Page 1 of 1

ODF question(s)

Posted: Sat Mar 17, 2007 10:15 am
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

RE: ODF question(s)

Posted: Sat Mar 17, 2007 10:40 am
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

RE: ODF question(s)

Posted: Sat Mar 17, 2007 10:56 am
by Hero_Unit
I know 1, add this line in the odf "FleeLikeAHero = 1".(Without quotes of course.)

Posted: Sat Mar 17, 2007 1:06 pm
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?

Posted: Sat Mar 17, 2007 1:09 pm
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

Posted: Sat Mar 17, 2007 1:32 pm
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.

Posted: Sat Mar 17, 2007 1:34 pm
by jangoisbaddest
FYI, the number of clips a soldier has for a weapon is defined in that soldier's ODF, not the gun's.

Posted: Sat Mar 17, 2007 1:38 pm
by FragMe!
I knew it had to be somewhere, I thank you for providing the additional info (for my own learning as well)

Posted: Sun Mar 18, 2007 9:12 am
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

Posted: Sun Mar 18, 2007 9:51 am
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?

Posted: Sun Mar 18, 2007 11:05 am
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.

Posted: Sun Mar 18, 2007 2:34 pm
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.