]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/cl_player.qh
Purge self from event_damage
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_player.qh
1 #ifndef CL_PLAYER_H
2 #define CL_PLAYER_H
3
4 .entity pusher;
5 .float pushltime;
6 .float istypefrag;
7
8 .float CopyBody_nextthink;
9 .void() CopyBody_think;
10 void CopyBody_Think();
11 void CopyBody(float keepvelocity);
12
13 void player_setupanimsformodel();
14
15 void player_anim();
16
17 void PlayerCorpseDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force);
18
19 // g_<gametype>_str:
20 // If 0, default is used.
21 // If <0, 0 is used.
22 // Otherwise, g_str (default value) is used.
23 // For consistency, negative values there are mapped to zero too.
24 #define GAMETYPE_DEFAULTED_SETTING(str) \
25         ((gametype_setting_tmp = cvar(strcat("g_", GetGametype(), "_" #str))), \
26         (gametype_setting_tmp < 0) ? 0 \
27         : (gametype_setting_tmp == 0 || autocvar_g_respawn_delay_forced) ? max(0, autocvar_g_##str) \
28         : gametype_setting_tmp)
29
30 void calculate_player_respawn_time(entity this);
31
32 void ClientKill_Now_TeamChange(entity this);
33
34 void MoveToTeam(entity client, float team_colour, float type);
35
36 void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force);
37
38 /** to be used by `prvm_edictset server playernumber muted 1` */
39 .float muted;
40 int Say(entity source, float teamsay, entity privatesay, string msgin, float floodcontrol);
41
42 #endif