AA12 Reload Animation Swap
A experiment mod that make AA12 have 2 reload animation for prevent hand clipping magazine
How this mod work?
This mod can switch reload animation for specific magazine (Old code method 1)
if self._parts.wpn_fps_sho_aa12_mag_straight then self:weapon_tweak_data().animations.reload_name_id = "aa12stick" end
if self._parts.wpn_fps_sho_aa12_mag_drum then self:weapon_tweak_data().animations.reload_name_id = "aa12drum" end
If you want to target weapon and specific attatchemnt (Old code method 2)
if self._name_id == "aa12" then
if self._parts.wpn_fps_sho_aa12_mag_straight then self:weapon_tweak_data().animations.reload_name_id = "aa12stick" end
if self._parts.wpn_fps_sho_aa12_mag_drum then self:weapon_tweak_data().animations.reload_name_id = "aa12drum" end
end
If you want it not conflict with WeaponLib (Update code)
local old_weapon_tweak_data = NewRaycastWeaponBase.weapon_tweak_data
function NewRaycastWeaponBase:weapon_tweak_data(...)
local weapon_tweak_data = old_weapon_tweak_data(self, ...)
if not self._parts or self._name_id ~= "aa12" then
return weapon_tweak_data
end
if self._parts.wpn_fps_sho_aa12_mag_straight then
weapon_tweak_data.animations.reload_name_id = "aa12stick"
elseif self._parts.wpn_fps_sho_aa12_mag_drum then
weapon_tweak_data.animations.reload_name_id = "aa12drum"
end
return weapon_tweak_data
end
Optional mod for perfect sync
https://modworkshop.net/mod/41382
Animation credit : PlayBonk
https://modworkshop.net/user/13634
Q. How to install?
A. Put in mod_overrides
Downloads201
Views2,819
Publish Date1 year ago
Last Updated1 year ago
Version0.0.3
Members
iuhggiuhhgbnrOwner
Comments