DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
EmoteConstructor.c
Go to the documentation of this file.
2{
4 {
5 TTypenameArray emote_array_names = new TTypenameArray;
6 RegisterEmotes(emote_array_names);
7 Sort(emote_array_names,emote_array_names.Count());
8
9 emoteMap = new map<int, ref EmoteBase>;
10 ref EmoteBase new_emote;
11
12 for (int i = 0; i < emote_array_names.Count(); i++)
13 {
14 new_emote = EmoteBase.Cast(emote_array_names[i].Spawn());
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 (..)
67 emotes.Insert(EmoteCampfireSit);
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()
void EmoteHeart()
void EmoteSuicide()
void EmoteGreeting()
class EmoteClap extends EmoteBase EmoteSilent()
class EmoteShake extends EmoteBase EmoteShrug()
class EmoteListening extends EmoteBase EmotePointSelf()
class EmoteSitB extends EmoteBase EmoteRPSRandom()
class EmoteMove extends EmoteBase EmoteGetDown()
void EmoteWatching()
class EmoteRPSRock extends EmoteBase EmoteRPSPaper()
class EmoteHeart extends EmoteBase EmoteTaunt()
void EmoteSitB()
void EmoteShake()
void EmoteThumb()
void EmoteRPSRock()
void EmoteRPSScisors()
class EmoteSalute extends EmoteBase EmoteTimeout()
void EmoteSalute()
void EmotePoint()
class EmoteRPSScisors extends EmoteBase EmoteNod()
class EmoteSuicide extends EmoteBase EmoteVomit()
void EmoteMove()
class EmoteThroat extends EmoteBase EmoteDance()
class EmotePoint extends EmoteBase EmoteTauntElbow()
void EmoteLookAtMe()
void EmoteThroat()
class EmoteGreeting extends EmoteBase EmoteSOS()
void EmoteLyingDown()
class EmoteLookAtMe extends EmoteBase EmoteTauntThink()
void EmoteCome()
class EmoteThumb extends EmoteBase EmoteThumbDown()
void EmoteListening()
void EmoteClap()
void EmoteCampfireSit()
class EmoteDabbing extends EmoteBase EmoteFacepalm()
class EmoteCampfireSit extends EmoteBase EmoteSitA()
class EmoteCome extends EmoteBase EmoteSurrender()
proto string ToString()
bool ConstructEmotes(PlayerBase player, out map< int, ref EmoteBase > emoteMap)
void RegisterEmotes(TTypenameArray emotes)
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:693