Page MenuHomeFeedback Tracker

"addWeaponGlobal" will dupe weapons on dedicated server
New, WishlistPublic

Description

If you execute addWeaponGlobal on the server several times the receiving unit will get the weapon added several times too, although visually it looks like unit has only 1 weapon. But opening inventroy and dragging the weapon to the ground reveals many copies.

Also:

If unit doesn't have any weapon, adding a weapon with addWeaponGlobal will not make unit automatically select it.

After adding multiple copies via repeated addWeaponGlobal command, while unit has already the weapon selected, dragging weapon to the ground will make unit to deselect it, yet there will still be copies in weapon slot.

Details

Legacy ID
1991897140
Severity
None
Resolution
Open
Reproducibility
Always
Category
Inventory
Steps To Reproduce

run on the client:

serverPlayer = player;
publicVariable "serverPlayer";

Now remove all weapons from your inventory

run on the server:

serverPlayer addWeaponGlobal "hgun_P07_F";
serverPlayer addWeaponGlobal "hgun_P07_F";
serverPlayer addWeaponGlobal "hgun_P07_F";
serverPlayer addWeaponGlobal "hgun_P07_F";
serverPlayer addWeaponGlobal "hgun_P07_F";

run on client:

hint str weapons player; //shows 5 guns

check your inventory it only shows 1 gun. Continue to drag the hand gun on the ground. You have now 5 guns on the ground.

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Inventory.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Open.
Killzone_Kid set Legacy ID to 1991897140.May 7 2016, 5:51 PM
Bohemia added a subscriber: AD2001.Jan 30 2014, 4:30 AM

still happening

shukari added a subscriber: shukari.May 7 2016, 5:51 PM

still a big problem