5 super.InitTrapValues();
9 m_InitWaitTimeMin = 120;
10 m_InitWaitTimeMax = 180;
11 m_UpdateWaitTime = 30;
12 m_SpawnUpdateWaitTime = 30;
13 m_MaxActiveTime = 1200;
15 m_MinimalDistanceFromPlayersToCatch = 15;
19 m_AnimationPhaseUsed =
"triggered";
24 if (!m_CatchingContext)
26 int updateCount = m_MaxActiveTime/m_UpdateWaitTime;
28 m_CatchingContext =
new CatchingContextTrapFishSmall(par);
31 super.InitCatchingComponent();
45 if ( !attachment.IsInherited( Worm ) )
48 return super.CanReceiveAttachment( attachment, slotId );
54 if ( MemoryPointExists(
"invView2" ) )
57 GetInventory().GetCurrentInventoryLocation( il );
100class SmallFishTrap
extends Trap_SmallFish
115 return "placeSmallFishTrap_SoundSet";
120 return "fishtrap_deploy_SoundSet";
InventoryLocationType
types of Inventory Location
string GetLoopDeploySoundset()
string GetDeploySoundset()
class Trap_SmallFish extends TrapSpawnBase m_RainProcurement
override bool DoPlacingHeightCheck()
string m_AnimationPhaseTriggered
string m_AnimationPhaseSet
proto native int GetType()
returns type of InventoryLocation
DEPRECATED, done through the RainProcurementHandler / component instead.
override void InitTrapValues()
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
override void InitCatchingComponent()
override bool IsPlaceableAtPosition(vector position)
override int GetViewIndex()