-#ifndef SERVER_DEFS_H
-#define SERVER_DEFS_H
+#pragma once
-#include "../common/weapons/all.qh"
-#include "../common/stats.qh"
+float warmup_limit;
+#include <common/weapons/all.qh>
+#include <common/stats.qh>
#define INDEPENDENT_ATTACK_FINISHED 1
-#define BUTTON_ATCK button0
-#define BUTTON_JUMP button2
-#define BUTTON_ATCK2 button3
-#define BUTTON_ZOOM button4
-#define BUTTON_CROUCH button5
-#define BUTTON_HOOK button6
-#define BUTTON_INFO button7
-#define BUTTON_CHAT buttonchat
-#define BUTTON_USE buttonuse
-#define BUTTON_DRAG button8
-#define BUTTON_ZOOMSCRIPT button9
-#define BUTTON_JETPACK button10
-
// Globals
float g_footsteps, g_grappling_hook, g_instagib;
-float g_warmup_limit;
float g_warmup_allguns;
float g_warmup_allow_timeout;
float warmup_stage;
// Fields
-.void(entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force) event_damage;
+.void(entity this, entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force) event_damage;
//.string wad;
//.string map;
.float scheduledrespawntime;
.float respawntime;
.float respawntimejitter;
+.float respawntimestart;
//.float chasecam;
.float damageforcescale;
.float alivetime; // time of being alive
.float motd_actived_time; // used for both motd and campaign_message
-float nJoinAllowed(entity ignore);
+bool nJoinAllowed(entity this, entity ignore);
.float spawnshieldtime;
.float item_spawnshieldtime;
.entity flagcarried;
.int playerid;
-float playerid_last;
.float noalign; // if set to 1, the item or spawnpoint won't be dropped to the floor
.vector death_origin;
string deathmessage;
-.float just_joined;
+.bool just_joined;
.float cvar_cl_weaponimpulsemode;
.float selectweapon; // last selected weapon of the player
void PlayerUseKey();
-typedef vector(entity player, entity spot, vector current) spawn_evalfunc_t;
+USING(spawn_evalfunc_t, vector(entity player, entity spot, vector current));
.spawn_evalfunc_t spawn_evalfunc;
string modname;
.float init_for_player_needed;
.void(entity) init_for_player;
-
-#endif