15 if (!super.CanPutAsAttachment(parent))
21 if ( parent.FindAttachmentBySlotName(
"suppressorImpro") == null && parent.FindAttachmentBySlotName(
"weaponMuzzle") == null )
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);
ActionSkinningCB ActionContinuousBaseCB ActionSkinning()
void AddAction(typename actionName)
override void OnWasDetached(EntityAI parent, int slot_id)
override void OnWasAttached(EntityAI parent, int slot_id)
override bool IsMeleeFinisher()
override array< int > GetValidFinishers()
override bool CanPutAsAttachment(EntityAI parent)
override void SetActions()
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
Result for an object found in CGame.IsBoxCollidingGeometryProxy.