The arti_jamming script's using_old_ammo function determines if the old ammunition penalties should apply to a weapon by checking if the ammunition's impair value is greater than 1.
The 9x21mm ammo in BaS has an impair value of 1.1 for some reason. This means WPO treats it as old ammunition even though it isn't, and with the old ammunition penalties enabled all 9x21 guns jam multiple times a magazine and rapdily lose condition.
Related script/config snippets:
-- returns true if using ammo with impair > 1
function using_old_ammo(wpn)
if wpn:id() ~= cgd.id or not get_config("oldammo") then return false end
local ammo_type = wpn:get_ammo_type() + 1
local ammo = cgd.ammo_data[ammo_type]
if ammo and SYS_GetParam(2, ammo, "impair") > 1 then
return true
else return false
end
end
The arti_jamming script's
using_old_ammo
function determines if the old ammunition penalties should apply to a weapon by checking if the ammunition's impair value is greater than 1.The 9x21mm ammo in BaS has an impair value of 1.1 for some reason. This means WPO treats it as old ammunition even though it isn't, and with the old ammunition penalties enabled all 9x21 guns jam multiple times a magazine and rapdily lose condition.
Related script/config snippets: