17 if (!action_data.m_Player)
53 FishingActionData fad = FishingActionData.Cast(action_data);
54 if (fad.m_FishingResult != -1)
77 if (maximalUsableDuration <= 0)
82 ErrorEx(
"Cycle m_TimeToComplete: " +
m_TimeToComplete +
" shorter than combined deadzone times: " + deadzonesTime +
"! No time left for any signal, skipping!");
85 Debug.
Log(
"Cycle m_TimeToComplete: " +
m_TimeToComplete +
" shorter than combined deadzone times: " + deadzonesTime +
"! No time left for any signal, skipping!",
"FishingCA");
91 ErrorEx(
"maximalUsableDuration " + maximalUsableDuration +
" is shorter than UAFishingConstants.SIGNAL_DURATION_MIN_BASE, skipping signal!");
94 Debug.
Log(
"maximalUsableDuration " + maximalUsableDuration +
" is shorter than UAFishingConstants.SIGNAL_DURATION_MIN_BASE, skipping signal!",
"FishingCA");
109 Debug.
Log(
"Signal durationTime adjusted from " + durationTime +
" to " +
m_SignalDuration +
". maximalUsableDuration: " + maximalUsableDuration +
", m_TimeToComplete: " +
m_TimeToComplete,
"FishingCA");
123 FishingActionData data;
134 FishingActionData data;
void OnSignalEnd(FishingActionData action_data)
void OnSignalStart(FishingActionData action_data)
void OnCompletePogress(ActionData action_data)
float m_DefaultTimeToComplete
void CAContinuousRepeat(float time_to_complete_action)
void SetNewSignalData(float startTime, float durationTime)
override int Execute(ActionData action_data)
void OnSignalStart(ActionData action_data)
void CAContinuousRepeatFishing(float time_to_complete_action)
void OnSignalEnd(ActionData action_data)
Super root of all classes in Enforce script.
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
const float SIGNAL_DURATION_MIN_BASE
const float SIGNAL_DEADZONE_START_DURATION
const float SIGNAL_DURATION_MAX_BASE
const float SIGNAL_DEADZONE_END_DURATION
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.