13 CharacterControllerComponent controller = owner.GetCharacterController();
17 BaseWeaponManagerComponent weaponManager = controller.GetWeaponManagerComponent();
28 static BaseWeaponComponent GetCurrentWeaponComponent(notnull BaseWeaponManagerComponent weaponManager)
41 IEntity weaponEntity = weaponSlot.GetWeaponEntity();
49 weapon = wpnComponent;
57 static bool CurrentWeaponHasComponent(notnull BaseWeaponManagerComponent weaponManager,
typename component)
69 IEntity weaponEntity = weaponSlot.GetWeaponEntity();
70 if (weaponEntity && weaponEntity.FindComponent(component))
81 array<BaseMuzzleComponent> muzzles = {};
82 weapon.GetMuzzlesList(muzzles);
83 if (muzzles.IsEmpty())
86 int currentMuzzleID = muzzles.Find(weapon.GetCurrentMuzzle());
88 return (currentMuzzleID + 1) % muzzles.Count();