3 override bool IsMeleeFinisher()
15 if (!super.CanPutAsAttachment(parent))
18 if (parent.IsSlotReserved(
InventorySlots.GetSlotIdFromString(
"suppressorImpro")) || parent.IsSlotReserved(
InventorySlots.GetSlotIdFromString(
"weaponMuzzleAK")))
21 if ( parent.FindAttachmentBySlotName(
"suppressorImpro") == null && parent.FindAttachmentBySlotName(
"weaponMuzzleAK") == null )
28 override void OnWasAttached(
EntityAI parent,
int slot_id)
30 super.OnWasAttached(parent, slot_id);
32 if( parent.IsWeapon() )
34 parent.SetBayonetAttached(
true,slot_id);
40 super.OnWasDetached(parent, slot_id);
42 if( parent.IsWeapon() )
44 parent.SetBayonetAttached(
false);
ActionDisarmExplosiveCB ActionContinuousBaseCB ActionDisarmExplosive()
ActionDisarmMineCB ActionContinuousBaseCB ActionDisarmMine()
ActionSkinningCB ActionContinuousBaseCB ActionSkinning()
void AddAction(typename actionName)
provides access to slot configuration
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
array< int > GetValidFinishers()
returns an array of possible finishers
override bool CanPutAsAttachment(EntityAI parent)
override void OnWasDetached(EntityAI parent, int slot_id)