Comment 5 for bug 895538

Revision history for this message
AlexB (alexander-b) wrote :

Implemented as
[TechnoType]NoAmmoWeapon= (integer, defaults to -1)
The weapon index to switch to when there is no ammo left. This will override the weapon selection and only allow this weapon to be selected. Valid values are -1, 0, and 1.

This can be used to switch to a less powerful weapon automatically and use it until ammo has been reloaded, or to disable firing any weapon when set to a weapon that requires ammo.

[TechnoType]NoAmmoAmount= (integer, defaults to 0)
If the current ammo is equal to or below this value, the NoAmmoWeapon will be used.