DayZ 1.24
Loading...
Searching...
No Matches
ActionFishing.c
Go to the documentation of this file.
1/*class ActionFishingCB : ActionContinuousBaseCB
2 {
3 override void CreateActionComponent()
4 {
5 m_ActionData.m_ActionComponent = new CAContinuousFish;
6 }
7 };
8
9 class ActionFishing: ActionContinuousBase
10 {
11 void ActionFishing()
12 {
13 m_CallbackClass = ActionFishingCB;
14 m_Sounds.Insert("FishStruggling_0");
15 m_Sounds.Insert("FishStruggling_1");
16 m_Sounds.Insert("FishStruggling_2");
17 m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_MEDIUM;
18 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FISHING;
19 m_FullBody = true;
20 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
21 }
22
23 override void CreateConditionComponents()
24 {
25
26 m_ConditionItem = new CCINonRuined;
27 m_ConditionTarget = new CCTNone;
28 }
29
30 override string GetText()
31 {
32 return "#pull";
33 }
34
35 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
36 {
37 FishingRod_Base nitem = FishingRod_Base.Cast( item );
38 if ( nitem.IsFishingActive() )
39 {
40 return true;
41 }
42 else
43 {
44 return false;
45 }
46 }
47
48 override void OnEndServer( ActionData action_data )
49 {
50 action_data.m_Player.GetSoftSkillsManager().AddSpecialty( m_SpecialtyWeight );
51 }
52 };*/
53