50 super.EndActionComponent();
64 if (
action.HasAlternativeInterrupt())
114 fish.SetHealth(
"",
"Health",
fish.GetMaxHealth(
"",
"Health") * 0.1);
122 if (
fish.HasQuantity())
181 m_Text =
"#start_fishing";
257 rod.AnimateFishingRod(
true);
262 rod.AnimateFishingRod(
true);
268 rod.AnimateFishingRod(
false);
273 rod.AnimateFishingRod(
false);
317 if (
fad.IsBaitEmptyHook())
324 else if (
rnd <
fad.FISHING_BAIT_LOSS && !
fad.IsBaitEmptyHook())
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
ActionEmptyMagazine CreateActionComponent
void HandleFishingResultFailure()
void HandleFishingResultSuccess()
ref array< string > m_JunkTypes
FishingActionData m_ActionDataFishing
override void EndActionComponent()
const int ECE_PLACE_ON_SURFACE
int EvaluateFishingResult(ActionData action_data)
override bool ReadFromContext(ParamsReadContext ctx, out ActionReciveData action_recive_data)
override void CreateConditionComponents()
override void OnStartClient(ActionData action_data)
const string ALLOWED_WATER_SURFACES
override void WriteToContext(ParamsWriteContext ctx, ActionData action_data)
override void OnStartServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool HasTarget()
override void OnEndClient(ActionData action_data)
override bool HasAlternativeInterrupt()
override bool SetupAction(PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data=null)
override void OnFinishProgressClient(ActionData action_data)
override void OnEndServer(ActionData action_data)
override ActionData CreateActionData()
override void OnFinishProgressServer(ActionData action_data)
const float FISHING_BAIT_LOSS
const float FISHING_GARBAGE_CHANCE
const float FISHING_HOOK_LOSS
void InitBait(ItemBase item)
const float FISHING_DAMAGE
const float FISHING_SUCCESS
float m_RodQualityModifier
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Serialization general interface. Serializer API works with:
const float PRECISE_MEDIUM
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
static proto float Round(float f)
Returns mathematical round of value.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
static const int STATE_NONE
undef state - not running anymore
static const int STATE_LOOP_END2
static const int STATE_LOOP_END
void OnStateChange(int pOldState, int pCurrentState)
called when enabled by EnableStateChangeCallback and state changes, call GetState() to get actual sta...
proto native void EnableStateChangeCallback()
enables state change callback OnStateChange