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