mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
CSW - Fix mag multiplication in multiplayer (#9232)
This commit is contained in:
parent
fdbcc62c74
commit
7c70ded9bc
@ -4,7 +4,10 @@ GVAR(vehicleMagCache) = createHashMap;
|
||||
|
||||
["CBA_settingsInitialized", {
|
||||
TRACE_3("settingsInit",GVAR(defaultAssemblyMode),GVAR(handleExtraMagazines),GVAR(ammoHandling));
|
||||
["StaticWeapon", "init", LINKFUNC(staticWeaponInit), true, [], true] call CBA_fnc_addClassEventHandler;
|
||||
["StaticWeapon", "Init", {
|
||||
// needs a small delay for network syncing, or we end up with duplicate mags with ammo handling
|
||||
[LINKFUNC(staticWeaponInit), _this, 1] call CBA_fnc_waitAndExecute;
|
||||
}, true, [], true] call CBA_fnc_addClassEventHandler;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user