Page 1 of 1
Weapon Fireing Speed
Posted: Wed Jan 27, 2010 9:42 pm
by SW_elite
I had this great idear for a new weapon but for it to work exactaly how i want it to I have to change its speed so then it fires slower, i would also like to know how to make weapons fire faster, thanks in advance.
Re: Weapon Fireing Speed
Posted: Wed Jan 27, 2010 9:48 pm
by Deviss
SW_elite wrote:I had this great idear for a new weapon but for it to work exactaly how i want it to I have to change its speed so then it fires slower, i would also like to know how to make weapons fire faster, thanks in advance.
on the ordenance file
Velocity line
[OrdnanceClass]
ClassLabel = "bolt"
[Properties]
LaserTexture = "com_sfx_laser_blue"
LaserGlowColor = "0 0 250 250"
LightColor = "0 0 250 250"
LightRadius = "5.0"
LaserLength = "2.0"
LaserWidth = "0.1"
GlowLength = "5"
BlurLength = "5"
LifeSpan = "0.80"
Velocity = "500.0"
Gravity = "1.0"
Rebound = "0.0"
MaxDamage = "130.0"
DamageTransitionDelay = "0.2" //How long in seconds before the damage change begins.
DamageTransitionPeriod = "0.1" //How long in seconds the damage change lasts.
DamageFinalDamage = "110.0" //What the damage would be at the end of the transition period. A negative value means that no change is applied.
VehicleScale = "0.1"
ShieldScale = "1.0"
PersonScale = "1.0"
DroidScale = "1.0"
BuildingScale = "0.1"
ImpactEffectSoft = "com_sfx_blasterimpact"
ImpactEffectRigid = "com_sfx_blastermark"
ImpactEffectStatic = "com_sfx_blastermark"
ImpactEffectTerrain = "com_sfx_blastermark_terrain"
ImpactEffectWater = "com_sfx_watersplash_ord"
ImpactEffectShield = "com_sfx_blasterimpact"
ExpireEffect = "com_sfx_blasterimpact"
OrdnanceSound = "com_weap_inf_ord_hum_sm"
CollisionSound = "imp_weap_ord_exp"
BonusAmplification = "0.25" //how much more damage will be done when team_bonus_blaster_amplication is on
Re: Weapon Fireing Speed
Posted: Wed Jan 27, 2010 9:56 pm
by SW_elite
Thanks mate!!!
Um.. is that in the common sides folder, or rep sides folder? Common didnt work for me just then so ill try a manual clean!
Re: Weapon Fireing Speed
Posted: Wed Jan 27, 2010 10:03 pm
by Deviss
SW_elite wrote:Thanks mate!!!
Um.. is that in the common sides folder, or rep sides folder? Common didnt work for me just then so ill try a manual clean!
on common/odf folder

i made them on my rep folder

Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 12:35 am
by SW_elite
Ah....? say again? I dont understand.
Dang, this didnt work for me, or maybe it just needs to be explained more in depth.
Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 1:32 am
by lucasfart
you need to go to the common sides folder in the sides assets and copy it into you data_ABC's side folder.........
or copy from assets/sides
to data_ABC/sides
Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 1:43 am
by myers73
if you have custom sides (which you will need) just add that line to the weapon's _ord file under properties.
Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 1:53 am
by lucasfart
also, check out this link for how to do the changes in your lua whitout fiddling in the common folder...
http://www.gametoast.com/forums/viewtop ... ssproperty
i think you should add this code to your lua:
SetClassProperty("INSERTWEAPONNAME", "Velocity", "500[or whatever you want it to be]")
correct me if its wrong
Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 3:45 am
by myers73
im pretty sure that you cant edit weapon odf values via lua, just what weapon a unit caries
Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 6:42 am
by lucasfart
myers73 wrote:im pretty sure that you cant edit weapon odf values via lua, just what weapon a unit caries
if you looked at the post i linked to above and read Mav's and [RDH]Zerted's post you would notice that it is totally possible:
[RDH]Zerted: I have never tired changing the properties of weapons (rate of fire, recharge time, etc...), but I do know that changing which weapons a unit hold will cause crashes for other players in MP. Also, changing units' ammo counts causes the crashes too.
Mav+Other person convo:
Other=I have a query about the "SetProperty" line; can it be used with weapons, as well as units?
Mav=Yes, but it's still SetClassProperty and not SetProperty. There aren't instances of weapons, just weapon classes.
Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 6:50 am
by Maveritchell
lucasfart wrote:if you looked at the post i linked to above and read Mav's and [RDH]Zerted's post you would notice that it is totally possible
I don't know if I merely misspoke in that topic or if I was just completely wrong (or perhaps let's be optimistic and suppose I was talking about something else?), but weapons can't be modified in-script. If you want to change a weapon, you have to change whatever weapon a unit is carrying to something else entirely.
Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 7:01 am
by lucasfart
Maveritchell wrote:lucasfart wrote:if you looked at the post i linked to above and read Mav's and [RDH]Zerted's post you would notice that it is totally possible
I don't know if I merely misspoke in that topic or if I was just completely wrong (or perhaps let's be optimistic and suppose I was talking about something else?), but weapons can't be modified in-script. If you want to change a weapon, you have to change whatever weapon a unit is carrying to something else entirely.
What?!?! The
JEDI ADMIN made a mistake?!?! impossible! i'm sure you were just talking about something else

Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 4:06 pm
by MercuryNoodles
To the original question, what DEVISS showed you changes the actual speed at which the ordinance itself will fly. However, I have a feeling you're actually talking about rate of fire, in which case you need to edit the ShotDelay parameter in the weapon odf. It's literally the amount of time a weapon will wait between firing shots, or salvoes.
Re: Weapon Fireing Speed
Posted: Thu Jan 28, 2010 4:11 pm
by SW_elite
Yes your correct!!! Thanks Mercury. Im going to see if it works for me now!!!!
