Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
emoteclasses.c
Go to the documentation of this file.
1 
2 class EmoteGreeting extends EmoteBase
3 {
4  void EmoteGreeting()
5  {
6  m_ID = EmoteConstants.ID_EMOTE_GREETING;
7  m_InputActionName = "EmoteGreeting";
8  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
9  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
10  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_GREETING;
11  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_GREETING;
12  m_HideItemInHands = false;
13  }
14 }
15 
16 class EmoteSOS extends EmoteBase
17 {
18  void EmoteSOS()
19  {
20  m_ID = EmoteConstants.ID_EMOTE_SOS;
21  m_InputActionName = "EmoteSOS";
22  m_StanceMaskAdditive = 0;
23  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_ERECT;
24  m_AdditiveCallbackUID = 0;
25  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_SOS;
26  m_HideItemInHands = true;
27  }
28 }
29 
30 class EmoteHeart extends EmoteBase
31 {
32  void EmoteHeart()
33  {
34  m_ID = EmoteConstants.ID_EMOTE_HEART;
35  m_InputActionName = "EmoteHeart";
36  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
37  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
38  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_HEART;
39  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_HEART;
40  m_HideItemInHands = true;
41  }
42 }
43 
44 class EmoteTaunt extends EmoteBase
45 {
46  void EmoteTaunt()
47  {
48  m_ID = EmoteConstants.ID_EMOTE_TAUNT;
49  m_InputActionName = "EmoteTaunt";
50  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
51  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
52  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_TAUNT;
53  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_TAUNT;
54  m_HideItemInHands = false;
55  }
56 }
57 
58 class EmoteLyingDown extends EmoteBase
59 {
60  protected const float WATER_DEPTH = 0.15;
61  void EmoteLyingDown()
62  {
63  m_ID = EmoteConstants.ID_EMOTE_LYINGDOWN;
64  m_InputActionName = "EmoteLyingDown";
65  m_StanceMaskAdditive = 0;
66  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_CROUCH;
67  m_AdditiveCallbackUID = 0;
68  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_LYINGDOWN;
69  m_HideItemInHands = true;
70  }
71 
72  override bool EmoteCondition(int stancemask)
73  {
74  vector water_info = HumanCommandSwim.WaterLevelCheck( m_Player, m_Player.GetPosition() - (m_Player.GetDirection() * 0.9) );
75  if ( water_info[0] < WATER_DEPTH ) //is player able to lay down without "drowning"?
76  return true;
77  return false;
78  }
79 }
80 
81 class EmoteTauntKiss extends EmoteBase
82 {
84  {
85  m_ID = EmoteConstants.ID_EMOTE_TAUNTKISS;
86  m_InputActionName = "EmoteTauntKiss";
87  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
88  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
89  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_TAUNTKISS;
90  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_TAUNTKISS;
91  m_HideItemInHands = false;
92  }
93 }
94 
95 class EmotePoint extends EmoteBase
96 {
97  void EmotePoint()
98  {
99  m_ID = EmoteConstants.ID_EMOTE_POINT;
100  m_InputActionName = "EmotePoint";
101  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
102  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
103  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_POINT;
104  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_POINT;
105  m_HideItemInHands = false;
106  }
107 }
108 
109 class EmoteTauntElbow extends EmoteBase
110 {
112  {
113  m_ID = EmoteConstants.ID_EMOTE_TAUNTELBOW;
114  m_InputActionName = "EmoteTauntElbow";
115  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
116  m_StanceMaskFullbody = 0;
117  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_TAUNTELBOW;
118  m_FullbodyCallbackUID = 0;
119  m_HideItemInHands = true;
120  }
121 }
122 
123 class EmoteThumb extends EmoteBase
124 {
125  void EmoteThumb()
126  {
127  m_ID = EmoteConstants.ID_EMOTE_THUMB;
128  m_InputActionName = "EmoteThumb";
129  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
130  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
131  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_THUMB;
132  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_THUMB;
133  m_HideItemInHands = false;
134  }
135 }
136 
137 class EmoteThumbDown extends EmoteBase
138 {
140  {
141  m_ID = EmoteConstants.ID_EMOTE_THUMBDOWN;
142  m_InputActionName = "EmoteThumbDown";
143  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
144  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
145  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_THUMBDOWN;
146  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_THUMBDOWN;
147  m_HideItemInHands = false;
148  }
149 }
150 
151 class EmoteThroat extends EmoteBase
152 {
153  void EmoteThroat()
154  {
155  m_ID = EmoteConstants.ID_EMOTE_THROAT;
156  m_InputActionName = "EmoteThroat";
157  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
158  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
159  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_THROAT;
160  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_THROAT;
161  m_HideItemInHands = false;
162  }
163 }
164 
165 class EmoteDance extends EmoteBase
166 {
167  void EmoteDance()
168  {
169  m_ID = EmoteConstants.ID_EMOTE_DANCE;
170  m_InputActionName = "EmoteDance";
171  m_StanceMaskAdditive = 0;
172  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_ERECT;
173  m_AdditiveCallbackUID = 0;
174  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_DANCE;
175  m_HideItemInHands = true;
176  }
177 
178  override bool EmoteCondition(int stancemask)
179  {
180  if (m_Player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
181  return false;
182 
183  return true;
184  }
185 }
186 
187 class EmoteSalute extends EmoteBase
188 {
189  void EmoteSalute()
190  {
191  m_ID = EmoteConstants.ID_EMOTE_SALUTE;
192  m_InputActionName = "EmoteSalute";
193  m_StanceMaskAdditive = 0;
194  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_ERECT;
195  m_AdditiveCallbackUID = 0;
196  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_SALUTE;
197  m_HideItemInHands = true;
198  }
199 }
200 
201 class EmoteTimeout extends EmoteBase
202 {
204  {
205  m_ID = EmoteConstants.ID_EMOTE_TIMEOUT;
206  m_InputActionName = "EmoteTimeout";
207  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
208  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
209  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_TIMEOUT;
210  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_TIMEOUT;
211  m_HideItemInHands = true;
212  }
213 }
214 
215 class EmoteDabbing extends EmoteBase
216 {
217  void EmoteDabbing()
218  {
219  m_ID = EmoteConstants.ID_EMOTE_DABBING;
220  //m_InputActionName = "EmoteDabbing";
221  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
222  m_StanceMaskFullbody = 0;
223  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_DABBING;
224  m_FullbodyCallbackUID = 0;
225  m_HideItemInHands = true;
226  }
227 }
228 
229 class EmoteFacepalm extends EmoteBase
230 {
232  {
233  m_ID = EmoteConstants.ID_EMOTE_FACEPALM;
234  m_InputActionName = "EmoteFacepalm";
235  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
236  m_StanceMaskFullbody = 0;
237  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_FACEPALM;
238  m_FullbodyCallbackUID = 0;
239  m_HideItemInHands = false;
240  }
241 }
242 
243 class EmoteClap extends EmoteBase
244 {
245  void EmoteClap()
246  {
247  m_ID = EmoteConstants.ID_EMOTE_CLAP;
248  m_InputActionName = "EmoteClap";
249  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
250  m_StanceMaskFullbody = 0;
251  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_CLAP;
252  m_FullbodyCallbackUID = 0;
253  m_HideItemInHands = true;
254  }
255 }
256 
257 class EmoteSilent extends EmoteBase
258 {
259  void EmoteSilent()
260  {
261  m_ID = EmoteConstants.ID_EMOTE_SILENT;
262  m_InputActionName = "EmoteSilent";
263  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
264  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
265  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_SILENCE;
266  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_SILENCE;
267  m_HideItemInHands = false;
268  }
269 }
270 
271 class EmoteWatching extends EmoteBase
272 {
273  void EmoteWatching()
274  {
275  m_ID = EmoteConstants.ID_EMOTE_WATCHING;
276  m_InputActionName = "EmoteWatching";
277  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
278  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
279  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_WATCHING;
280  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_WATCHING;
281  m_HideItemInHands = false;
282  }
283 }
284 
285 class EmoteHold extends EmoteBase
286 {
287  void EmoteHold()
288  {
289  m_ID = EmoteConstants.ID_EMOTE_HOLD;
290  m_InputActionName = "EmoteHold";
291  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
292  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
293  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_HOLD;
294  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_HOLD;
295  m_HideItemInHands = false;
296  }
297 }
298 
299 class EmoteListening extends EmoteBase
300 {
301  void EmoteListening()
302  {
303  m_ID = EmoteConstants.ID_EMOTE_LISTENING;
304  m_InputActionName = "EmoteListening";
305  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
306  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
307  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_LISTENING;
308  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_LISTENING;
309  m_HideItemInHands = false;
310  }
311 }
312 
313 class EmotePointSelf extends EmoteBase
314 {
316  {
317  m_ID = EmoteConstants.ID_EMOTE_POINTSELF;
318  m_InputActionName = "EmotePointSelf";
319  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
320  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
321  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_POINTSELF;
322  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_POINTSELF;
323  m_HideItemInHands = false;
324  }
325 }
326 
327 class EmoteLookAtMe extends EmoteBase
328 {
329  void EmoteLookAtMe()
330  {
331  m_ID = EmoteConstants.ID_EMOTE_LOOKATME;
332  m_InputActionName = "EmoteLookAtMe";
333  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
334  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
335  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_LOOKATME;
336  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_LOOKATME;
337  m_HideItemInHands = false;
338  }
339 }
340 
341 class EmoteTauntThink extends EmoteBase
342 {
344  {
345  m_ID = EmoteConstants.ID_EMOTE_TAUNTTHINK;
346  m_InputActionName = "EmoteTauntThink";
347  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
348  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
349  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_TAUNTTHINK;
350  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_TAUNTTHINK;
351  m_HideItemInHands = false;
352  }
353 }
354 
355 class EmoteMove extends EmoteBase
356 {
357  void EmoteMove()
358  {
359  m_ID = EmoteConstants.ID_EMOTE_MOVE;
360  m_InputActionName = "EmoteMove";
361  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
362  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
363  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_MOVE;
364  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_MOVE;
365  m_HideItemInHands = false;
366  }
367 }
368 
369 class EmoteGetDown extends EmoteBase
370 {
372  {
373  m_ID = EmoteConstants.ID_EMOTE_DOWN;
374  m_InputActionName = "EmoteGetDown";
375  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
376  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
377  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_DOWN;
378  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_DOWN;
379  m_HideItemInHands = false;
380  }
381 }
382 
383 class EmoteCome extends EmoteBase
384 {
385  void EmoteCome()
386  {
387  m_ID = EmoteConstants.ID_EMOTE_COME;
388  m_InputActionName = "EmoteCome";
389  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
390  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
391  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_COME;
392  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_COME;
393  m_HideItemInHands = false;
394  }
395 }
396 
397 //Handled directly via EmoteManager!
398 class EmoteSurrender extends EmoteBase
399 {
401  {
402  m_ID = EmoteConstants.ID_EMOTE_SURRENDER;
403  m_InputActionName = "EmoteSurrender";
404  m_HideItemInHands = false;
405  }
406 
407  override bool DetermineOverride(out int callback_ID, out int stancemask, out bool is_fullbody)
408  {
409  stancemask = DayZPlayerConstants.STANCEMASK_ALL;
410  return true;
411  }
412 
413  override bool EmoteStartOverride(typename callbacktype, int id, int mask, bool fullbody)
414  {
415  bool surrendered = m_Player.GetEmoteManager().m_IsSurrendered;
416  if (!surrendered)
417  {
418  m_Player.GetEmoteManager().PlaySurrenderInOut(true);
419  }
420  else
421  {
422  if (m_Player.GetItemInHands())
423  m_Player.GetItemInHands().Delete();
424  }
425 
426  return true;
427  }
428 }
429 
430 class EmoteCampfireSit extends EmoteBase
431 {
432  void EmoteCampfireSit()
433  {
434  m_ID = EmoteConstants.ID_EMOTE_CAMPFIRE;
435  m_InputActionName = "EmoteCampfireSit";
436  m_StanceMaskAdditive = 0;
437  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_CROUCH;
438  m_AdditiveCallbackUID = 0;
439  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_CAMPFIRE;
440  m_HideItemInHands = true;
441  }
442 }
443 
444 class EmoteSitA extends EmoteBase
445 {
446  void EmoteSitA()
447  {
448  m_ID = EmoteConstants.ID_EMOTE_SITA;
449  m_InputActionName = "EmoteSitA";
450  m_StanceMaskAdditive = 0;
451  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_CROUCH;
452  m_AdditiveCallbackUID = 0;
453  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_SITA;
454  m_HideItemInHands = false;
455  }
456 }
457 
458 class EmoteSitB extends EmoteBase
459 {
460  void EmoteSitB()
461  {
462  m_ID = EmoteConstants.ID_EMOTE_SITB;
463  m_InputActionName = "EmoteSitB";
464  m_StanceMaskAdditive = 0;
465  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_CROUCH;
466  m_AdditiveCallbackUID = 0;
467  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_SITB;
468  m_HideItemInHands = false;
469  }
470 }
471 
472 class EmoteRPSRandom extends EmoteBase
473 {
475  {
476  m_ID = EmoteConstants.ID_EMOTE_RPS;
477  m_InputActionName = "EmoteRPSRandom";
478  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_ERECT;
479  m_StanceMaskFullbody = 0;
480  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_RPS;
481  m_FullbodyCallbackUID = 0;
482  m_HideItemInHands = false;
483  }
484 }
485 
486 class EmoteRPSRock extends EmoteBase
487 {
488  void EmoteRPSRock()
489  {
490  m_ID = EmoteConstants.ID_EMOTE_RPS_R;
491  m_InputActionName = "EmoteRPSRock";
492  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_ERECT;
493  m_StanceMaskFullbody = 0;
494  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_RPS;
495  m_FullbodyCallbackUID = 0;
496  m_HideItemInHands = false;
497  }
498 }
499 
500 class EmoteRPSPaper extends EmoteBase
501 {
503  {
504  m_ID = EmoteConstants.ID_EMOTE_RPS_P;
505  m_InputActionName = "EmoteRPSPaper";
506  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_ERECT;
507  m_StanceMaskFullbody = 0;
508  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_RPS;
509  m_FullbodyCallbackUID = 0;
510  m_HideItemInHands = false;
511  }
512 }
513 
514 class EmoteRPSScisors extends EmoteBase
515 {
516  void EmoteRPSScisors()
517  {
518  m_ID = EmoteConstants.ID_EMOTE_RPS_S;
519  m_InputActionName = "EmoteRPSScisors";
520  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_ERECT;
521  m_StanceMaskFullbody = 0;
522  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_RPS;
523  m_FullbodyCallbackUID = 0;
524  m_HideItemInHands = false;
525  }
526 }
527 
528 class EmoteNod extends EmoteBase
529 {
530  void EmoteNod()
531  {
532  m_ID = EmoteConstants.ID_EMOTE_NOD;
533  m_InputActionName = "EmoteNod";
534  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
535  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
536  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_NODHEAD;
537  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_NODHEAD;
538  m_HideItemInHands = false;
539  }
540 }
541 
542 class EmoteShake extends EmoteBase
543 {
544  void EmoteShake()
545  {
546  m_ID = EmoteConstants.ID_EMOTE_SHAKE;
547  m_InputActionName = "EmoteShake";
548  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
549  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
550  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_SHAKEHEAD;
551  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_SHAKEHEAD;
552  m_HideItemInHands = false;
553  }
554 }
555 
556 class EmoteShrug extends EmoteBase
557 {
558  void EmoteShrug()
559  {
560  m_ID = EmoteConstants.ID_EMOTE_SHRUG;
561  m_InputActionName = "EmoteShrug";
562  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
563  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
564  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_SHRUG;
565  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_SHRUG;
566  m_HideItemInHands = false;
567  }
568 }
569 
570 class EmoteSuicide extends EmoteBase
571 {
572  void EmoteSuicide()
573  {
574  m_ID = EmoteConstants.ID_EMOTE_SUICIDE;
575  m_InputActionName = "EmoteSuicide";
576  m_StanceMaskAdditive = 0;
577  m_StanceMaskFullbody = 0;
578  m_AdditiveCallbackUID = 0;
579  m_FullbodyCallbackUID = 0;
580  m_HideItemInHands = false;
581  }
582 
583  override bool DetermineOverride(out int callback_ID, out int stancemask, out bool is_fullbody)
584  {
585  is_fullbody = true;
586  callback_ID = -1;
587  stancemask = 0;
588  string suicideStr;
589  ItemBase weapon;
590  weapon = m_Player.GetItemInHands();
591  if (weapon)
592  {
593  if (weapon.ConfigIsExisting("suicideAnim"))
594  {
595  suicideStr = weapon.ConfigGetString("suicideAnim");
596  }
597 
598  if (weapon.IsKindOf("Pistol_Base"))
599  {
600  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_PISTOL;
601  stancemask = DayZPlayerConstants.STANCEMASK_CROUCH;
602  //m_Player.OverrideShootFromCamera(false);
603  }
604  else if (Weapon_Base.Cast(weapon)) //long firearms
605  {
606  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_RIFLE;
607  stancemask = DayZPlayerConstants.STANCEMASK_CROUCH;
608  //m_Player.OverrideShootFromCamera(false);
609  }
610  else
611  {
612  switch (suicideStr)
613  {
614  case "onehanded":
615  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_1HD;
616  stancemask = DayZPlayerConstants.STANCEMASK_CROUCH;
617  break;
618 
619  case "fireaxe":
620  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_FIREAXE;
621  stancemask = DayZPlayerConstants.STANCEMASK_ERECT;
622  break;
623 
624  case "pitchfork":
625  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_PITCHFORK;
626  stancemask = DayZPlayerConstants.STANCEMASK_ERECT;
627  break;
628 
629  case "sword":
630  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_SWORD;
631  stancemask = DayZPlayerConstants.STANCEMASK_ERECT;
632  break;
633 
634  case "spear":
635  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_SPEAR;
636  stancemask = DayZPlayerConstants.STANCEMASK_ERECT;
637  break;
638 
639  case "woodaxe":
640  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_WOODAXE;
641  stancemask = DayZPlayerConstants.STANCEMASK_ERECT;
642  break;
643 
644  case "sickle":
645  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_SICKLE;
646  stancemask = DayZPlayerConstants.STANCEMASK_ERECT;
647  break;
648 
649  case "hoe":
650  callback_ID = DayZPlayerConstants.CMD_SUICIDEFB_HOE;
651  stancemask = DayZPlayerConstants.STANCEMASK_ERECT;
652  break;
653  }
654  }
655  }
656  if (callback_ID > -1)
657  {
658  return true;
659  }
660  return false;
661  }
662 
663  override bool EmoteCondition(int stancemask)
664  {
665  ItemBase itemInHands = m_Player.GetItemInHands();
666 
667  if (!itemInHands.CanBeUsedForSuicide())
668  {
669  return false;
670  }
671 
672  return super.EmoteCondition(stancemask);
673  }
674 
675  override bool CanBeCanceledNormally(notnull EmoteCB callback)
676  {
677  int state = callback.GetState();
678  if (state > HumanCommandActionCallback.STATE_LOOP_LOOP) //Cannot be canceled once started
679  return false;
680 
681  return super.CanBeCanceledNormally(callback);;
682  }
683 
684  override void OnBeforeStandardCallbackCreated(int callback_ID, int stancemask, bool is_fullbody)
685  {
686  if (callback_ID > -1)
687  {
688  if (callback_ID == DayZPlayerConstants.CMD_SUICIDEFB_PISTOL || callback_ID == DayZPlayerConstants.CMD_SUICIDEFB_RIFLE)
689  m_Player.OverrideShootFromCamera(false);
690  }
691  }
692 
693  override void OnCallbackEnd()
694  {
695  m_Player.SetSuicide(false);
696  }
697 }
698 
699 class EmoteVomit extends EmoteBase
700 {
701  void EmoteVomit()
702  {
703  m_ID = EmoteConstants.ID_EMOTE_VOMIT;
704  m_InputActionName = "EmoteVomit";
705  m_StanceMaskAdditive = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
706  m_StanceMaskFullbody = DayZPlayerConstants.STANCEMASK_PRONE;
707  m_AdditiveCallbackUID = DayZPlayerConstants.CMD_GESTUREMOD_NODHEAD;
708  m_FullbodyCallbackUID = DayZPlayerConstants.CMD_GESTUREFB_NODHEAD;
709  m_HideItemInHands = false;
710  }
711 
712  override bool EmoteCondition(int stancemask)
713  {
714  return DayZPlayerUtils.PlayerCanChangeStance(m_Player,DayZPlayerConstants.STANCEIDX_CROUCH);
715  }
716 
717  override bool EmoteStartOverride(typename callbacktype, int id, int mask, bool fullbody)
718  {
719  if ( m_Player.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER || !GetGame().IsMultiplayer() )
720  {
721  SymptomBase symptom = m_Player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
722 
723  if ( symptom )
724  {
725  symptom.SetDuration(Math.RandomIntInclusive(4,8));
726  }
727  }
728 
729  m_Player.GetEmoteManager().SetEmoteLockState(false);
730 
731  return true;
732  }
733 }
ItemBase
Definition: inventoryitem.c:730
GetGame
proto native CGame GetGame()
EmoteTimeout
class EmoteSalute extends EmoteBase EmoteTimeout()
Definition: emoteclasses.c:203
EmoteSalute
void EmoteSalute()
Definition: emoteclasses.c:179
EmoteSilent
class EmoteClap extends EmoteBase EmoteSilent()
Definition: emoteclasses.c:259
EmoteMove
void EmoteMove()
Definition: emoteclasses.c:179
DetermineOverride
override bool DetermineOverride(out int callback_ID, out int stancemask, out bool is_fullbody)
Definition: emoteclasses.c:407
DayZPlayerUtils
private void DayZPlayerUtils()
cannot be instantiated
Definition: dayzplayerutils.c:461
EmoteThroat
void EmoteThroat()
Definition: emoteclasses.c:2
EmoteCome
void EmoteCome()
Definition: emoteclasses.c:179
EmotePointSelf
class EmoteListening extends EmoteBase EmotePointSelf()
Definition: emoteclasses.c:315
EmoteThumb
void EmoteThumb()
Definition: emoteclasses.c:2
EmoteDance
class EmoteThroat extends EmoteBase EmoteDance()
Definition: emoteclasses.c:167
EmoteSitA
class EmoteCampfireSit extends EmoteBase EmoteSitA()
Definition: emoteclasses.c:446
EmoteWatching
void EmoteWatching()
Definition: emoteclasses.c:179
EmoteDabbing
void EmoteDabbing()
Definition: emoteclasses.c:179
EmoteRPSScisors
void EmoteRPSScisors()
Definition: emoteclasses.c:414
EmotePoint
void EmotePoint()
Definition: emoteclasses.c:2
OnCallbackEnd
override void OnCallbackEnd()
Definition: emoteclasses.c:535
EmoteTauntThink
class EmoteLookAtMe extends EmoteBase EmoteTauntThink()
Definition: emoteclasses.c:343
SymptomBase
Definition: statebase.c:1
EmoteVomit
class EmoteSuicide extends EmoteBase EmoteVomit()
Definition: emoteclasses.c:701
EmoteSuicide
void EmoteSuicide()
Definition: emoteclasses.c:414
EmoteListening
void EmoteListening()
Definition: emoteclasses.c:179
EmoteCondition
override bool EmoteCondition(int stancemask)
Definition: emoteclasses.c:14
EmoteTauntElbow
class EmotePoint extends EmoteBase EmoteTauntElbow()
Definition: emoteclasses.c:111
eBrokenLegs
eBrokenLegs
Definition: ebrokenlegs.c:1
EmoteNod
class EmoteRPSScisors extends EmoteBase EmoteNod()
Definition: emoteclasses.c:530
EmoteBase
Definition: emotebase.c:1
EmoteHold
class EmoteWatching extends EmoteBase EmoteHold()
Definition: emoteclasses.c:287
EmoteCB
Definition: emotemanager.c:1
vector
Definition: enconvert.c:105
OnBeforeStandardCallbackCreated
override void OnBeforeStandardCallbackCreated(int callback_ID, int stancemask, bool is_fullbody)
Definition: emoteclasses.c:526
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
EmoteShake
void EmoteShake()
Definition: emoteclasses.c:414
EmoteHeart
void EmoteHeart()
Definition: emoteclasses.c:2
EmoteGreeting
void EmoteGreeting()
Definition: emoteclasses.c:2
EmoteConstants
Definition: constants.c:348
m_Player
DayZPlayer m_Player
Definition: hand_events.c:42
HumanCommandActionCallback
Definition: statecb.c:1
EmoteLyingDown
void EmoteLyingDown()
Definition: emoteclasses.c:3
HumanCommandSwim
class HumanCommandLadder HumanCommandSwim()
Definition: human.c:673
EmoteCampfireSit
void EmoteCampfireSit()
Definition: emoteclasses.c:414
EmoteStartOverride
override bool EmoteStartOverride(typename callbacktype, int id, int mask, bool fullbody)
Definition: emoteclasses.c:413
EmoteFacepalm
class EmoteDabbing extends EmoteBase EmoteFacepalm()
Definition: emoteclasses.c:231
WATER_DEPTH
const protected float WATER_DEPTH
Definition: emoteclasses.c:2
EmoteShrug
class EmoteShake extends EmoteBase EmoteShrug()
Definition: emoteclasses.c:558
EmoteRPSPaper
class EmoteRPSRock extends EmoteBase EmoteRPSPaper()
Definition: emoteclasses.c:502
EmoteSurrender
class EmoteCome extends EmoteBase EmoteSurrender()
Definition: emoteclasses.c:400
EmoteTauntKiss
class EmoteLyingDown extends EmoteBase EmoteTauntKiss()
Definition: emoteclasses.c:83
Weapon_Base
shorthand
Definition: boltactionrifle_base.c:5
EmoteLookAtMe
void EmoteLookAtMe()
Definition: emoteclasses.c:179
EmoteSitB
void EmoteSitB()
Definition: emoteclasses.c:414
EmoteRPSRandom
class EmoteSitB extends EmoteBase EmoteRPSRandom()
Definition: emoteclasses.c:474
Math
Definition: enmath.c:6
EmoteRPSRock
void EmoteRPSRock()
Definition: emoteclasses.c:414
EmoteClap
void EmoteClap()
Definition: emoteclasses.c:179
EmoteThumbDown
class EmoteThumb extends EmoteBase EmoteThumbDown()
Definition: emoteclasses.c:139
EmoteSOS
class EmoteGreeting extends EmoteBase EmoteSOS()
Definition: emoteclasses.c:18
EmoteTaunt
class EmoteHeart extends EmoteBase EmoteTaunt()
Definition: emoteclasses.c:46
EmoteGetDown
class EmoteMove extends EmoteBase EmoteGetDown()
Definition: emoteclasses.c:371
m_ID
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition: effect.c:49
CanBeCanceledNormally
override bool CanBeCanceledNormally(notnull EmoteCB callback)
Definition: emoteclasses.c:517
DayZPlayerInstanceType
DayZPlayerInstanceType
defined in C++
Definition: dayzplayer.c:1058