X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=6b626a74eb09f117ae914469dfca92f935111ecb;hp=4c3b1d221ea4ae73be7f0ff7cc7b7ed5d7b9000f;hb=b945d959784e5b249c66aea4f3326d8ae048f1cd;hpb=04692f3bf447ec38a1bbb0a330c288bbe7a42726 diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 4c3b1d221e..6b626a74eb 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -1,6 +1,5 @@ #pragma once -float warmup_limit; #include #include @@ -139,7 +138,8 @@ void checkSpectatorBlock(entity this); float game_completion_ratio; // 0 at start, 1 near end .float winning; -.float jointime; // time of joining +.float jointime; // time of connecting +.float startplaytime; // time of switching from spectator to player .float alivetime; // time of being alive .float motd_actived_time; // used for both motd and campaign_message @@ -222,6 +222,8 @@ int have_team_spawns_forteams; // if Xth bit is 1 then team X has spawns else it // set when showing a kill countdown .entity killindicator; +.bool canteamdamage; + void Damage (entity targ, entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force); float lockteams; @@ -368,6 +370,7 @@ const float ACTIVE_TOGGLE = 3; .float revive_progress = _STAT(REVIVE_PROGRESS); .float revival_time; // time at which player was last revived .float revive_speed; // NOTE: multiplier (anything above 1 is instaheal) +.float freeze_time; .entity iceblock; .entity frozen_by; // for ice fields @@ -376,6 +379,8 @@ const float ACTIVE_TOGGLE = 3; .float stat_respawn_time = _STAT(RESPAWN_TIME); // shows respawn time, and is negative when awaiting respawn +.int killindicator_teamchange; + void PlayerUseKey(entity this); USING(spawn_evalfunc_t, vector(entity this, entity player, entity spot, vector current));