X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=data%2Fqcsrc%2Fserver%2Fdefs.qh;h=64025012c2a6fcda57180edb5a08941f21ed7f44;hb=53a211979edd92b2d6dc10a121fdc1d908844fea;hp=6a6a9aa69772e7410b5d17276ad1df97e0c72c9c;hpb=5c760a30e0b462b7b201686a23a43a9243d72887;p=voretournament%2Fvoretournament.git diff --git a/data/qcsrc/server/defs.qh b/data/qcsrc/server/defs.qh index 6a6a9aa6..64025012 100644 --- a/data/qcsrc/server/defs.qh +++ b/data/qcsrc/server/defs.qh @@ -7,7 +7,7 @@ float require_spawnfunc_prefix; // if this float exists, only functions with spa #define BUTTON_ATCK2 button3 #define BUTTON_ZOOM button4 #define BUTTON_CROUCH button5 -#define BUTTON_GRABBER button6 +#define BUTTON_JETPACK button6 #define BUTTON_INFO button7 #define BUTTON_CHAT buttonchat #define BUTTON_USE buttonuse @@ -65,11 +65,13 @@ float maxclients; // Vore functions -.entity eater; +.entity predator; +.entity fakepredator; .float digesting; .float stomach_load; .float weapon_delay; -.float stat_eaten, stat_stomachload, stat_digesting; +.float fakeprey; +.float stat_eaten, stat_stomachload, stat_digesting, stat_canleave; // Fields @@ -196,13 +198,13 @@ void setanim(entity e, vector anim, float looping, float override, float restart .float killcount; .float hitsound, typehitsound; -.float watersound_finished; -.float digestsound_finished; +.float watersound_finished, digestsound_finished, gurglesound_finished; .float iscreature; .vector oldvelocity; -.float pauseregen_finished; +.float pauseregenhealth_finished; .float pauserothealth_finished; +.float pauseregenarmor_finished; .float pauserotarmor_finished; .float pauserotfuel_finished; .string item_pickupsound; @@ -242,6 +244,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); @@ -332,8 +335,11 @@ float sv_clforceplayermodels; #endif .float cvar_cl_gunalign; .float cvar_cl_noantilag; -.float cvar_chase_active; .float cvar_cl_vore_stomachmodel; +.float cvar_cl_vore_cameraspeed; +.float cvar_cl_vore_punchangle; +.float cvar_cl_vore_autodigest; +.float cvar_chase_active; void Announce(string snd); void AnnounceTo(entity e, string snd); @@ -440,6 +446,7 @@ float next_pingtime; // TODO implemented fall and falling #define ALLPLAYERSOUNDS \ _VOICEMSG(death) \ + _VOICEMSG(fall) \ _VOICEMSG(drown) \ _VOICEMSG(gasp) \ _VOICEMSG(swallow) \ @@ -458,6 +465,8 @@ float next_pingtime; _VOICEMSG(meet) \ _VOICEMSG(seenflag) \ _VOICEMSG(taunt) \ + _VOICEMSG(pred) \ + _VOICEMSG(prey) \ _VOICEMSG(teamshoot) #define _VOICEMSG(m) .string playersound_##m; @@ -497,6 +506,10 @@ string globalsound_metalstep; #define VOICETYPE_TAUNT 15 #define VOICETYPE_GURGLE 16 +#define TAUNTTYPE_DEATH 1 +#define TAUNTTYPE_VOREPRED 2 +#define TAUNTTYPE_VOREPREY 3 + void PrecachePlayerSounds(string f); void PrecacheGlobalSound(string samplestring); void UpdatePlayerSounds(); @@ -585,6 +598,8 @@ string matchid; .float hitplotfh; .string noise4; +.float last_pickup; + .float stat_hit; .float stat_fired; .float stat_count; @@ -604,6 +619,13 @@ float client_cefc_accumulator; float client_cefc_accumulatortime; #endif +..float current_ammo; + +.float weapon_load[WEP_MAXCOUNT]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(weapon_load); +.float clip_load; +.float old_clip_load; +.float clip_size; + #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_CORPSE; (e).dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE // #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_BBOX