Page MenuHomeFeedback Tracker

Weapon Deleted on Picking up New weapon
New, WishlistPublic

Description

The problem is as follows, You're in game, you've got a weaponholder on the ground with a fresh spawned weapon, the item on the ground has Take with the hand on the gui and then you make the mistake of using that when you have a primary gun in your hands.

Details

Legacy ID
3937440497
Severity
None
Resolution
Open
Reproducibility
Always
Category
Gameplay
Steps To Reproduce

^^ check description

Additional Information

So, basically what I expected to happen is:

On accept action

if (backpack has space) then
unload primary clip // To keep from deleting it
place primary in backpack

if (groundholder has compatable magazines)
take compatable magazines
assign ground weapon to primary (it'll be auto-loaded)

if (backpack doesn't have required space for primary weapon)
unload primary clip
swap weapon with ground weapon // And I saw your function for variable swapping

I think any clips in the inventory associated with that weapon should be manually removed as sometimes I hoard them for other people when I have extra space.

Take note, if you don't unload it you'll have 0 ammo eventually
because when you have ammo in inventory, it auto loads it into a compatible gun
and then when you right click a gun it deletes that clip so if you had 15 clips and you right click from ground tab, you have 14 in inventory and an auto loaded primary weapon. When right clicking again clip loaded deletes itself, then you could essentially delete all your ammo by equipping and removing a weapon.
The auto loading should stay so I can make npcs come in already packing a loaded primary but for players there are too many variables that cost you ammo or an (in wasteland) possibly a very expensive rifle.

Thanks in advance, I've been learning to code lately and I've a solid appreciation for the work you all put in. =)

Event Timeline

kaelidian edited Additional Information. (Show Details)
kaelidian set Category to Gameplay.
kaelidian set Reproducibility to Always.
kaelidian set Severity to None.
kaelidian set Resolution to Open.
kaelidian set Legacy ID to 3937440497.May 7 2016, 4:10 PM
dedmen added a subscriber: dedmen.Sep 13 2017, 3:28 PM

IMO as it works now is how it should work.