6 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
14 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
17 CharacterControllerComponent characterController = CharacterControllerComponent.Cast(user.FindComponent(CharacterControllerComponent));
18 BaseWeaponManagerComponent weaponMgr = BaseWeaponManagerComponent.Cast(user.FindComponent(BaseWeaponManagerComponent));
20 if (characterController && weaponMgr)
23 GrenadeSlotComponent grenadeSlot = GrenadeSlotComponent.Cast(weaponMgr.GetCurrent());
27 vector groundWeaponMat[4];
28 pOwnerEntity.GetTransform(groundWeaponMat);
29 IEntity weaponToDrop = weaponMgr.SetSlotWeapon(grenadeSlot, pOwnerEntity);
35 weaponToDrop.SetTransform(groundWeaponMat);
41 Physics weaponPhysics = weaponToDrop.GetPhysics();
44 weaponPhysics.SetActive(1);