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);
38 return IsSurfaceWater( position );
43 if ( !attachment.IsInherited( Worm ) )
46 return super.CanReceiveAttachment( attachment, slotId );
49 #ifdef PLATFORM_WINDOWS
51 override int GetViewIndex()
53 if ( MemoryPointExists(
"invView2" ) )
56 GetInventory().GetCurrentInventoryLocation( il );
100class SmallFishTrap
extends Trap_SmallFish
115 return "placeSmallFishTrap_SoundSet";
120 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)