11 m_MinimalDistanceFromPlayersToCatch = 10;
14 m_NoBaitCatchProb = 15;
18 m_AnimationPhaseUsed =
"triggered";
20 m_WaterSurfaceForSetup =
false;
23 m_CatchesGroundAnimal.Insert(
"DeadRooster", 1);
24 m_CatchesGroundAnimal.Insert(
"DeadChicken_White", 1);
25 m_CatchesGroundAnimal.Insert(
"DeadChicken_Spotted", 1);
26 m_CatchesGroundAnimal.Insert(
"DeadChicken_Brown", 1);
28 m_CatchesGroundAnimal.Insert(
"DeadRabbit", 1);
45 super.OnVariablesSynchronized();
55 if (GetHierarchyRootPlayer().CanDropEntity(
this))
86 catches = m_CatchesGroundAnimal;
99 if (m_Bait.IsInherited(
Worm))
130 CatchSetQuant(
catch);
164 return "placeRabbitSnareTrap_SoundSet";
169 return "rabbitsnare_deploy_SoundSet";
void AddAction(typename actionName)
void RemoveAction(typename actionName)
const int ECE_PLACE_ON_SURFACE
void SetIsPlaceSound(bool is_place_sound)
string m_AnimationPhaseTriggered
string m_AnimationPhaseSet
override void AlignCatch(ItemBase obj, string catch_name)
override string GetLoopDeploySoundset()
override void SpawnCatch()
override bool CanBePlaced(Man player, vector position)
override void SetupTrap()
override void OnPlacementComplete(Man player, vector position="0 0 0", vector orientation="0 0 0")
override bool IsDeployable()
override string GetDeploySoundset()
override void OnVariablesSynchronized()
override void SetActions()
proto native CGame GetGame()
proto native void SetPosition(vector position)
Set the world position of the Effect.
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].