#include "utils.qh"
#include <server/intermission.qh>
+//#include <common/resources/resources.qh>
#include <common/replicate.qh>
#include <common/sounds/all.qh>
string autocvar_g_mutatormsg;
float autocvar_sv_foginterval;
float autocvar_sv_maxidle;
-bool autocvar_sv_maxidle_spectatorsareidle;
+int autocvar_sv_maxidle_minplayers = 2;
+float autocvar_sv_maxidle_playertospectator = 60;
+bool autocvar_sv_maxidle_alsokickspectators;
int autocvar_sv_maxidle_slots;
bool autocvar_sv_maxidle_slots_countbots;
bool autocvar_g_forced_respawn;
ATTRIB(Player, dual_weapons, vector, this.dual_weapons); // TODO: actually WepSet!
ATTRIB(Player, itemkeys, int, this.itemkeys);
ATTRIB(Player, ballistics_density, float, this.ballistics_density);
- ATTRIB(Player, prevstrengthsound, float, this.prevstrengthsound);
- ATTRIB(Player, prevstrengthsoundattempt, float, this.prevstrengthsoundattempt);
- ATTRIB(Player, buff_shield, float, this.buff_shield);
INIT(Player) {
this.classname = STR_PLAYER;
int nJoinAllowed(entity this, entity ignore);
-void checkSpectatorBlock(entity this);
-
void PlayerUseKey(entity this);
void FixClientCvars(entity e);
STATIC_INIT(g_initforplayer) { g_initforplayer = IL_NEW(); }
void play_countdown(entity this, float finished, Sound samp);
+void player_powerups_remove_all(entity this);
-void RotRegen(entity this, float current, float regenstable, float regenfactor, float regenlinear, float regenframetime, float rotstable, float rotfactor, float rotlinear, float rotframetime, float limit_mod);
+// NOTE: current type is Resource (avoiding circular includes!)
+void RotRegen(entity this, entity current, float limit_mod,
+ float regenstable, float regenfactor, float regenlinear, float regenframetime,
+ float rotstable, float rotfactor, float rotlinear, float rotframetime);
bool Spectate(entity this, entity pl);
void ClientInit_Spawn();
-void PutObserverInServer(entity this);
+void PutObserverInServer(entity this, bool is_forced);
void SetSpectatee(entity this, entity spectatee);
void SetSpectatee_status(entity this, int spectatee_num);