]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/waypointsprites.qh
Merge remote-tracking branch 'origin/divVerent/crypto-fixes'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / waypointsprites.qh
1 #ifndef SERVER_WAYPOINTSPRITES_H
2 #define SERVER_WAYPOINTSPRITES_H
3
4 ..entity owned_by_field;
5 .float rule;
6 .string model1;
7 .string model2;
8 .string model3;
9
10 .float(entity) waypointsprite_visible_for_player;
11
12 void WaypointSprite_UpdateSprites(entity e, string m1, string m2, string m3);
13
14 void WaypointSprite_UpdateHealth(entity e, float f);
15
16 void WaypointSprite_UpdateMaxHealth(entity e, float f);
17
18 void WaypointSprite_UpdateBuildFinished(entity e, float f);
19
20 void WaypointSprite_UpdateOrigin(entity e, vector o);
21
22 void WaypointSprite_UpdateRule(entity e, float t, float r);
23
24 void WaypointSprite_UpdateTeamRadar(entity e, float icon, vector col);
25
26 .float waypointsprite_pingtime;
27 .float waypointsprite_helpmetime;
28 void WaypointSprite_Ping(entity e);
29
30 float waypointsprite_limitedrange, waypointsprite_deployed_lifetime, waypointsprite_deadlifetime;
31
32 void WaypointSprite_HelpMePing(entity e);
33
34 void WaypointSprite_FadeOutIn(entity e, float t);
35
36 void WaypointSprite_Init();
37 void WaypointSprite_InitClient(entity e);
38
39 void WaypointSprite_Kill(entity wp);
40
41 void WaypointSprite_Disown(entity wp, float fadetime);
42
43 void WaypointSprite_Think();
44
45 float WaypointSprite_visible_for_player(entity e);
46
47 entity WaypointSprite_getviewentity(entity e);
48
49 float WaypointSprite_isteammate(entity e, entity e2);
50
51 float WaypointSprite_Customize();
52
53 float WaypointSprite_SendEntity(entity to, float sendflags);
54
55 void WaypointSprite_Reset();
56
57 entity WaypointSprite_Spawn(
58         string spr, // sprite
59         float lifetime, float maxdistance, // lifetime, max distance
60         entity ref, vector ofs, // position
61         entity showto, float t, // show to whom? Use a flag to indicate a team
62         entity own, .entity ownfield, // remove when own gets killed
63         float hideable, // true when it should be controlled by cl_hidewaypoints
64         float icon, vector rgb // initial icon and color
65 );
66
67 entity WaypointSprite_SpawnFixed(
68         string spr,
69         vector ofs,
70         entity own,
71         .entity ownfield,
72         float icon, vector rgb // initial icon and color
73 );
74
75 .entity waypointsprite_deployed_fixed;
76 entity WaypointSprite_DeployFixed(
77         string spr,
78         float limited_range,
79         vector ofs,
80         float icon, vector rgb // initial icon and color
81 );
82
83 .entity waypointsprite_deployed_personal;
84 entity WaypointSprite_DeployPersonal(
85         string spr,
86         vector ofs,
87         float icon, vector rgb // initial icon and color
88 );
89
90 .entity waypointsprite_attached;
91 .entity waypointsprite_attachedforcarrier;
92 entity WaypointSprite_Attach(
93         string spr,
94         float limited_range,
95         float icon, vector rgb // initial icon and color
96 );
97
98 entity WaypointSprite_AttachCarrier(
99         string spr,
100         entity carrier,
101         float icon, vector rgb // initial icon and color
102 );
103
104 void WaypointSprite_DetachCarrier(entity carrier);
105
106 void WaypointSprite_ClearPersonal();
107
108 void WaypointSprite_ClearOwned();
109
110 void WaypointSprite_PlayerDead();
111
112 void WaypointSprite_PlayerGone();
113 #endif