Page 1 of 1
Weapon usable only once [Solved]
Posted: Wed Nov 29, 2017 6:57 am
by EasyOvenOperator
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.
Re: Weapon usable only once
Posted: Sat Dec 09, 2017 11:18 pm
by Raigiku
Show the weapon ODF/ODF's
Re: Weapon usable only once
Posted: Mon Dec 18, 2017 1:46 am
by EasyOvenOperator
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
Re: Weapon usable only once
Posted: Mon Dec 18, 2017 2:58 pm
by Raigiku
Anything else apart from the odf's that you have modified?
Re: Weapon usable only once
Posted: Mon Dec 18, 2017 7:26 pm
by Samee3
I just had an issue similar to what you described, and the issue was that I had the weapon set up like so:
Code: Select all
// this code produced the issue
WEAPONSECTION = 1
WeaponName2 = ""
WeaponAmmo2 = 0
WeaponChannel2 = 1
WEAPONSECTION = 2
WeaponName2 = ""
WeaponAmmo2 = 0
WeaponChannel2 = 1
Instead of like so:
Code: Select all
// this code resolved the issue
WEAPONSECTION = 1
WeaponName = ""
WeaponAmmo = 0
WeaponChannel = 1
WEAPONSECTION = 2
WeaponName = ""
WeaponAmmo = 0
WeaponChannel = 1
Re: Weapon usable only once
Posted: Tue Dec 19, 2017 7:30 am
by EasyOvenOperator
here's the unit odf.
com odf:
com ord:
com tracer:
Re: Weapon usable only once
Posted: Tue Dec 19, 2017 8:03 pm
by Samee3
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.
Re: Weapon usable only once
Posted: Sat Dec 30, 2017 8:25 am
by EasyOvenOperator
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.
Thanks very much for the help. This seems to have solved the issue.