VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
EventTypes.cpp
Go to the documentation of this file.
1// Generated by `voltmod framework eventgen` from the game's .gameevents files. Do not edit.
2
3#include <igameevents.h>
4
6#include <gametrace.h>
7#include <playerslot.h>
8#include <utility>
9
10namespace VoltMod
11{
12
13static_assert(std::to_underlying(HitGroup::Invalid) == HITGROUP_INVALID);
14static_assert(std::to_underlying(HitGroup::Generic) == HITGROUP_GENERIC);
15static_assert(std::to_underlying(HitGroup::Head) == HITGROUP_HEAD);
16static_assert(std::to_underlying(HitGroup::Chest) == HITGROUP_CHEST);
17static_assert(std::to_underlying(HitGroup::Stomach) == HITGROUP_STOMACH);
18static_assert(std::to_underlying(HitGroup::LeftArm) == HITGROUP_LEFTARM);
19static_assert(std::to_underlying(HitGroup::RightArm) == HITGROUP_RIGHTARM);
20static_assert(std::to_underlying(HitGroup::LeftLeg) == HITGROUP_LEFTLEG);
21static_assert(std::to_underlying(HitGroup::RightLeg) == HITGROUP_RIGHTLEG);
22static_assert(std::to_underlying(HitGroup::Neck) == HITGROUP_NECK);
23
25{
26 return {
27 .PlayerSlot = e.GetPlayerSlot("player").Get(),
28 .Achievement = e.GetInt("achievement"),
29 };
30}
31
33{
34 return {
35 .Achievement = e.GetInt("achievement"),
36 .Splitscreenplayer = e.GetInt("splitscreenplayer"),
37 };
38}
39
41{
42 return {
43 .AchievementName = e.GetString("achievement_name", ""),
44 .CurVal = e.GetInt("cur_val"),
45 .MaxVal = e.GetInt("max_val"),
46 };
47}
48
53
58
60{
61 return {
62 .Slot = e.GetPlayerSlot("userid").Get(),
63 .Bone = e.GetInt("bone"),
64 .PosX = e.GetInt("pos_x"),
65 .PosY = e.GetInt("pos_y"),
66 .PosZ = e.GetInt("pos_z"),
67 .AngX = e.GetInt("ang_x"),
68 .AngY = e.GetInt("ang_y"),
69 .AngZ = e.GetInt("ang_z"),
70 .StartX = e.GetInt("start_x"),
71 .StartY = e.GetInt("start_y"),
72 .StartZ = e.GetInt("start_z"),
73 .Hit = e.GetBool("hit"),
74 };
75}
76
78{
79 return {
80 .Slot = e.GetPlayerSlot("userid").Get(),
81 .PosX = e.GetFloat("pos_x"),
82 .PosY = e.GetFloat("pos_y"),
83 .PosZ = e.GetFloat("pos_z"),
84 };
85}
86
88{
89 return {
90 .Slot = e.GetPlayerSlot("userid").Get(),
91 .Item = e.GetString("item", ""),
92 .Index = e.GetInt("index"),
93 };
94}
95
97{
98 return {
99 .Slot = e.GetPlayerSlot("userid").Get(),
100 .Success = e.GetBool("success"),
101 };
102}
103
108
113
115{
116 return {
117 .Slot = e.GetPlayerSlot("userid").Get(),
118 };
119}
120
122{
123 return {
124 .Slot = e.GetPlayerSlot("userid").Get(),
125 .Site = e.GetInt("site"),
126 };
127}
128
130{
131 return {
132 .Entindex = e.GetInt("entindex"),
133 };
134}
135
137{
138 return {
139 .Slot = e.GetPlayerSlot("userid").Get(),
140 .Haskit = e.GetBool("haskit"),
141 };
142}
143
145{
146 return {
147 .Slot = e.GetPlayerSlot("userid").Get(),
148 .Site = e.GetInt("site"),
149 };
150}
151
153{
154 return {
155 .Slot = e.GetPlayerSlot("userid").Get(),
156 .Site = e.GetInt("site"),
157 .C4 = e.GetInt("c4"),
158 };
159}
160
162{
163 return {
164 .Slot = e.GetPlayerSlot("userid").Get(),
165 .Entindex = e.GetInt("entindex"),
166 };
167}
168
170{
171 return {
172 .Slot = e.GetPlayerSlot("userid").Get(),
173 .Site = e.GetInt("site"),
174 .C4 = e.GetInt("c4"),
175 };
176}
177
179{
180 return {};
181}
182
184{
185 return {
186 .Slot = e.GetPlayerSlot("userid").Get(),
187 .Site = e.GetInt("site"),
188 .C4 = e.GetInt("c4"),
189 };
190}
191
193{
194 return {
195 .Numadvanced = e.GetInt("numadvanced"),
196 .Numbronze = e.GetInt("numbronze"),
197 .Numsilver = e.GetInt("numsilver"),
198 .Numgold = e.GetInt("numgold"),
199 };
200}
201
203{
204 return {
205 .Slot = e.GetPlayerSlot("userid").Get(),
206 .BotidSlot = e.GetPlayerSlot("botid").Get(),
207 .P = e.GetFloat("p"),
208 .Y = e.GetFloat("y"),
209 .R = e.GetFloat("r"),
210 };
211}
212
214{
215 return {
216 .Entindex = e.GetInt("entindex"),
217 .Material = e.GetInt("material"),
218 };
219}
220
222{
223 return {
224 .Entindex = e.GetInt("entindex"),
225 };
226}
227
229{
230 return {
231 .Entindex = e.GetInt("entindex"),
232 .Material = e.GetInt("material"),
233 };
234}
235
237{
238 return {
239 .VictimSlot = e.GetPlayerSlot("victim").Get(),
240 .AttackerSlot = e.GetPlayerSlot("attacker").Get(),
241 .Distance = e.GetFloat("distance"),
242 .DamageDirX = e.GetFloat("damage_dir_x"),
243 .DamageDirY = e.GetFloat("damage_dir_y"),
244 .DamageDirZ = e.GetFloat("damage_dir_z"),
245 .NumPenetrations = e.GetInt("num_penetrations"),
246 .NoScope = e.GetBool("no_scope"),
247 .InAir = e.GetBool("in_air"),
248 .ShootAngX = e.GetFloat("shoot_ang_x"),
249 .ShootAngY = e.GetFloat("shoot_ang_y"),
250 .ShootAngZ = e.GetFloat("shoot_ang_z"),
251 .AimPunchX = e.GetFloat("aim_punch_x"),
252 .AimPunchY = e.GetFloat("aim_punch_y"),
253 .AimPunchZ = e.GetFloat("aim_punch_z"),
254 .AttackTickCount = e.GetInt("attack_tick_count"),
255 .AttackTickFrac = e.GetFloat("attack_tick_frac"),
256 .RenderTickCount = e.GetInt("render_tick_count"),
257 .RenderTickFrac = e.GetFloat("render_tick_frac"),
258 .InaccuracyTotal = e.GetFloat("inaccuracy_total"),
259 .InaccuracyMove = e.GetFloat("inaccuracy_move"),
260 .InaccuracyAir = e.GetFloat("inaccuracy_air"),
261 .RecoilIndex = e.GetFloat("recoil_index"),
262 .Type = e.GetInt("type"),
263 };
264}
265
267{
268 return {
269 .Slot = e.GetPlayerSlot("userid").Get(),
270 };
271}
272
274{
275 return {};
276}
277
279{
280 return {};
281}
282
284{
285 return {};
286}
287
289{
290 return {
291 .Global = e.GetBool("global"),
292 };
293}
294
299
304
306{
307 return {
308 .LessonName = e.GetString("lesson_name", ""),
309 };
310}
311
313{
314 return {
315 .Steamid = e.GetString("steamid", ""),
316 };
317}
318
323
328
333
335{
336 return {};
337}
338
340{
341 return {
342 .Next = e.GetBool("next"),
343 };
344}
345
350
355
360
362{
363 return {
364 .ShowTimerDefend = e.GetBool("show_timer_defend"),
365 .ShowTimerAttack = e.GetBool("show_timer_attack"),
366 .TimerTime = e.GetInt("timer_time"),
367 .FinalEvent = e.GetInt("final_event"),
368 .FunfactToken = e.GetString("funfact_token", ""),
369 .FunfactPlayerSlot = e.GetPlayerSlot("funfact_player").Get(),
370 .FunfactData1 = e.GetInt("funfact_data1"),
371 .FunfactData2 = e.GetInt("funfact_data2"),
372 .FunfactData3 = e.GetInt("funfact_data3"),
373 };
374}
375
377{
378 return {
379 .Slot = e.GetPlayerSlot("userid").Get(),
380 .Entityid = e.GetInt("entityid"),
381 .X = e.GetFloat("x"),
382 .Y = e.GetFloat("y"),
383 .Z = e.GetFloat("z"),
384 };
385}
386
388{
389 return {
390 .Slot = e.GetPlayerSlot("userid").Get(),
391 .Entityid = e.GetInt("entityid"),
392 .X = e.GetFloat("x"),
393 .Y = e.GetFloat("y"),
394 .Z = e.GetFloat("z"),
395 };
396}
397
399{
400 return {
401 .Entityid = e.GetInt("entityid"),
402 .X = e.GetFloat("x"),
403 .Y = e.GetFloat("y"),
404 .Z = e.GetFloat("z"),
405 };
406}
407
409{
410 return {
411 .Entityid = e.GetInt("entityid"),
412 };
413}
414
416{
417 return {
418 .Entityid = e.GetInt("entityid"),
419 .Slot = e.GetPlayerSlot("userid").Get(),
420 };
421}
422
424{
425 return {
426 .PlaybackTick = e.GetInt("playback_tick"),
427 .SkiptoTick = e.GetInt("skipto_tick"),
428 };
429}
430
432{
433 return {};
434}
435
437{
438 return {};
439}
440
442{
443 return {
444 .NewDifficulty = e.GetInt("newDifficulty"),
445 .OldDifficulty = e.GetInt("oldDifficulty"),
446 .StrDifficulty = e.GetString("strDifficulty", ""),
447 };
448}
449
451{
452 return {
453 .Time = e.GetInt("time"),
454 .Pos = e.GetInt("Pos"),
455 };
456}
457
459{
460 return {
461 .Entindex = e.GetInt("entindex"),
462 .Dmgstate = e.GetInt("dmgstate"),
463 };
464}
465
467{
468 return {
469 .Checkpoint = e.GetBool("checkpoint"),
470 };
471}
472
474{
475 return {
476 .Entindex = e.GetInt("entindex"),
477 };
478}
479
481{
482 return {
483 .Slot = e.GetPlayerSlot("userid").Get(),
484 .Entindex = e.GetInt("entindex"),
485 };
486}
487
489{
490 return {
491 .Entindex = e.GetInt("entindex"),
492 };
493}
494
496{
497 return {
498 .Slot = e.GetPlayerSlot("userid").Get(),
499 .Cargo = e.GetInt("cargo"),
500 };
501}
502
504{
505 return {
506 .Slot = e.GetPlayerSlot("userid").Get(),
507 .Cargo = e.GetInt("cargo"),
508 .Delivered = e.GetBool("delivered"),
509 };
510}
511
513{
514 return {
515 .Slot = e.GetPlayerSlot("userid").Get(),
516 .Priority = e.GetInt("priority"),
517 };
518}
519
521{
522 return {
523 .Slot = e.GetPlayerSlot("userid").Get(),
524 };
525}
526
531
536
538{
539 return {
540 .Slot = e.GetPlayerSlot("userid").Get(),
541 .Subject = e.GetInt("subject"),
542 .Type = e.GetString("type", ""),
543 };
544}
545
547{
548 return {
549 .Enable = e.GetBool("enable"),
550 };
551}
552
557
559{
560 return {
561 .Count = e.GetInt("count"),
562 .Slot1 = e.GetInt("slot1"),
563 .Slot2 = e.GetInt("slot2"),
564 .Slot3 = e.GetInt("slot3"),
565 .Slot4 = e.GetInt("slot4"),
566 .Slot5 = e.GetInt("slot5"),
567 .Slot6 = e.GetInt("slot6"),
568 .Slot7 = e.GetInt("slot7"),
569 .Slot8 = e.GetInt("slot8"),
570 .Slot9 = e.GetInt("slot9"),
571 .Slot10 = e.GetInt("slot10"),
572 };
573}
574
576{
577 return {
578 .Slot = e.GetPlayerSlot("userid").Get(),
579 .Hasbomb = e.GetBool("hasbomb"),
580 .Isplanted = e.GetBool("isplanted"),
581 };
582}
583
585{
586 return {
587 .Slot = e.GetPlayerSlot("userid").Get(),
588 .Canbuy = e.GetBool("canbuy"),
589 };
590}
591
593{
594 return {
595 .Slot = e.GetPlayerSlot("userid").Get(),
596 };
597}
598
600{
601 return {
602 .EntindexKilled = e.GetInt("entindex_killed"),
603 .EntindexAttacker = e.GetInt("entindex_attacker"),
604 .EntindexInflictor = e.GetInt("entindex_inflictor"),
605 .Damagebits = e.GetInt("damagebits"),
606 };
607}
608
610{
611 return {
612 .Slot = e.GetPlayerSlot("userid").Get(),
613 .Subject = e.GetInt("subject"),
614 .Classname = e.GetString("classname", ""),
615 .Entityname = e.GetString("entityname", ""),
616 };
617}
618
623
625{
626 return {
627 .Slot = e.GetPlayerSlot("userid").Get(),
628 .Hasbomb = e.GetBool("hasbomb"),
629 .Isplanted = e.GetBool("isplanted"),
630 };
631}
632
634{
635 return {
636 .Slot = e.GetPlayerSlot("userid").Get(),
637 .Canbuy = e.GetBool("canbuy"),
638 };
639}
640
642{
643 return {
644 .Slot = e.GetPlayerSlot("userid").Get(),
645 };
646}
647
649{
650 return {
651 .Rushes = e.GetInt("rushes"),
652 };
653}
654
656{
657 return {
658 .Global = e.GetBool("global"),
659 };
660}
661
663{
664 return {
665 .Entindex = e.GetInt("entindex"),
666 };
667}
668
670{
671 return {
672 .Slot = e.GetPlayerSlot("userid").Get(),
673 .Entityid = e.GetInt("entityid"),
674 .X = e.GetFloat("x"),
675 .Y = e.GetFloat("y"),
676 .Z = e.GetFloat("z"),
677 };
678}
679
681{
682 return {
683 .Winner = e.GetInt("winner"),
684 };
685}
686
688{
689 return {};
690}
691
693{
694 return {
695 .Target = e.GetInt("target"),
696 .Text = e.GetString("text", ""),
697 };
698}
699
701{
702 return {
703 .Mapname = e.GetString("mapname", ""),
704 };
705}
706
708{
709 return {
710 .NewPhase = e.GetInt("new_phase"),
711 };
712}
713
715{
716 return {
717 .Roundslimit = e.GetInt("roundslimit"),
718 .Timelimit = e.GetInt("timelimit"),
719 .Fraglimit = e.GetInt("fraglimit"),
720 .Objective = e.GetString("objective", ""),
721 };
722}
723
728
733
735{
736 return {};
737}
738
740{
741 return {};
742}
743
745{
746 return {
747 .VictimidSlot = e.GetPlayerSlot("victimid").Get(),
748 .AttackeridSlot = e.GetPlayerSlot("attackerid").Get(),
749 .Dominated = e.GetInt("dominated"),
750 .Revenge = e.GetInt("revenge"),
751 .Bonus = e.GetBool("bonus"),
752 };
753}
754
756{
757 return {
758 .Slot = e.GetPlayerSlot("userid").Get(),
759 };
760}
761
763{
764 return {
765 .Slot = e.GetPlayerSlot("userid").Get(),
766 .Weapon = e.GetString("weapon", ""),
767 };
768}
769
774
776{
777 return {
778 .Slot = e.GetPlayerSlot("userid").Get(),
779 .Entityid = e.GetInt("entityid"),
780 .X = e.GetFloat("x"),
781 .Y = e.GetFloat("y"),
782 .Z = e.GetFloat("z"),
783 };
784}
785
790
795
797{
798 return {
799 .Slot = e.GetPlayerSlot("userid").Get(),
800 };
801}
802
804{
805 return {
806 .Oldmode = e.GetInt("oldmode"),
807 .Newmode = e.GetInt("newmode"),
808 .ObsTarget = e.GetInt("obs_target"),
809 };
810}
811
813{
814 return {
815 .Target1Slot = e.GetPlayerSlot("target1").Get(),
816 .Target2Slot = e.GetPlayerSlot("target2").Get(),
817 .Distance = e.GetInt("distance"),
818 .Theta = e.GetInt("theta"),
819 .Phi = e.GetInt("phi"),
820 .Inertia = e.GetInt("inertia"),
821 .Ineye = e.GetInt("ineye"),
822 };
823}
824
826{
827 return {
828 .Text = e.GetString("text", ""),
829 .SteamID = e.GetUint64("steamID"),
830 };
831}
832
834{
835 return {
836 .Posx = e.GetInt("posx"),
837 .Posy = e.GetInt("posy"),
838 .Posz = e.GetInt("posz"),
839 .Theta = e.GetInt("theta"),
840 .Phi = e.GetInt("phi"),
841 .Offset = e.GetInt("offset"),
842 .Fov = e.GetFloat("fov"),
843 .TargetSlot = e.GetPlayerSlot("target").Get(),
844 };
845}
846
848{
849 return {
850 .Text = e.GetString("text", ""),
851 };
852}
853
855{
856 return {
857 .Index = e.GetInt("index"),
858 .Rank = e.GetFloat("rank"),
859 .TargetSlot = e.GetPlayerSlot("target").Get(),
860 };
861}
862
864{
865 return {
866 .Slot = e.GetPlayerSlot("userid").Get(),
867 .Rank = e.GetFloat("rank"),
868 .TargetSlot = e.GetPlayerSlot("target").Get(),
869 };
870}
871
873{
874 return {
875 .Delay = e.GetInt("delay"),
876 .Reason = e.GetInt("reason"),
877 };
878}
879
881{
882 return {
883 .Reason = e.GetInt("reason"),
884 };
885}
886
888{
889 return {
890 .Clients = e.GetInt("clients"),
891 .Slots = e.GetInt("slots"),
892 .Proxies = e.GetInt("proxies"),
893 .Master = e.GetString("master", ""),
894 };
895}
896
898{
899 return {
900 .Text = e.GetString("text", ""),
901 };
902}
903
905{
906 return {
907 .Version = e.GetInt("version"),
908 };
909}
910
912{
913 return {
914 .Hostage = e.GetInt("hostage"),
915 };
916}
917
919{
920 return {
921 .Slot = e.GetPlayerSlot("userid").Get(),
922 .Hostage = e.GetInt("hostage"),
923 };
924}
925
927{
928 return {
929 .Slot = e.GetPlayerSlot("userid").Get(),
930 .Hostage = e.GetInt("hostage"),
931 };
932}
933
935{
936 return {
937 .Slot = e.GetPlayerSlot("userid").Get(),
938 .Hostage = e.GetInt("hostage"),
939 };
940}
941
943{
944 return {
945 .Slot = e.GetPlayerSlot("userid").Get(),
946 .Hostage = e.GetInt("hostage"),
947 .Site = e.GetInt("site"),
948 };
949}
950
955
957{
958 return {
959 .Slot = e.GetPlayerSlot("userid").Get(),
960 .Hostage = e.GetInt("hostage"),
961 };
962}
963
965{
966 return {
967 .Hostname = e.GetString("hostname", ""),
968 };
969}
970
972{
973 return {
974 .Entityid = e.GetInt("entityid"),
975 .X = e.GetFloat("x"),
976 .Y = e.GetFloat("y"),
977 .Z = e.GetFloat("z"),
978 };
979}
980
982{
983 return {
984 .Entityid = e.GetInt("entityid"),
985 .X = e.GetFloat("x"),
986 .Y = e.GetFloat("y"),
987 .Z = e.GetFloat("z"),
988 };
989}
990
992{
993 return {
994 .Entityid = e.GetInt("entityid"),
995 .X = e.GetFloat("x"),
996 .Y = e.GetFloat("y"),
997 .Z = e.GetFloat("z"),
998 };
999}
1000
1002{
1003 return {
1004 .Slot = e.GetPlayerSlot("userid").Get(),
1005 };
1006}
1007
1009{
1010 return {
1011 .Slot = e.GetPlayerSlot("userid").Get(),
1012 .HintName = e.GetString("hint_name", ""),
1013 };
1014}
1015
1017{
1018 return {
1019 .Slot = e.GetPlayerSlot("userid").Get(),
1020 .HintName = e.GetString("hint_name", ""),
1021 .HintReplaceKey = e.GetString("hint_replace_key", ""),
1022 .HintTarget = e.GetInt("hint_target"),
1023 .HintActivatorUseridSlot = e.GetPlayerSlot("hint_activator_userid").Get(),
1024 .HintTimeout = e.GetInt("hint_timeout"),
1025 .HintIconOnscreen = e.GetString("hint_icon_onscreen", ""),
1026 .HintIconOffscreen = e.GetString("hint_icon_offscreen", ""),
1027 .HintCaption = e.GetString("hint_caption", ""),
1028 .HintActivatorCaption = e.GetString("hint_activator_caption", ""),
1029 .HintColor = e.GetString("hint_color", ""),
1030 .HintIconOffset = e.GetFloat("hint_icon_offset"),
1031 .HintRange = e.GetFloat("hint_range"),
1032 .HintFlags = e.GetInt("hint_flags"),
1033 .HintBinding = e.GetString("hint_binding", ""),
1034 .HintGamepadBinding = e.GetString("hint_gamepad_binding", ""),
1035 .HintAllowNodrawTarget = e.GetBool("hint_allow_nodraw_target"),
1036 .HintNooffscreen = e.GetBool("hint_nooffscreen"),
1037 .HintForcecaption = e.GetBool("hint_forcecaption"),
1038 .HintLocalPlayerOnly = e.GetBool("hint_local_player_only"),
1039 };
1040}
1041
1043{
1044 return {
1045 .HintName = e.GetString("hint_name", ""),
1046 };
1047}
1048
1050{
1051 return {
1052 .Slot = e.GetPlayerSlot("userid").Get(),
1053 .HintName = e.GetString("hint_name", ""),
1054 .HintTarget = e.GetInt("hint_target"),
1055 .VrMovementType = e.GetInt("vr_movement_type"),
1056 .VrSingleController = e.GetBool("vr_single_controller"),
1057 .VrControllerType = e.GetInt("vr_controller_type"),
1058 };
1059}
1060
1065
1067{
1068 return {
1069 .Slot = e.GetPlayerSlot("userid").Get(),
1070 .Item = e.GetString("item", ""),
1071 .Defindex = e.GetInt("defindex"),
1072 .Canzoom = e.GetBool("canzoom"),
1073 .Hassilencer = e.GetBool("hassilencer"),
1074 .Issilenced = e.GetBool("issilenced"),
1075 .Hastracers = e.GetBool("hastracers"),
1076 .Weptype = e.GetInt("weptype"),
1077 .Ispainted = e.GetBool("ispainted"),
1078 };
1079}
1080
1082{
1083 return {
1084 .Slot = e.GetPlayerSlot("userid").Get(),
1085 .Item = e.GetString("item", ""),
1086 .Silent = e.GetBool("silent"),
1087 .Defindex = e.GetInt("defindex"),
1088 };
1089}
1090
1092{
1093 return {
1094 .Slot = e.GetPlayerSlot("userid").Get(),
1095 .Item = e.GetString("item", ""),
1096 .Reason = e.GetInt("reason"),
1097 .Limit = e.GetInt("limit"),
1098 };
1099}
1100
1102{
1103 return {
1104 .Slot = e.GetPlayerSlot("userid").Get(),
1105 .Index = e.GetInt("index"),
1106 .Behavior = e.GetInt("behavior"),
1107 };
1108}
1109
1111{
1112 return {
1113 .Slot = e.GetPlayerSlot("userid").Get(),
1114 .Team = static_cast<VoltMod::Team>(e.GetInt("team")),
1115 .Loadout = e.GetInt("loadout"),
1116 .Weapon = e.GetString("weapon", ""),
1117 };
1118}
1119
1121{
1122 return {
1123 .Slot = e.GetPlayerSlot("userid").Get(),
1124 .Item = e.GetString("item", ""),
1125 .Defindex = e.GetInt("defindex"),
1126 };
1127}
1128
1133
1135{
1136 return {
1137 .Slot = e.GetPlayerSlot("userid").Get(),
1138 .Reason = e.GetInt("reason"),
1139 };
1140}
1141
1146
1151
1156
1158{
1159 return {
1160 .Slot = e.GetPlayerSlot("userid").Get(),
1161 .Type = e.GetString("type", ""),
1162 };
1163}
1164
1166{
1167 return {
1168 .Slot = e.GetPlayerSlot("userid").Get(),
1169 .Subject = e.GetInt("subject"),
1170 .Type = e.GetString("type", ""),
1171 };
1172}
1173
1175{
1176 return {};
1177}
1178
1180{
1181 return {};
1182}
1183
1185{
1186 return {
1187 .Frags = e.GetInt("frags"),
1188 .MaxRounds = e.GetInt("max_rounds"),
1189 .WinRounds = e.GetInt("win_rounds"),
1190 .Time = e.GetInt("time"),
1191 };
1192}
1193
1198
1203
1208
1210{
1211 return {
1212 .Slot = e.GetPlayerSlot("userid").Get(),
1213 .X = e.GetFloat("x"),
1214 .Y = e.GetFloat("y"),
1215 .Z = e.GetFloat("z"),
1216 };
1217}
1218
1220{
1221 return {
1222 .Area = e.GetInt("area"),
1223 .Blocked = e.GetBool("blocked"),
1224 };
1225}
1226
1228{
1229 return {};
1230}
1231
1233{
1234 return {
1235 .Nextlevel = e.GetString("nextlevel", ""),
1236 .Mapgroup = e.GetString("mapgroup", ""),
1237 .Skirmishmode = e.GetString("skirmishmode", ""),
1238 };
1239}
1240
1242{
1243 return {
1244 .Slot = e.GetPlayerSlot("userid").Get(),
1245 .Subject = e.GetInt("subject"),
1246 .Type = e.GetString("type", ""),
1247 };
1248}
1249
1251{
1252 return {
1253 .Otherid = e.GetInt("otherid"),
1254 .Othertype = e.GetString("othertype", ""),
1255 .Attacker = e.GetInt("attacker"),
1256 .Weapon = e.GetString("weapon", ""),
1257 .WeaponItemid = e.GetString("weapon_itemid", ""),
1258 .WeaponFauxitemid = e.GetString("weapon_fauxitemid", ""),
1259 .WeaponOriginalownerXuid = e.GetString("weapon_originalowner_xuid", ""),
1260 .Headshot = e.GetBool("headshot"),
1261 .Penetrated = e.GetInt("penetrated"),
1262 .Noscope = e.GetBool("noscope"),
1263 .Thrusmoke = e.GetBool("thrusmoke"),
1264 .Attackerblind = e.GetBool("attackerblind"),
1265 };
1266}
1267
1269{
1270 return {
1271 .Slot = e.GetPlayerSlot("userid").Get(),
1272 };
1273}
1274
1276{
1277 return {
1278 .Slot = e.GetPlayerSlot("userid").Get(),
1279 };
1280}
1281
1283{
1284 return {};
1285}
1286
1288{
1289 return {
1290 .Slot = e.GetPlayerSlot("userid").Get(),
1291 };
1292}
1293
1295{
1296 return {
1297 .AvengerIdSlot = e.GetPlayerSlot("avenger_id").Get(),
1298 .AvengedPlayerIdSlot = e.GetPlayerSlot("avenged_player_id").Get(),
1299 };
1300}
1301
1303{
1304 return {
1305 .Slot = e.GetPlayerSlot("userid").Get(),
1306 .AttackerSlot = e.GetPlayerSlot("attacker").Get(),
1307 .Entityid = e.GetInt("entityid"),
1308 .BlindDuration = e.GetFloat("blind_duration"),
1309 };
1310}
1311
1313{
1314 return {
1315 .Slot = e.GetPlayerSlot("userid").Get(),
1316 .Oldname = e.GetString("oldname", ""),
1317 .Newname = e.GetString("newname", ""),
1318 };
1319}
1320
1322{
1323 return {
1324 .Teamonly = e.GetBool("teamonly"),
1325 .Userid = e.GetInt("userid"),
1326 .Text = e.GetString("text", ""),
1327 };
1328}
1329
1331{
1332 return {
1333 .Name = e.GetString("name", ""),
1334 .Slot = e.GetPlayerSlot("userid").Get(),
1335 .Networkid = e.GetString("networkid", ""),
1336 .Xuid = e.GetUint64("xuid"),
1337 .Bot = e.GetBool("bot"),
1338 };
1339}
1340
1342{
1343 return {
1344 .Slot = e.GetPlayerSlot("userid").Get(),
1345 };
1346}
1347
1349{
1350 return {
1351 .Slot = e.GetPlayerSlot("userid").Get(),
1352 .AttackerSlot = e.GetPlayerSlot("attacker").Get(),
1353 .AssisterSlot = e.GetPlayerSlot("assister").Get(),
1354 .Assistedflash = e.GetBool("assistedflash"),
1355 .Weapon = e.GetString("weapon", ""),
1356 .WeaponItemid = e.GetString("weapon_itemid", ""),
1357 .WeaponFauxitemid = e.GetString("weapon_fauxitemid", ""),
1358 .WeaponOriginalownerXuid = e.GetString("weapon_originalowner_xuid", ""),
1359 .Headshot = e.GetBool("headshot"),
1360 .Dominated = e.GetInt("dominated"),
1361 .Revenge = e.GetInt("revenge"),
1362 .Wipe = e.GetInt("wipe"),
1363 .Penetrated = e.GetInt("penetrated"),
1364 .Noreplay = e.GetBool("noreplay"),
1365 .Noscope = e.GetBool("noscope"),
1366 .Thrusmoke = e.GetBool("thrusmoke"),
1367 .Attackerblind = e.GetBool("attackerblind"),
1368 .Distance = e.GetFloat("distance"),
1369 .DmgHealth = e.GetInt("dmg_health"),
1370 .DmgArmor = e.GetInt("dmg_armor"),
1371 .Hitgroup = static_cast<VoltMod::HitGroup>(e.GetInt("hitgroup")),
1372 .Attackerinair = e.GetBool("attackerinair"),
1373 };
1374}
1375
1377{
1378 return {};
1379}
1380
1382{
1383 return {
1384 .Slot = e.GetPlayerSlot("userid").Get(),
1385 .Reason = e.GetInt("reason"),
1386 .Name = e.GetString("name", ""),
1387 .Networkid = e.GetString("networkid", ""),
1388 .Xuid = e.GetUint64("xuid"),
1389 .PlayerID = e.GetInt("PlayerID"),
1390 .EverFullyConnected = e.GetBool("ever_fully_connected"),
1391 };
1392}
1393
1395{
1396 return {
1397 .Slot = e.GetPlayerSlot("userid").Get(),
1398 .Damage = e.GetFloat("damage"),
1399 };
1400}
1401
1403{
1404 return {
1405 .Slot = e.GetPlayerSlot("userid").Get(),
1406 };
1407}
1408
1410{
1411 return {
1412 .Slot = e.GetPlayerSlot("userid").Get(),
1413 .Count = e.GetInt("count"),
1414 };
1415}
1416
1418{
1419 return {
1420 .Slot = e.GetPlayerSlot("userid").Get(),
1421 };
1422}
1423
1425{
1426 return {
1427 .Hintmessage = e.GetString("hintmessage", ""),
1428 };
1429}
1430
1432{
1433 return {
1434 .Slot = e.GetPlayerSlot("userid").Get(),
1435 .AttackerSlot = e.GetPlayerSlot("attacker").Get(),
1436 .Health = e.GetInt("health"),
1437 .Armor = e.GetInt("armor"),
1438 .Weapon = e.GetString("weapon", ""),
1439 .DmgHealth = e.GetInt("dmg_health"),
1440 .DmgArmor = e.GetInt("dmg_armor"),
1441 .Hitgroup = static_cast<VoltMod::HitGroup>(e.GetInt("hitgroup")),
1442 };
1443}
1444
1446{
1447 return {
1448 .Name = e.GetString("name", ""),
1449 .Slot = e.GetPlayerSlot("userid").Get(),
1450 .Steamid = e.GetUint64("steamid"),
1451 .Bot = e.GetBool("bot"),
1452 };
1453}
1454
1456{
1457 return {
1458 .Slot = e.GetPlayerSlot("userid").Get(),
1459 };
1460}
1461
1463{
1464 return {
1465 .Slot = e.GetPlayerSlot("userid").Get(),
1466 .Entityid = e.GetInt("entityid"),
1467 .X = e.GetFloat("x"),
1468 .Y = e.GetFloat("y"),
1469 .Z = e.GetFloat("z"),
1470 .Urgent = e.GetBool("urgent"),
1471 };
1472}
1473
1475{
1476 return {
1477 .Entityid = e.GetInt("entityid"),
1478 };
1479}
1480
1482{
1483 return {
1484 .Slot = e.GetPlayerSlot("userid").Get(),
1485 };
1486}
1487
1489{
1490 return {
1491 .Slot = e.GetPlayerSlot("userid").Get(),
1492 .Vote = e.GetBool("vote"),
1493 };
1494}
1495
1497{
1498 return {
1499 .Slot = e.GetPlayerSlot("userid").Get(),
1500 .Kills = e.GetInt("kills"),
1501 .Deaths = e.GetInt("deaths"),
1502 .Score = e.GetInt("score"),
1503 };
1504}
1505
1507{
1508 return {
1509 .Slot = e.GetPlayerSlot("userid").Get(),
1510 .Weapon = e.GetInt("weapon"),
1511 .Mode = e.GetInt("mode"),
1512 };
1513}
1514
1516{
1517 return {
1518 .Slot = e.GetPlayerSlot("userid").Get(),
1519 .Radius = e.GetInt("radius"),
1520 .Duration = e.GetFloat("duration"),
1521 .Step = e.GetBool("step"),
1522 };
1523}
1524
1526{
1527 return {
1528 .Slot = e.GetPlayerSlot("userid").Get(),
1529 };
1530}
1531
1533{
1534 return {
1535 .Slot = e.GetPlayerSlot("userid").Get(),
1536 .Inrestart = e.GetBool("inrestart"),
1537 };
1538}
1539
1541{
1542 return {
1543 .Forceupload = e.GetBool("forceupload"),
1544 };
1545}
1546
1548{
1549 return {
1550 .Slot = e.GetPlayerSlot("userid").Get(),
1551 .Team = static_cast<VoltMod::Team>(e.GetInt("team")),
1552 .Oldteam = static_cast<VoltMod::Team>(e.GetInt("oldteam")),
1553 .Disconnect = e.GetBool("disconnect"),
1554 .Silent = e.GetBool("silent"),
1555 .Isbot = e.GetBool("isbot"),
1556 };
1557}
1558
1560{
1561 return {
1562 .Entindex = e.GetInt("entindex"),
1563 };
1564}
1565
1567{
1568 return {
1569 .ControllerId = e.GetInt("controllerId"),
1570 };
1571}
1572
1574{
1575 return {
1576 .Splitscreenplayer = e.GetInt("splitscreenplayer"),
1577 };
1578}
1579
1581{
1582 return {
1583 .ControllerId = e.GetInt("controllerId"),
1584 };
1585}
1586
1591
1596
1601
1606
1611
1613{
1614 return {
1615 .Winner = e.GetInt("winner"),
1616 .Reason = e.GetInt("reason"),
1617 .Message = e.GetString("message", ""),
1618 .Legacy = e.GetInt("legacy"),
1619 .PlayerCount = e.GetInt("player_count"),
1620 .Nomusic = e.GetInt("nomusic"),
1621 };
1622}
1623
1628
1630{
1631 return {};
1632}
1633
1635{
1636 return {
1637 .Slot = e.GetPlayerSlot("userid").Get(),
1638 .Reason = e.GetInt("reason"),
1639 .Value = e.GetInt("value"),
1640 .Musickitmvps = e.GetInt("musickitmvps"),
1641 .Nomusic = e.GetInt("nomusic"),
1642 .Musickitid = e.GetInt("musickitid"),
1643 };
1644}
1645
1650
1652{
1653 return {};
1654}
1655
1657{
1658 return {};
1659}
1660
1662{
1663 return {
1664 .Timelimit = e.GetInt("timelimit"),
1665 .Fraglimit = e.GetInt("fraglimit"),
1666 .Objective = e.GetString("objective", ""),
1667 };
1668}
1669
1674
1679
1684
1686{
1687 return {
1688 .Slot = e.GetPlayerSlot("userid").Get(),
1689 .Category = e.GetInt("category"),
1690 .Rank = e.GetInt("rank"),
1691 };
1692}
1693
1695{
1696 return {
1697 .Cvarname = e.GetString("cvarname", ""),
1698 .Cvarvalue = e.GetString("cvarvalue", ""),
1699 };
1700}
1701
1703{
1704 return {
1705 .Text = e.GetString("text", ""),
1706 };
1707}
1708
1710{
1711 return {
1712 .Reason = e.GetString("reason", ""),
1713 };
1714}
1715
1717{
1718 return {
1719 .Reason = e.GetString("reason", ""),
1720 };
1721}
1722
1724{
1725 return {
1726 .Hostname = e.GetString("hostname", ""),
1727 .Address = e.GetString("address", ""),
1728 .Port = e.GetInt("port"),
1729 .Game = e.GetString("game", ""),
1730 .Mapname = e.GetString("mapname", ""),
1731 .Addonname = e.GetString("addonname", ""),
1732 .Maxplayers = e.GetInt("maxplayers"),
1733 .Os = e.GetString("os", ""),
1734 .Dedicated = e.GetBool("dedicated"),
1735 .Password = e.GetBool("password"),
1736 };
1737}
1738
1740{
1741 return {
1742 .Group = e.GetString("group", ""),
1743 .Enabled = e.GetInt("enabled"),
1744 };
1745}
1746
1748{
1749 return {
1750 .Action = e.GetString("action", ""),
1751 .Data = e.GetString("data", ""),
1752 .Slot = e.GetInt("slot"),
1753 };
1754}
1755
1757{
1758 return {
1759 .VictimSlot = e.GetPlayerSlot("victim").Get(),
1760 .KillerControllerSlot = e.GetPlayerSlot("killer_controller").Get(),
1761 .HitsTaken = e.GetInt("hits_taken"),
1762 .DamageTaken = e.GetInt("damage_taken"),
1763 .HitsGiven = e.GetInt("hits_given"),
1764 .DamageGiven = e.GetInt("damage_given"),
1765 };
1766}
1767
1769{
1770 return {
1771 .LocToken = e.GetString("loc_token", ""),
1772 .Duration = e.GetInt("duration"),
1773 .Slot = e.GetPlayerSlot("userid").Get(),
1774 };
1775}
1776
1778{
1779 return {
1780 .Slot = e.GetPlayerSlot("userid").Get(),
1781 };
1782}
1783
1785{
1786 return {
1787 .Slot = e.GetPlayerSlot("userid").Get(),
1788 };
1789}
1790
1792{
1793 return {
1794 .Slot = e.GetPlayerSlot("userid").Get(),
1795 };
1796}
1797
1799{
1800 return {
1801 .Slot = e.GetPlayerSlot("userid").Get(),
1802 .Paradrop = e.GetInt("paradrop"),
1803 };
1804}
1805
1807{
1808 return {
1809 .Slot = e.GetPlayerSlot("userid").Get(),
1810 .Entityid = e.GetInt("entityid"),
1811 .X = e.GetFloat("x"),
1812 .Y = e.GetFloat("y"),
1813 .Z = e.GetFloat("z"),
1814 };
1815}
1816
1818{
1819 return {
1820 .Slot = e.GetPlayerSlot("userid").Get(),
1821 .Entityid = e.GetInt("entityid"),
1822 .X = e.GetFloat("x"),
1823 .Y = e.GetFloat("y"),
1824 .Z = e.GetFloat("z"),
1825 };
1826}
1827
1829{
1830 return {
1831 .Slot = e.GetPlayerSlot("userid").Get(),
1832 };
1833}
1834
1836{
1837 return {
1838 .Slot = e.GetPlayerSlot("userid").Get(),
1839 };
1840}
1841
1843{
1844 return {};
1845}
1846
1848{
1849 return {
1850 .Slot = e.GetPlayerSlot("userid").Get(),
1851 .Type = e.GetInt("type"),
1852 .VoteParameter = e.GetInt("vote_parameter"),
1853 };
1854}
1855
1860
1862{
1863 return {
1864 .Phase = e.GetInt("phase"),
1865 };
1866}
1867
1869{
1870 return {
1871 .Slot = e.GetPlayerSlot("userid").Get(),
1872 };
1873}
1874
1876{
1877 return {
1878 .Slot = e.GetPlayerSlot("userid").Get(),
1879 };
1880}
1881
1883{
1884 return {
1885 .Entityid = e.GetInt("entityid"),
1886 };
1887}
1888
1890{
1891 return {
1892 .Entityid = e.GetInt("entityid"),
1893 };
1894}
1895
1897{
1898 return {
1899 .Slot = e.GetPlayerSlot("userid").Get(),
1900 };
1901}
1902
1904{
1905 return {
1906 .NumPlayers = e.GetInt("numPlayers"),
1907 .NumSpectators = e.GetInt("numSpectators"),
1908 .AvgRank = e.GetInt("avg_rank"),
1909 .NumTSlotsFree = e.GetInt("numTSlotsFree"),
1910 .NumCTSlotsFree = e.GetInt("numCTSlotsFree"),
1911 };
1912}
1913
1915{
1916 return {
1917 .Slot = e.GetPlayerSlot("userid").Get(),
1918 .Entityid = e.GetInt("entityid"),
1919 .X = e.GetFloat("x"),
1920 .Y = e.GetFloat("y"),
1921 .Z = e.GetFloat("z"),
1922 };
1923}
1924
1926{
1927 return {
1928 .Teamid = e.GetInt("teamid"),
1929 .Teamname = e.GetString("teamname", ""),
1930 };
1931}
1932
1934{
1935 return {};
1936}
1937
1939{
1940 return {};
1941}
1942
1944{
1945 return {
1946 .Teamid = e.GetInt("teamid"),
1947 .Score = e.GetInt("score"),
1948 };
1949}
1950
1952{
1953 return {
1954 .Slot = e.GetPlayerSlot("userid").Get(),
1955 .Toteam = e.GetInt("toteam"),
1956 };
1957}
1958
1960{
1961 return {
1962 .Team = static_cast<VoltMod::Team>(e.GetInt("team")),
1963 .Sound = e.GetString("sound", ""),
1964 };
1965}
1966
1968{
1969 return {
1970 .FullReset = e.GetBool("full_reset"),
1971 };
1972}
1973
1975{
1976 return {
1977 .Defindex = e.GetInt("defindex"),
1978 .Totalrewards = e.GetInt("totalrewards"),
1979 .Accountid = e.GetInt("accountid"),
1980 };
1981}
1982
1984{
1985 return {
1986 .Slot = e.GetPlayerSlot("userid").Get(),
1987 };
1988}
1989
1991{
1992 return {
1993 .Hcontent = e.GetUint64("hcontent"),
1994 };
1995}
1996
1998{
1999 return {
2000 .Hcontent = e.GetUint64("hcontent"),
2001 .PublishedFileId = e.GetUint64("published_file_id"),
2002 };
2003}
2004
2006{
2007 return {
2008 .PublishedFileId = e.GetUint64("published_file_id"),
2009 .ErrorCode = e.GetInt("error_code"),
2010 };
2011}
2012
2014{
2015 return {
2016 .PublishedFileId = e.GetUint64("published_file_id"),
2017 };
2018}
2019
2021{
2022 return {
2023 .PublishedFileId = e.GetUint64("published_file_id"),
2024 };
2025}
2026
2031
2036
2038{
2039 return {
2040 .Slot = e.GetPlayerSlot("userid").Get(),
2041 };
2042}
2043
2045{
2046 return {
2047 .Slot = e.GetPlayerSlot("userid").Get(),
2048 .AttackerSlot = e.GetPlayerSlot("attacker").Get(),
2049 };
2050}
2051
2053{
2054 return {
2055 .VoteOption = e.GetInt("vote_option"),
2056 .Team = static_cast<VoltMod::Team>(e.GetInt("team")),
2057 .Slot = e.GetPlayerSlot("userid").Get(),
2058 };
2059}
2060
2062{
2063 return {
2064 .Team = static_cast<VoltMod::Team>(e.GetInt("team")),
2065 .Entityid = e.GetInt("entityid"),
2066 };
2067}
2068
2070{
2071 return {
2072 .Team = static_cast<VoltMod::Team>(e.GetInt("team")),
2073 .Entityid = e.GetInt("entityid"),
2074 };
2075}
2076
2078{
2079 return {
2080 .VoteOption1 = e.GetInt("vote_option1"),
2081 .VoteOption2 = e.GetInt("vote_option2"),
2082 .VoteOption3 = e.GetInt("vote_option3"),
2083 .VoteOption4 = e.GetInt("vote_option4"),
2084 .VoteOption5 = e.GetInt("vote_option5"),
2085 .PotentialVotes = e.GetInt("potentialVotes"),
2086 };
2087}
2088
2090{
2091 return {};
2092}
2093
2095{
2096 return {
2097 .Team = static_cast<VoltMod::Team>(e.GetInt("team")),
2098 };
2099}
2100
2102{
2103 return {
2104 .Count = e.GetInt("count"),
2105 .Option1 = e.GetString("option1", ""),
2106 .Option2 = e.GetString("option2", ""),
2107 .Option3 = e.GetString("option3", ""),
2108 .Option4 = e.GetString("option4", ""),
2109 .Option5 = e.GetString("option5", ""),
2110 };
2111}
2112
2114{
2115 return {
2116 .Details = e.GetString("details", ""),
2117 .Param1 = e.GetString("param1", ""),
2118 .Team = static_cast<VoltMod::Team>(e.GetInt("team")),
2119 };
2120}
2121
2123{
2124 return {
2125 .Issue = e.GetString("issue", ""),
2126 .Param1 = e.GetString("param1", ""),
2127 .Team = static_cast<VoltMod::Team>(e.GetInt("team")),
2128 .Initiator = e.GetInt("initiator"),
2129 };
2130}
2131
2133{
2134 return {};
2135}
2136
2138{
2139 return {
2140 .Slot = e.GetPlayerSlot("userid").Get(),
2141 .Weapon = e.GetString("weapon", ""),
2142 .Silenced = e.GetBool("silenced"),
2143 };
2144}
2145
2147{
2148 return {
2149 .Slot = e.GetPlayerSlot("userid").Get(),
2150 .Weapon = e.GetString("weapon", ""),
2151 };
2152}
2153
2155{
2156 return {
2157 .Slot = e.GetPlayerSlot("userid").Get(),
2158 };
2159}
2160
2162{
2163 return {
2164 .Slot = e.GetPlayerSlot("userid").Get(),
2165 };
2166}
2167
2169{
2170 return {
2171 .Slot = e.GetPlayerSlot("userid").Get(),
2172 };
2173}
2174
2176{
2177 return {
2178 .Slot = e.GetPlayerSlot("userid").Get(),
2179 .Mode = e.GetInt("mode"),
2180 .Entindex = e.GetInt("entindex"),
2181 };
2182}
2183
2185{
2186 return {
2187 .ControllerId = e.GetInt("controllerId"),
2188 };
2189}
2190
2195
2196} // namespace VoltMod
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
static AchievementEarnedLocal From(IGameEvent &e)
int PlayerSlot
entindex of the player
static AchievementEarned From(IGameEvent &e)
static AchievementEvent From(IGameEvent &e)
std::string AchievementName
non-localized name of achievement
static AchievementInfoLoaded From(IGameEvent &e)
static AchievementWriteFailed From(IGameEvent &e)
static AddBulletHitMarker From(IGameEvent &e)
static AddPlayerSonarIcon From(IGameEvent &e)
static AmmoPickup From(IGameEvent &e)
static AmmoRefill From(IGameEvent &e)
static AnnouncePhaseEnd From(IGameEvent &e)
static BeginNewMatch From(IGameEvent &e)
int Slot
player who was defusing
static BombAbortdefuse From(IGameEvent &e)
int Slot
player who is planting the bomb
static BombAbortplant From(IGameEvent &e)
int Entindex
c4 entity
static BombBeep From(IGameEvent &e)
int Slot
player who is defusing
static BombBegindefuse From(IGameEvent &e)
static BombBeginplant From(IGameEvent &e)
int Slot
player who is planting the bomb
int Slot
player who defused the bomb
static BombDefused From(IGameEvent &e)
int Slot
player who dropped the bomb
static BombDropped From(IGameEvent &e)
static BombExploded From(IGameEvent &e)
int Slot
player who planted the bomb
static BombPickup From(IGameEvent &e)
static BombPlanted From(IGameEvent &e)
int Slot
player who planted the bomb
static BonusUpdated From(IGameEvent &e)
static BotTakeover From(IGameEvent &e)
static BreakBreakable From(IGameEvent &e)
static BreakProp From(IGameEvent &e)
static BrokenBreakable From(IGameEvent &e)
static BulletDamage From(IGameEvent &e)
int VictimSlot
player index who was hurt
static BuymenuClose From(IGameEvent &e)
static BuymenuOpen From(IGameEvent &e)
static BuytimeEnded From(IGameEvent &e)
static CartUpdated From(IGameEvent &e)
static ChoppersIncomingWarning From(IGameEvent &e)
static ClientDisconnect From(IGameEvent &e)
static ClientLoadoutChanged From(IGameEvent &e)
static ClientsideLessonClosed From(IGameEvent &e)
static ClientsideReloadCustomEcon From(IGameEvent &e)
static CsGameDisconnected From(IGameEvent &e)
static CsIntermission From(IGameEvent &e)
static CsMatchEndRestart From(IGameEvent &e)
static CsPreRestart From(IGameEvent &e)
static CsPrevNextSpectator From(IGameEvent &e)
static CsRoundFinalBeep From(IGameEvent &e)
static CsRoundStartBeep From(IGameEvent &e)
static CsWinPanelMatch From(IGameEvent &e)
static CsWinPanelRound From(IGameEvent &e)
static DecoyDetonate From(IGameEvent &e)
static DecoyFiring From(IGameEvent &e)
static DecoyStarted From(IGameEvent &e)
static DefuserDropped From(IGameEvent &e)
int Entityid
defuser's entity ID
static DefuserPickup From(IGameEvent &e)
int Entityid
defuser's entity ID
static DemoSkip From(IGameEvent &e)
int PlaybackTick
current playback tick
static DemoStart From(IGameEvent &e)
static DemoStop From(IGameEvent &e)
static DifficultyChanged From(IGameEvent &e)
static DmBonusWeaponStart From(IGameEvent &e)
int Time
The length of time that this bonus lasts.
static DoorBreak From(IGameEvent &e)
bool Checkpoint
Is the door a checkpoint door.
static DoorClose From(IGameEvent &e)
static DoorClosed From(IGameEvent &e)
static DoorMoving From(IGameEvent &e)
static DoorOpen From(IGameEvent &e)
static DroneAboveRoof From(IGameEvent &e)
static DroneCargoDetached From(IGameEvent &e)
static DroneDispatched From(IGameEvent &e)
static DronegunAttack From(IGameEvent &e)
static DropRateModified From(IGameEvent &e)
static DynamicShadowLightChanged From(IGameEvent &e)
static DzItemInteraction From(IGameEvent &e)
int Slot
player entindex
static EnableRestartVoting From(IGameEvent &e)
static EndmatchCmmStartRevealItems From(IGameEvent &e)
static EndmatchMapvoteSelectingMap From(IGameEvent &e)
static EnterBombzone From(IGameEvent &e)
static EnterBuyzone From(IGameEvent &e)
static EnterRescueZone From(IGameEvent &e)
static EntityKilled From(IGameEvent &e)
static EntityVisible From(IGameEvent &e)
int Slot
The player who sees the entity.
static EventTicketModified From(IGameEvent &e)
static ExitBombzone From(IGameEvent &e)
static ExitBuyzone From(IGameEvent &e)
static ExitRescueZone From(IGameEvent &e)
static FinaleStart From(IGameEvent &e)
static FirstbombsIncomingWarning From(IGameEvent &e)
int Entindex
entity ignited
static FlareIgniteNpc From(IGameEvent &e)
static FlashbangDetonate From(IGameEvent &e)
static GameEnd From(IGameEvent &e)
int Winner
winner team/user id
static GameInit From(IGameEvent &e)
int Target
0 = console, 1 = HUD
static GameMessage From(IGameEvent &e)
static GameNewmap From(IGameEvent &e)
std::string Mapname
map name
static GamePhaseChanged From(IGameEvent &e)
static GameStart From(IGameEvent &e)
int Roundslimit
max round
static GameinstructorDraw From(IGameEvent &e)
static GameinstructorNodraw From(IGameEvent &e)
static GameuiHidden From(IGameEvent &e)
static GcConnected From(IGameEvent &e)
static GgKilledEnemy From(IGameEvent &e)
int VictimidSlot
user ID who died
static GrenadeBounce From(IGameEvent &e)
static GrenadeThrown From(IGameEvent &e)
static GuardianWaveRestart From(IGameEvent &e)
static HegrenadeDetonate From(IGameEvent &e)
static HelicopterGrenadePuntMiss From(IGameEvent &e)
static HideDeathpanel From(IGameEvent &e)
int Slot
camera man entity index
static HltvCameraman From(IGameEvent &e)
static HltvChangedMode From(IGameEvent &e)
static HltvChase From(IGameEvent &e)
int Target1Slot
primary traget index
static HltvChat From(IGameEvent &e)
static HltvFixed From(IGameEvent &e)
int Posx
camera position in world
static HltvMessage From(IGameEvent &e)
static HltvRankCamera From(IGameEvent &e)
int Index
fixed camera index
static HltvRankEntity From(IGameEvent &e)
int Reason
reason for hltv replay status change ()
static HltvReplayStatus From(IGameEvent &e)
int Delay
number of seconds in killer replay delay
static HltvReplay From(IGameEvent &e)
static HltvStatus From(IGameEvent &e)
int Clients
number of HLTV spectators
static HltvTitle From(IGameEvent &e)
static HltvVersioninfo From(IGameEvent &e)
static HostageCallForHelp From(IGameEvent &e)
int Hostage
hostage entity index
static HostageFollows From(IGameEvent &e)
int Slot
player who touched the hostage
static HostageHurt From(IGameEvent &e)
int Slot
player who hurt the hostage
static HostageKilled From(IGameEvent &e)
int Slot
player who killed the hostage
static HostageRescuedAll From(IGameEvent &e)
int Slot
player who rescued the hostage
static HostageRescued From(IGameEvent &e)
int Slot
player who rescued the hostage
static HostageStopsFollowing From(IGameEvent &e)
static HostnameChanged From(IGameEvent &e)
static InfernoExpire From(IGameEvent &e)
static InfernoExtinguish From(IGameEvent &e)
static InfernoStartburn From(IGameEvent &e)
static InspectWeapon From(IGameEvent &e)
int Slot
The player who this lesson is intended for.
static InstructorCloseLesson From(IGameEvent &e)
int Slot
user ID of the player that triggered the hint
static InstructorServerHintCreate From(IGameEvent &e)
std::string HintName
The hint to stop. Will stop ALL hints with this name.
static InstructorServerHintStop From(IGameEvent &e)
int Slot
The player who this lesson is intended for.
static InstructorStartLesson From(IGameEvent &e)
static InventoryUpdated From(IGameEvent &e)
static ItemEquip From(IGameEvent &e)
static ItemPickupFailed From(IGameEvent &e)
static ItemPickupSlerp From(IGameEvent &e)
static ItemPickup From(IGameEvent &e)
static ItemPurchase From(IGameEvent &e)
static ItemRemove From(IGameEvent &e)
static ItemSchemaInitialized From(IGameEvent &e)
static JointeamFailed From(IGameEvent &e)
static LocalPlayerControllerTeam From(IGameEvent &e)
static LocalPlayerPawnChanged From(IGameEvent &e)
static LocalPlayerTeam From(IGameEvent &e)
static LootCrateOpened From(IGameEvent &e)
int Slot
player entindex
int Slot
player entindex
static LootCrateVisible From(IGameEvent &e)
static MapShutdown From(IGameEvent &e)
static MapTransition From(IGameEvent &e)
static MatchEndConditions From(IGameEvent &e)
static MaterialDefaultComplete From(IGameEvent &e)
static MbInputLockCancel From(IGameEvent &e)
static MbInputLockSuccess From(IGameEvent &e)
static MolotovDetonate From(IGameEvent &e)
static NavBlocked From(IGameEvent &e)
static NavGenerate From(IGameEvent &e)
static NextlevelChanged From(IGameEvent &e)
static OpenCrateInstr From(IGameEvent &e)
int Slot
player entindex
int Otherid
other entity ID who died
static OtherDeath From(IGameEvent &e)
static ParachuteDeploy From(IGameEvent &e)
static ParachutePickup From(IGameEvent &e)
static PhysgunPickup From(IGameEvent &e)
static PlayerActivate From(IGameEvent &e)
int Slot
user ID on server
static PlayerAvengedTeammate From(IGameEvent &e)
static PlayerBlind From(IGameEvent &e)
static PlayerChangename From(IGameEvent &e)
int Slot
user ID on server
static PlayerChat From(IGameEvent &e)
bool Teamonly
true if team only chat
int Slot
user ID on server (unique on server)
static PlayerConnectFull From(IGameEvent &e)
std::string Name
player name
static PlayerConnect From(IGameEvent &e)
bool Attackerinair
attacker was in midair
int Slot
user who died
static PlayerDeath From(IGameEvent &e)
static PlayerDecal From(IGameEvent &e)
static PlayerDisconnect From(IGameEvent &e)
int Slot
user ID on server
static PlayerFalldamage From(IGameEvent &e)
static PlayerFootstep From(IGameEvent &e)
int Slot
user ID on server
static PlayerFullUpdate From(IGameEvent &e)
static PlayerGivenC4 From(IGameEvent &e)
int Slot
user ID who received the c4
static PlayerHintmessage From(IGameEvent &e)
std::string Hintmessage
localizable string of a hint
int Slot
player index who was hurt
static PlayerHurt From(IGameEvent &e)
static PlayerInfo From(IGameEvent &e)
std::string Name
player name
static PlayerJump From(IGameEvent &e)
static PlayerPingStop From(IGameEvent &e)
static PlayerPing From(IGameEvent &e)
static PlayerRadio From(IGameEvent &e)
static PlayerResetVote From(IGameEvent &e)
static PlayerScore From(IGameEvent &e)
int Slot
user ID on server
int Slot
user ID on server
static PlayerShoot From(IGameEvent &e)
static PlayerSound From(IGameEvent &e)
static PlayerSpawn From(IGameEvent &e)
static PlayerSpawned From(IGameEvent &e)
static PlayerStatsUpdated From(IGameEvent &e)
static PlayerTeam From(IGameEvent &e)
bool Disconnect
team change because player disconnects
VoltMod::Team Oldteam
old team id
static RagdollDissolved From(IGameEvent &e)
static ReadGameTitledata From(IGameEvent &e)
int ControllerId
Controller id of user.
int Splitscreenplayer
splitscreen ID
static RepostXboxAchievements From(IGameEvent &e)
static ResetGameTitledata From(IGameEvent &e)
int ControllerId
Controller id of user.
static RoundAnnounceFinal From(IGameEvent &e)
static RoundAnnounceLastRoundHalf From(IGameEvent &e)
static RoundAnnounceMatchPoint From(IGameEvent &e)
static RoundAnnounceMatchStart From(IGameEvent &e)
static RoundAnnounceWarmup From(IGameEvent &e)
static RoundEndUploadStats From(IGameEvent &e)
int Winner
winner team/user i
static RoundEnd From(IGameEvent &e)
static RoundFreezeEnd From(IGameEvent &e)
static RoundMvp From(IGameEvent &e)
static RoundOfficiallyEnded From(IGameEvent &e)
static RoundPoststart From(IGameEvent &e)
static RoundPrestart From(IGameEvent &e)
static RoundStartPostNav From(IGameEvent &e)
static RoundStartPreEntity From(IGameEvent &e)
int Timelimit
round time limit in seconds
static RoundStart From(IGameEvent &e)
static RoundTimeWarning From(IGameEvent &e)
static SeasoncoinLevelup From(IGameEvent &e)
std::string Cvarname
cvar name, eg "mp_roundtime"
static ServerCvar From(IGameEvent &e)
static ServerMessage From(IGameEvent &e)
std::string Text
the message text
std::string Reason
reason why server is about to be shut down
static ServerPreShutdown From(IGameEvent &e)
static ServerShutdown From(IGameEvent &e)
std::string Reason
reason why server was shut down
std::string Hostname
public host name
static ServerSpawn From(IGameEvent &e)
static SetInstructorGroupEnabled From(IGameEvent &e)
static Sfuievent From(IGameEvent &e)
int VictimSlot
endindex of the one who was killed
static ShowDeathpanel From(IGameEvent &e)
static ShowSurvivalRespawnStatus From(IGameEvent &e)
static SilencerDetach From(IGameEvent &e)
static SilencerOff From(IGameEvent &e)
static SilencerOn From(IGameEvent &e)
static SmokeBeaconParadrop From(IGameEvent &e)
static SmokegrenadeDetonate From(IGameEvent &e)
static SmokegrenadeExpired From(IGameEvent &e)
int Slot
entindex of the player
static SpecModeUpdated From(IGameEvent &e)
static SpecTargetUpdated From(IGameEvent &e)
int Slot
spectating player
static StartHalftime From(IGameEvent &e)
static StartVote From(IGameEvent &e)
static StorePricesheetUpdated From(IGameEvent &e)
static SurvivalAnnouncePhase From(IGameEvent &e)
static SurvivalNoRespawnsFinal From(IGameEvent &e)
static SurvivalNoRespawnsWarning From(IGameEvent &e)
static SurvivalParadropBreak From(IGameEvent &e)
static SurvivalParadropSpawn From(IGameEvent &e)
static SurvivalTeammateRespawn From(IGameEvent &e)
static SwitchTeam From(IGameEvent &e)
int NumPlayers
number of active players on both T and CT
static TagrenadeDetonate From(IGameEvent &e)
static TeamInfo From(IGameEvent &e)
int Teamid
unique team id
static TeamIntroEnd From(IGameEvent &e)
static TeamIntroStart From(IGameEvent &e)
static TeamScore From(IGameEvent &e)
static TeamchangePending From(IGameEvent &e)
static TeamplayBroadcastAudio From(IGameEvent &e)
VoltMod::Team Team
unique team id
std::string Sound
name of the sound to emit
bool FullReset
is this a full reset of the map
static TeamplayRoundStart From(IGameEvent &e)
static TournamentReward From(IGameEvent &e)
int Slot
player whose time has expired
static TrialTimeExpired From(IGameEvent &e)
static UgcFileDownloadFinished From(IGameEvent &e)
uint64_t Hcontent
id of this specific content (may be image or map)
static UgcFileDownloadStart From(IGameEvent &e)
uint64_t Hcontent
id of this specific content (may be image or map)
static UgcMapDownloadError From(IGameEvent &e)
static UgcMapInfoReceived From(IGameEvent &e)
static UgcMapUnsubscribed From(IGameEvent &e)
static UpdateMatchmakingStats From(IGameEvent &e)
static UserDataDownloaded From(IGameEvent &e)
int Slot
player who was the VIP
static VipEscaped From(IGameEvent &e)
int Slot
player who was the VIP
static VipKilled From(IGameEvent &e)
int Entityid
entity id of the voter
static VoteCastNo From(IGameEvent &e)
int Entityid
entity id of the voter
static VoteCastYes From(IGameEvent &e)
static VoteCast From(IGameEvent &e)
int Slot
player who voted
int VoteOption
which option the player voted on
static VoteChanged From(IGameEvent &e)
static VoteEnded From(IGameEvent &e)
static VoteFailed From(IGameEvent &e)
int Count
Number of options - up to MAX_VOTE_OPTIONS.
static VoteOptions From(IGameEvent &e)
static VotePassed From(IGameEvent &e)
static VoteStarted From(IGameEvent &e)
int Initiator
entity id of the player who initiated the vote
static WarmupEnd From(IGameEvent &e)
static WeaponFireOnEmpty From(IGameEvent &e)
static WeaponFire From(IGameEvent &e)
static WeaponReload From(IGameEvent &e)
static WeaponZoomRifle From(IGameEvent &e)
static WeaponZoom From(IGameEvent &e)
static WeaponhudSelection From(IGameEvent &e)
int Slot
Player who this event applies to.
static WriteGameTitledata From(IGameEvent &e)
int ControllerId
Controller id of user.
static WriteProfileData From(IGameEvent &e)