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();
40 return IsSurfaceWater( position );
45 if ( !attachment.IsInherited( Worm ) )
48 return super.CanReceiveAttachment( attachment, slotId );
51 #ifdef PLATFORM_WINDOWS
53 override int GetViewIndex()
55 if ( MemoryPointExists(
"invView2" ) )
58 GetInventory().GetCurrentInventoryLocation( il );
102class SmallFishTrap
extends Trap_SmallFish
117 return "placeSmallFishTrap_SoundSet";
122 return "fishtrap_deploy_SoundSet";
InventoryLocationType
types of Inventory Location
string GetDeploySoundset()
string GetLoopDeploySoundset()
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)