DayZ 1.24
Loading...
Searching...
No Matches
EmoteConstructor.c
Go to the documentation of this file.
2{
4 {
8
11
12 for (int i = 0; i < emote_array_names.Count(); i++)
13 {
15 if (new_emote)
16 {
17 if (new_emote.GetID() < 0)
18 {
19 ErrorEx("Emote " + emote_array_names[i].ToString() + " has an invalid ID, registation failed!");
20 return false;
21 }
22 else if (emoteMap.Contains(new_emote.GetID()))
23 {
24 ErrorEx("Emote " + emote_array_names[i].ToString() + " has a duplicate ID, registation failed!");
25 return false;
26 }
27 else
28 {
29 new_emote.SetOwnerPlayer(player);
30 emoteMap.Insert(new_emote.GetID(), new_emote);
31 }
32 }
33 }
34 return true;
35 }
36
38 {
39 emotes.Insert(EmoteGreeting);
40 emotes.Insert(EmoteSOS);
41 emotes.Insert(EmoteHeart);
42 emotes.Insert(EmoteTaunt);
43 emotes.Insert(EmoteLyingDown);
44 emotes.Insert(EmoteTauntKiss);
45 emotes.Insert(EmotePoint);
46 emotes.Insert(EmoteTauntElbow);
47 emotes.Insert(EmoteThumb);
48 emotes.Insert(EmoteThumbDown);
49 emotes.Insert(EmoteThroat);
50 emotes.Insert(EmoteDance);
51 emotes.Insert(EmoteSalute);
52 emotes.Insert(EmoteTimeout);
53 //emotes.Insert(EmoteDabbing);
54 emotes.Insert(EmoteFacepalm);
55 emotes.Insert(EmoteClap);
56 emotes.Insert(EmoteSilent);
57 emotes.Insert(EmoteWatching);
58 emotes.Insert(EmoteHold);
59 emotes.Insert(EmoteListening);
60 emotes.Insert(EmotePointSelf);
61 emotes.Insert(EmoteLookAtMe);
62 emotes.Insert(EmoteTauntThink);
63 emotes.Insert(EmoteMove);
64 emotes.Insert(EmoteGetDown);
65 emotes.Insert(EmoteCome);
66 emotes.Insert(EmoteSurrender); //exception, partially handled in EmoteManager directly (..)
68 emotes.Insert(EmoteSitA);
69 emotes.Insert(EmoteSitB);
70 emotes.Insert(EmoteRPSRandom);
71 emotes.Insert(EmoteRPSRock);
72 emotes.Insert(EmoteRPSPaper);
73 emotes.Insert(EmoteRPSScisors);
74 emotes.Insert(EmoteNod);
75 emotes.Insert(EmoteShake);
76 emotes.Insert(EmoteShrug);
77 emotes.Insert(EmoteSuicide);
78 emotes.Insert(EmoteVomit);
79 }
80}
void Spawn()
spawn damage trigger
class EmoteWatching extends EmoteBase EmoteHold()
class EmoteLyingDown extends EmoteBase EmoteTauntKiss()
class EmoteClap extends EmoteBase EmoteSilent()
class EmoteShake extends EmoteBase EmoteShrug()
class EmoteListening extends EmoteBase EmotePointSelf()
void EmotePoint()
void EmoteGreeting()
class EmoteSitB extends EmoteBase EmoteRPSRandom()
class EmoteMove extends EmoteBase EmoteGetDown()
class EmoteRPSRock extends EmoteBase EmoteRPSPaper()
void EmoteWatching()
class EmoteHeart extends EmoteBase EmoteTaunt()
class EmoteSalute extends EmoteBase EmoteTimeout()
class EmoteRPSScisors extends EmoteBase EmoteNod()
class EmoteSuicide extends EmoteBase EmoteVomit()
void EmoteLookAtMe()
void EmoteThroat()
void EmoteSuicide()
class EmoteThroat extends EmoteBase EmoteDance()
void EmoteLyingDown()
class EmotePoint extends EmoteBase EmoteTauntElbow()
class EmoteGreeting extends EmoteBase EmoteSOS()
void EmoteSitB()
class EmoteLookAtMe extends EmoteBase EmoteTauntThink()
void EmoteCampfireSit()
void EmoteMove()
void EmoteCome()
void EmoteHeart()
void EmoteSalute()
void EmoteRPSScisors()
void EmoteRPSRock()
void EmoteThumb()
void EmoteListening()
class EmoteThumb extends EmoteBase EmoteThumbDown()
void EmoteClap()
void EmoteShake()
class EmoteDabbing extends EmoteBase EmoteFacepalm()
class EmoteCampfireSit extends EmoteBase EmoteSitA()
class EmoteCome extends EmoteBase EmoteSurrender()
proto string ToString()
void RegisterEmotes(TTypenameArray emotes)
bool ConstructEmotes(PlayerBase player, out map< int, ref EmoteBase > emoteMap)
enum ShapeType ErrorEx
proto void Sort(void param_array[], int num)
Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically)
array< typename > TTypenameArray
Definition EnScript.c:674