X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fplayer.qh;h=c22ea86463e3b10d46d6727fd83dd53e29d58a9b;hb=dd714ffac6b09917fcff8a0f449ea4e347e01ec0;hp=1c38a9fbebf3012b1d87029e26659457d7548a1c;hpb=70bba988cd32922d29e40235db6ad1d8149bdc67;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/player.qh b/qcsrc/server/player.qh index 1c38a9fbe..c22ea8646 100644 --- a/qcsrc/server/player.qh +++ b/qcsrc/server/player.qh @@ -1,8 +1,28 @@ #pragma once +float autocvar_g_spawnshieldtime; +float autocvar_g_spawnshield_blockdamage; +bool autocvar_sv_precacheplayermodels; +bool autocvar_sv_defaultcharacter; +bool autocvar_sv_defaultcharacterskin; +int autocvar_sv_defaultplayerskin_blue; +int autocvar_sv_defaultplayerskin_pink; +int autocvar_sv_defaultplayerskin_red; +int autocvar_sv_defaultplayerskin_yellow; +string autocvar_sv_defaultplayercolors; +string autocvar_sv_defaultplayermodel; +string autocvar_sv_defaultplayermodel_blue; +string autocvar_sv_defaultplayermodel_pink; +string autocvar_sv_defaultplayermodel_red; +string autocvar_sv_defaultplayermodel_yellow; +int autocvar_sv_defaultplayerskin; +float autocvar_sv_gibhealth; + .entity pusher; .float pushltime; -.float istypefrag; +.bool istypefrag; + +.float death_time; .float CopyBody_nextthink; .void(entity this) CopyBody_think; @@ -15,23 +35,11 @@ void player_anim(entity this); void PlayerCorpseDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force); -// g__str: -// If 0, default is used. -// If <0, 0 is used. -// Otherwise, g_str (default value) is used. -// For consistency, negative values there are mapped to zero too. -#define GAMETYPE_DEFAULTED_SETTING(str) \ - ((gametype_setting_tmp = cvar(strcat("g_", GetGametype(), "_" #str))), \ - (gametype_setting_tmp < 0) ? 0 \ - : (gametype_setting_tmp == 0 || autocvar_g_respawn_delay_forced) ? max(0, autocvar_g_##str) \ - : gametype_setting_tmp) - -void calculate_player_respawn_time(entity this); - -void ClientKill_Now_TeamChange(entity this); - void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force); bool PlayerHeal(entity targ, entity inflictor, float amount, float limit); -int Say(entity source, float teamsay, entity privatesay, string msgin, float floodcontrol); +void precache_all_playermodels(string pattern); + +IntrusiveList g_clones; +STATIC_INIT(g_clones) { g_clones = IL_NEW(); }