]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/cl_player.qh
Merge branch 'master' into terencehill/weapon_panel_fix
[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(void) CopyBody_think;
10 void CopyBody_Think(void);
11 void CopyBody(float keepvelocity);
12
13 float player_getspecies();
14
15 void player_setupanimsformodel();
16
17 void player_anim (void);
18
19 void PlayerCorpseDamage (entity inflictor, entity attacker, float damage, float deathtype, vector hitloc, vector force);
20
21 // g_<gametype>_str:
22 // If 0, default is used.
23 // If <0, 0 is used.
24 // Otherwise, g_str (default value) is used.
25 // For consistency, negative values there are mapped to zero too.
26 #define GAMETYPE_DEFAULTED_SETTING(str) \
27         ((gametype_setting_tmp = cvar(strcat("g_", GetGametype(), "_" #str))), \
28          (gametype_setting_tmp < 0) ? 0 : \
29          (gametype_setting_tmp == 0) ? max(0, autocvar_g_##str) : \
30          gametype_setting_tmp)
31
32
33 void calculate_player_respawn_time();
34
35 void ClientKill_Now_TeamChange();
36
37 void PlayerDamage (entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force);
38
39 .float muted; // to be used by prvm_edictset server playernumber muted 1
40 float Say(entity source, float teamsay, entity privatesay, string msgin, float floodcontrol);
41 // message "": do not say, just test flood control
42 // return value:
43 //   1 = accept
44 //   0 = reject
45 //  -1 = fake accept
46
47 float GetVoiceMessageVoiceType(string type);
48
49 string allvoicesamples;
50 .string GetVoiceMessageSampleField(string type);
51
52 .string GetPlayerSoundSampleField(string type);
53
54 void PrecacheGlobalSound(string samplestring);
55
56 void PrecachePlayerSounds(string f);
57
58 void ClearPlayerSounds();
59
60 float LoadPlayerSounds(string f, float first);
61
62 .int modelindex_for_playersound;
63 .int skin_for_playersound;
64 void UpdatePlayerSounds();
65
66 void FakeGlobalSound(string sample, float chan, float voicetype);
67
68 void GlobalSound(string sample, float chan, float voicetype);
69
70 void PlayerSound(.string samplefield, float chan, float voicetype);
71
72 void VoiceMessage(string type, string msg);
73
74 void MoveToTeam(entity client, float team_colour, float type);
75 #endif