Weapon Fireing Speed

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
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Weapon Fireing Speed

Post 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.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Weapon Fireing Speed

Post 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
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Weapon Fireing Speed

Post 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!
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Weapon Fireing Speed

Post 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 :P
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Weapon Fireing Speed

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Weapon Fireing Speed

Post 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
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: Weapon Fireing Speed

Post by myers73 »

if you have custom sides (which you will need) just add that line to the weapon's _ord file under properties.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Weapon Fireing Speed

Post 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
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: Weapon Fireing Speed

Post by myers73 »

im pretty sure that you cant edit weapon odf values via lua, just what weapon a unit caries
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Weapon Fireing Speed

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Weapon Fireing Speed

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Weapon Fireing Speed

Post 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 :wink:
MercuryNoodles
Jedi
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

Post 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.
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Weapon Fireing Speed

Post by SW_elite »

Yes your correct!!! Thanks Mercury. Im going to see if it works for me now!!!! :D
Post Reply