Weapon Fireing Speed
Moderator: Moderators
- SW_elite
- Filthy Thief

- Posts: 507
- Joined: Sat Jan 02, 2010 6:43 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia!!!
Weapon Fireing Speed
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.
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Weapon Fireing Speed
on the ordenance file Velocity lineSW_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.
[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
- SW_elite
- Filthy Thief

- Posts: 507
- Joined: Sat Jan 02, 2010 6:43 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia!!!
Re: Weapon Fireing Speed
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!
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!
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Weapon Fireing Speed
on common/odf folderSW_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!
- SW_elite
- Filthy Thief

- Posts: 507
- Joined: Sat Jan 02, 2010 6:43 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia!!!
Re: Weapon Fireing Speed
Ah....? say again? I dont understand.
Dang, this didnt work for me, or maybe it just needs to be explained more in depth.
Dang, this didnt work for me, or maybe it just needs to be explained more in depth.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Weapon Fireing Speed
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
or copy from assets/sides
to data_ABC/sides
-
myers73
- Lieutenant General

- Posts: 690
- Joined: Fri Apr 03, 2009 11:04 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Atlanta, GA xfire=myers73 IngameName=mYers
Re: Weapon Fireing Speed
if you have custom sides (which you will need) just add that line to the weapon's _ord file under properties.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Weapon Fireing Speed
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
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
-
myers73
- Lieutenant General

- Posts: 690
- Joined: Fri Apr 03, 2009 11:04 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Atlanta, GA xfire=myers73 IngameName=mYers
Re: Weapon Fireing Speed
im pretty sure that you cant edit weapon odf values via lua, just what weapon a unit caries
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Weapon Fireing Speed
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:myers73 wrote:im pretty sure that you cant edit weapon odf values via lua, just what weapon a unit caries
[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.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Weapon Fireing Speed
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.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
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Weapon Fireing Speed
What?!?! The JEDI ADMIN made a mistake?!?! impossible! i'm sure you were just talking about something elseMaveritchell wrote: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.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
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Re: Weapon Fireing Speed
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.
- SW_elite
- Filthy Thief

- Posts: 507
- Joined: Sat Jan 02, 2010 6:43 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia!!!
Re: Weapon Fireing Speed
Yes your correct!!! Thanks Mercury. Im going to see if it works for me now!!!! 
