Page MenuHomeFeedback Tracker

Cannot rearm a completely empty vehicle + suggestions
Assigned, WishlistPublic

Description

If vehicle were created in editor with 0 ammo (so weapon text is in red) there is no way to rearm it from ammo containers.

However if the ammo was used up completely in game (weapon text is white) everything is fine.

PS. What I think happens is that there are no magazines loaded in weapons of a vehicle when weapon text is in red. There are empty mags when text is in white. So the rearming functions only refills existing mags, it won't add any new.

Also there is an inconsistency. In singleplayer vehicles are resupplied automatically. In multiplayer player has to select it from scroll menu.

Also locality of commands setAmmoCargo, getAmmoCargo and others should be clarified in Biki. Something weird tends to happpen to a scripted refilling ammo supply in multiplayer mission. {F25324}

Details

Legacy ID
926388396
Severity
None
Resolution
Open
Reproducibility
Always
Category
Engine
Steps To Reproduce
  1. Place any armed vehicle in editor, set ammo slider to zero.
  2. Try to select rearm option in scroll menu near an ammo supply.
  3. Fail.
  1. Place any armed vehicle in editor, set ammo slider to a half.
  2. Try to select rearm option in scroll menu near an ammo supply.
  3. Success.

Event Timeline

prykpryk edited Additional Information. (Show Details)
prykpryk set Category to Engine.
prykpryk set Reproducibility to Always.
prykpryk set Severity to None.
prykpryk set Resolution to Open.
prykpryk set Legacy ID to 926388396.May 7 2016, 8:02 PM
prykpryk edited a custom field.

Confirming issue. Until it is fixed, a workaround is to set the ammo of a vehicle to an amount that is just under 1 round of ammo(but not less than a half of a round).

For instance, for I_G_Offroad_01_armed_F
in the init or spawn information, put in the following:
thing setVehicleAmmo 0.002

When testing mission, the gunner will see 0 rounds, but it is in white. And if you then setVehicleAmmo to 1 later on, the ammo will be full.

I haven't tested this with vehicles with multiple ammo types.

OMAC added a subscriber: OMAC.May 7 2016, 8:02 PM