X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=data%2Fqcsrc%2Fserver%2Fdefs.qh;h=6871a58495c6b48a7716b90617d382ae61b4139b;hb=07eb71508b30944a3608716998047a97f67a94c1;hp=b0143575a030f1c248396ddb7efb3a287d626702;hpb=3c344811f2558a51041374ffe7d9771e3d57547a;p=voretournament%2Fvoretournament.git diff --git a/data/qcsrc/server/defs.qh b/data/qcsrc/server/defs.qh index b0143575..6871a584 100644 --- a/data/qcsrc/server/defs.qh +++ b/data/qcsrc/server/defs.qh @@ -67,11 +67,13 @@ float maxclients; .entity predator; .entity fakepredator; +.float swallow_progress_prey, swallow_progress_pred; .float digesting; -.float stomach_load; +.float stomach_load, stomach_maxload; .float weapon_delay; .float fakeprey; -.float stat_eaten, stat_stomachload, stat_digesting, stat_canleave; +.float stat_eaten, stat_stomachload, stat_stomachmaxload, stat_digesting, stat_canleave, stat_canswallow; +.float dropweapon_check; // Fields @@ -213,6 +215,7 @@ void setanim(entity e, vector anim, float looping, float override, float restart .entity weaponentity; .entity exteriorweaponentity; +.vector weaponentity_glowmod; .float switchweapon; .float autoswitch; float weapon_action(float wpn, float wrequest); @@ -244,6 +247,7 @@ float WR_PRECACHE = 6; // precaches models/sounds used by this weapon float WR_SUICIDEMESSAGE = 7; // sets w_deathtypestring or leaves it alone (and may inspect w_deathtype for details) float WR_KILLMESSAGE = 8; // sets w_deathtypestring or leaves it alone float WR_RESETPLAYER = 9; // does not need to do anything +float WR_RELOAD = 10; // used for reloading void weapon_defaultspawnfunc(float wpn); @@ -293,6 +297,7 @@ float timeoutStatus; // (values: 0, 1, 2) contains whether a timeout is not acti entity timeoutInitiator; // contains the entity of the player who started the last timeout float orig_slowmo; // contains the value of cvar("slowmo") so that, after timeout finished, it isn't set to slowmo 1 necessarily .vector lastV_angle; //used when pausing the game in order to force the player to keep his old view angle fixed +.vector leanangle_damage_loc, leanangle_damage_force; // used for leaning the player model entity timeoutHandler; //responsible for centerprinting the timeout countdowns and playing sounds void timeoutHandler_Think(); void evaluateTimeout(); @@ -306,8 +311,6 @@ string getTimeoutText(float addOneSecond); .entity flagcarried; -.entity lastrocket; - .float playerid; float playerid_last; .float noalign; // if set to 1, the item or spawnpoint won't be dropped to the floor @@ -322,6 +325,7 @@ float default_weapon_alpha; .float() customizeentityforclient; .float cvar_cl_handicap; +.float cvar_cl_clippedspectating; .float cvar_scr_centertime; .float cvar_cl_shownames; .string cvar_g_voretournamentversion; @@ -335,8 +339,7 @@ float sv_clforceplayermodels; .float cvar_cl_gunalign; .float cvar_cl_noantilag; .float cvar_cl_vore_stomachmodel; -.float cvar_cl_vore_cameraspeed; -.float cvar_cl_vore_punchangle; +.float cvar_cl_vore_swallowmodel; .float cvar_cl_vore_autodigest; .float cvar_chase_active; @@ -448,6 +451,7 @@ float next_pingtime; _VOICEMSG(fall) \ _VOICEMSG(drown) \ _VOICEMSG(gasp) \ + _VOICEMSG(grab) \ _VOICEMSG(swallow) \ _VOICEMSG(digest) \ _VOICEMSG(regurgitate) \ @@ -514,7 +518,7 @@ void PrecacheGlobalSound(string samplestring); void UpdatePlayerSounds(); void ClearPlayerSounds(); void PlayerSound(entity player, .string samplefield, float channel, float voicetype); -void GlobalSound(string samplestring, float channel, float voicetype); +void GlobalSound(string samplestring, float channel, float voicetype, float vol); void VoiceMessage(string type, string message); // autotaunt system @@ -606,18 +610,25 @@ string matchid; .float stats_hit[WEP_MAXCOUNT]; // for hitscan bullets hit .float stats_fired[WEP_MAXCOUNT]; // for hitscan bullets fired -FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_hit); -FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_fired); +.float stat_sbring1_type, stat_sbring1_clip, stat_sbring2_type, stat_sbring2_clip; +.float stat_crosshair_style; .float stat_leadlimit; -float radar_showennemies; - #ifdef PROFILING float client_cefc_accumulator; float client_cefc_accumulatortime; #endif +..float current_ammo; + +.float weapon_load[WEP_MAXCOUNT]; +.float clip_load; +.float old_clip_load; +.float clip_size; + +.float grabber_stunned; + #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_CORPSE; (e).dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE // #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_BBOX