X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2FDefs.qc;h=d65c517a300fdf5a48a8beeb86d001c978317b6f;hb=d15a2b33681ddfeb3d734846505fd55339ac4054;hp=a1a32404dd48ec7d57bdeb83eca8b624433f58fd;hpb=1c62f7a27b54573d6f25a6b936026c549df2c6ef;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/Defs.qc b/qcsrc/client/Defs.qc index a1a32404d..d65c517a3 100644 --- a/qcsrc/client/Defs.qc +++ b/qcsrc/client/Defs.qc @@ -1,6 +1,3 @@ -#pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed - - //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT. //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS. //YOU HAVE BEEN WARNED. @@ -28,7 +25,7 @@ entity world; float time; float frametime; -float player_localentnum; //the entnum +float player_localentnum; //the entnum of the VIEW entity float player_localnum; //the playernum float maxclients; //a constant filled in by the engine. gah, portability eh? @@ -238,6 +235,9 @@ float servertime, serverprevtime, serverdeltatime; float ticrate; .float damageforcescale; +#define MIN_DAMAGEEXTRARADIUS 2 +#define MAX_DAMAGEEXTRARADIUS 16 +.float damageextraradius; .void(float thisdmg, float hittype, vector org, vector thisforce) event_damage; // only for Porto @@ -268,3 +268,9 @@ float nex_charge_movingavg; float serverflags; float uid2name_dialog; + +.float csqcmodel_isdead; // used by shownames and miscfunctions (float getplayerisdead(float) {}) to know when a player is dead + +#define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1) + +float g_balance_porto_secondary;