Weapon usable only once [Solved]
Moderator: Moderators
- EasyOvenOperator
- Private Recruit
- Posts: 23
- Joined: Thu Nov 16, 2017 12:03 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Weapon usable only once [Solved]
I'm having an issue with one of my modded weapons being unusable once it runs out of ammo or if i switch weapons and try to switch back to it.
The first weapon I put into the game works perfectly fine (other than the floating icon which I'll try to fix again at a later time) and for both i used the same method of copying the odfs of stock weapons with modified stats. the stock weapons using the modified stats work fine, it's just this one weapon that works fine until it runs out of ammo or switched.
The first weapon I put into the game works perfectly fine (other than the floating icon which I'll try to fix again at a later time) and for both i used the same method of copying the odfs of stock weapons with modified stats. the stock weapons using the modified stats work fine, it's just this one weapon that works fine until it runs out of ammo or switched.
Last edited by EasyOvenOperator on Sat Dec 30, 2017 8:26 am, edited 1 time in total.
-
- Private Third Class
- Posts: 58
- Joined: Mon Jun 05, 2017 5:14 pm
- Projects :: Battlefront Redux
- xbox live or psn: TheRaigiku
- Location: Perú
Re: Weapon usable only once
Show the weapon ODF/ODF's
- EasyOvenOperator
- Private Recruit
- Posts: 23
- Joined: Thu Nov 16, 2017 12:03 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Weapon usable only once
I scraped that one not long after posting this problem. But now I'm having a similar issue with the shotgun after it has worked up until last night. I've had these same modded stats since just after the original post, so I don't see why it would just start acting stupid now.
imp .odf
imp ord .odf
imp .odf
Hidden/Spoiler:
Hidden/Spoiler:
-
- Private Third Class
- Posts: 58
- Joined: Mon Jun 05, 2017 5:14 pm
- Projects :: Battlefront Redux
- xbox live or psn: TheRaigiku
- Location: Perú
Re: Weapon usable only once
Anything else apart from the odf's that you have modified?
-
- First Lance Corporal
- Posts: 123
- Joined: Sun Jul 05, 2015 5:07 pm
- Projects :: BF2 Refresh Mod
- xbox live or psn: VaporousFern310
- Location: California, USA
Re: Weapon usable only once
I just had an issue similar to what you described, and the issue was that I had the weapon set up like so:
Instead of like so:
Code: Select all
// this code produced the issue
WEAPONSECTION = 1
WeaponName2 = ""
WeaponAmmo2 = 0
WeaponChannel2 = 1
WEAPONSECTION = 2
WeaponName2 = ""
WeaponAmmo2 = 0
WeaponChannel2 = 1
Code: Select all
// this code resolved the issue
WEAPONSECTION = 1
WeaponName = ""
WeaponAmmo = 0
WeaponChannel = 1
WEAPONSECTION = 2
WeaponName = ""
WeaponAmmo = 0
WeaponChannel = 1
- EasyOvenOperator
- Private Recruit
- Posts: 23
- Joined: Thu Nov 16, 2017 12:03 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Weapon usable only once
here's the unit odf.
com odf:
com ord:
com tracer:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
-
- First Lance Corporal
- Posts: 123
- Joined: Sun Jul 05, 2015 5:07 pm
- Projects :: BF2 Refresh Mod
- xbox live or psn: VaporousFern310
- Location: California, USA
Re: Weapon usable only once
Try removing this line from the weapon odf:
This one has tripped me up before. If it's not this, I'm not sure what it could be.
Code: Select all
MedalsTypeToLock = 5
- EasyOvenOperator
- Private Recruit
- Posts: 23
- Joined: Thu Nov 16, 2017 12:03 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Weapon usable only once
Thanks very much for the help. This seems to have solved the issue.Samee3 wrote:Try removing this line from the weapon odf:This one has tripped me up before. If it's not this, I'm not sure what it could be.Code: Select all
MedalsTypeToLock = 5