-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKey.sqf
More file actions
132 lines (120 loc) · 2.9 KB
/
Key.sqf
File metadata and controls
132 lines (120 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
If (!hasinterface) exitwith {}; //If you don't have an interface, do nothing.
Climb = "GetInHemttBack";
Getdown = "AcrgPknlMstpSnonWnonDnon_AmovPercMstpSrasWrflDnon_getOutHigh";
FN_climb = {
params ["_displaycode","_keycode","_isshift","_isctrl","_isalt"];
_handled = false;
if (_keycode in actionkeys "getover") then {
Player switchmove climb;
Player addeventhandler ["Animdone",{
Player removeeventhandler ["Animdone", _thiseventhandler];
Player setposatl (Player modeltoworld [0,1,0.5]);
Player switchmove getdown;
}];
};
_handled
};
waituntil {!(isnull (finddisplay 46))};
(finddisplay 46) displayaddeventhandler ["Keydown", "_this call FN_climb;"];
/*
C1 switchmove climb;
C1 addeventhandler ["Animdone",{
C1 removeeventhandler ["Animdone", _thiseventhandler];
C1 setposatl (C1 modeltoworld [0,1,0.5]);
C1 switchmove getdown;
}];
If (!hasinterface) exitwith {}; //If you don't have an interface, do nothing.
Pushup = "AmovPercMstpSnonWnonDnon_exercisePushup";
FN_push = {
params ["_displaycode","_keycode","_isshift","_isctrl","_isalt"];
_handled = false;
if (_keycode in actionkeys "getover" && _isshift) then {
C1 playmovenow pushup;
};
_handled
};
waituntil {!(isnull (finddisplay 46))};
(finddisplay 46) displayaddeventhandler ["Keydown", "_this call FN_push;"];
Player
GetInHemttBack
"FN_climbact" addpublicvariableeventhandler { //Create a public varable event handler.
(_this select 1) spawn FN_doclimb; //This is the part that triggers the event.
};
AmovPercMstpSnonWnonDnon_Ease
AmovPercMstpSnonWnonDnon_exercisePushup
AmovPercMstpSnonWnonDnon_exercisekneeBendA
//Animations (Playmove)
gestureAdvance //Forward Fist Pump
gestureAttack //Switchmove Broken
gestureCeaseFire //Fast Window Washing
gestureCover //Big Wave Right Hand
gestureFollow
gestureFreeze
gestureGo //Single Forward Slow Chop
gestureGoB //Wonky "Ladies First"
gestureHi
gestureHiB
gestureHiC
GestureLegPush //Levitate
gestureNo //Headshake
gestureNod //Nod
gesturePoint //Forward Fist Pump
gestureUp //Wonky Resume Formation
gestureYes //Nod
//Wounded
GestureAgonyCargo //Stomache Ache
GestureSpasm0
GestureSpasm0weak
GestureSpasm1
GestureSpasm1weak
GestureSpasm2
GestureSpasm2weak
GestureSpasm3
GestureSpasm3weak
GestureSpasm4
GestureSpasm4weak
GestureSpasm5
GestureSpasm5weak
GestureSpasm6
GestureSpasm6weak
//Climbing
GetInHemttBack //Switchmove High Climb
GetInHigh
GetInLow
GetInMantis
GetInMedium
GetInMortar
GetInMRAP_01
GetInMRAP_01_cargo
GetInMRAP_03
GetInOffroad
GetInOffroadBack
GetInOffroadCargo
GetInQuadbike
GetInQuadbike_cargo
GetInSDV
GetInSpeedboat
GetOutAssaultBoat
GetOutHeli_Attack_01Gunner
GetOutHeli_Attack_01Pilot
GetOutHeli_Light_01bench
GetOutHelicopterCargo
GetOutHigh
GetOutHighHemtt
GetOutHighZamak
GetOutLow
GetOutMantis
GetOutMedium
GetOutMortar
GetOutMRAP_01
GetOutMRAP_01_cargo
GetOutPara
GetOutQuadbike
GetOutQuadbike_cargo
GetOutSDV
GetOutSpeedboat
GetOver
grabCarried
grabCarry
grabDrag
grabDragged