DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ActionAnimateMotorbikeSeat.c
См. документацию.
2{
4 {
5 m_Text = "#move_seat";
6 }
7
13
14 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
15 {
16 if(!target)
17 return false;
18
19 MotorbikeScript bike;
20 if (Class.CastTo(bike, target.GetObject()))
21 {
22 if (bike.CrewMember(DayZPlayerConstants.VEHICLESEAT_DRIVER))
23 return false;
24
25 TStringArray selections = new TStringArray();
26 bike.GetActionComponentNameList(target.GetComponentIndex(), selections, LOD.NAME_VIEW);
27
28 vector playerPosition = player.GetPosition();
29 foreach (string selection : selections)
30 {
31 if (bike.CanReachSeatFromDoors(selection, playerPosition, 1.0))
32 {
33 m_AnimSource = bike.GetAnimSourceFromSelection(selection);
34 if (m_AnimSource != "" && m_AnimSource == "SeatDriver")
35 return true;
36 }
37 }
38 }
39
40 return false;
41 }
42
43 override bool CanBeUsedInVehicle()
44 {
45 return false;
46 }
47}
string m_Text
Определения ActionBase.c:57
ref CCIBase m_ConditionItem
Определения ActionBase.c:63
ref CCTBase m_ConditionTarget
Определения ActionBase.c:64
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
Определения ActionTargets.c:125
void MotorbikeScript()
Определения MotorbikeScript.c:105
override bool CanBeUsedInVehicle()
Определения ActionAnimateMotorbikeSeat.c:43
void ActionAnimateMotorbikeSeat()
Определения ActionAnimateMotorbikeSeat.c:3
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения ActionAnimateMotorbikeSeat.c:14
override void CreateConditionComponents()
Определения ActionAnimateMotorbikeSeat.c:8
void ActionAnimateSeats()
Определения ActionAnimateSeats.c:3
Определения CCINone.c:2
Определения CCTCursor.c:2
Super root of all classes in Enforce script.
Определения EnScript.c:11
static const string NAME_VIEW
Определения gameplay.c:207
LOD class.
Определения gameplay.c:204
Определения PlayerBaseClient.c:2
const float SMALL
Определения ActionConstants.c:113
Определения EnConvert.c:119
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
class array< Class T > TStringArray