Transifex autosync
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / net_linked.qh
1 #pragma once
2
3 REGISTER_NET_TEMP(TE_CSQC_PICTURE)
4 REGISTER_NET_TEMP(TE_CSQC_RACE)
5 REGISTER_NET_TEMP(TE_CSQC_TEAMNAGGER)
6 REGISTER_NET_TEMP(TE_CSQC_PINGPLREPORT)
7 REGISTER_NET_TEMP(TE_CSQC_WEAPONCOMPLAIN)
8 REGISTER_NET_TEMP(TE_CSQC_SERVERWELCOME)
9 REGISTER_NET_TEMP(TE_CSQC_VEHICLESETUP)
10
11 const int RACE_NET_CHECKPOINT_HIT_QUALIFYING = 0; // byte checkpoint, short time, short recordtime, string recordholder
12 const int RACE_NET_CHECKPOINT_CLEAR = 1;
13 const int RACE_NET_CHECKPOINT_NEXT_QUALIFYING = 2; // byte nextcheckpoint, short recordtime, string recordholder
14 const int RACE_NET_CHECKPOINT_HIT_RACE = 3; // byte checkpoint, short delta, byte lapsdelta, string opponent
15 const int RACE_NET_CHECKPOINT_HIT_RACE_BY_OPPONENT = 4; // byte checkpoint, short delta, byte lapsdelta, string opponent
16 const int RACE_NET_CHECKPOINT_NEXT_SPEC_QUALIFYING = 5; // byte nextcheckpoint, float laptime, short recordtime, string recordholder
17 const int RACE_NET_PENALTY_RACE = 6; // byte penaltytime, string reason
18 const int RACE_NET_PENALTY_QUALIFYING = 7; // byte penaltytime, string reason
19 const int RACE_NET_SERVER_RECORD = 8; // server record, sent to client
20 const int RACE_NET_SPEED_AWARD = 9; // speed award, sent to client
21 const int RACE_NET_SPEED_AWARD_BEST = 10; // all time best speed award, sent to client
22 const int RACE_NET_SERVER_RANKINGS = 11;
23 const int RACE_NET_SERVER_STATUS = 12;
24 const int RACE_NET_CHECKPOINT_HIT_SELF_QUALIFYING = 13; // byte checkpoint, short time, short recordtime
25 const int RACE_NET_CHECKPOINT_NEXT_SELF_QUALIFYING = 14; // byte nextcheckpoint, short recordtime
26 const int RACE_NET_RANKINGS_CNT = 15;
27
28 REGISTER_NET_LINKED(_ENT_CLIENT_INIT)
29 #ifdef CSQC
30 NET_HANDLE(_ENT_CLIENT_INIT, bool isnew) { make_pure(this); return true; }
31 #endif
32 /** Sent as a temp entity from a persistent linked entity */
33 REGISTER_NET_TEMP(ENT_CLIENT_INIT)
34
35 REGISTER_NET_LINKED(ENT_CLIENT_SCORES_INFO)
36 REGISTER_NET_LINKED(ENT_CLIENT_SCORES)
37 REGISTER_NET_LINKED(ENT_CLIENT_TEAMSCORES)
38 REGISTER_NET_LINKED(ENT_CLIENT_NAGGER) // flags [votecalledvote]
39 REGISTER_NET_LINKED(ENT_CLIENT_RADARLINK) // flags [startorigin] [endorigin] [startcolor+16*endcolor]
40 REGISTER_NET_LINKED(ENT_CLIENT_PROJECTILE)
41 REGISTER_NET_LINKED(ENT_CLIENT_MAPVOTE)
42 REGISTER_NET_LINKED(ENT_CLIENT_CLIENTDATA)
43 REGISTER_NET_LINKED(ENT_CLIENT_RANDOMSEED)
44 REGISTER_NET_LINKED(ENT_CLIENT_ACCURACY)
45 REGISTER_NET_LINKED(ENT_CLIENT_ELIMINATEDPLAYERS)
46
47 REGISTER_NET_LINKED(ENT_CLIENT_WARPZONE)
48 REGISTER_NET_LINKED(ENT_CLIENT_WARPZONE_CAMERA)
49 REGISTER_NET_LINKED(ENT_CLIENT_WARPZONE_TELEPORTED)
50
51 REGISTER_NET_LINKED(ENT_CLIENT_ARC_BEAM)
52 REGISTER_NET_LINKED(ENT_CLIENT_HOOK)
53 REGISTER_NET_LINKED(ENT_CLIENT_TUBANOTE)
54
55 REGISTER_NET_LINKED(ENT_CLIENT_SPAWNPOINT)
56 REGISTER_NET_LINKED(ENT_CLIENT_SPAWNEVENT)
57 REGISTER_NET_LINKED(ENT_CLIENT_WALL)
58
59 #include <lib/csqcmodel/net.qh>
60
61 REGISTER_NET_C2S(fpsreport)