]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/defs.qh
Use Erebus animations for the nex fox models, which are a lot prettier. Also fix...
[voretournament/voretournament.git] / data / qcsrc / server / defs.qh
index 0e2bce89e13dbd266ac6051464b45d54b9fbf254..b53f2c47a22ec384006585d342b3bb0b97f58015 100644 (file)
@@ -7,7 +7,7 @@ float require_spawnfunc_prefix; // if this float exists, only functions with spa
 #define BUTTON_ATCK2       button3\r
 #define BUTTON_ZOOM        button4\r
 #define BUTTON_CROUCH      button5\r
-#define BUTTON_GRABBER        button6\r
+#define BUTTON_JETPACK     button6\r
 #define BUTTON_INFO        button7\r
 #define BUTTON_CHAT        buttonchat\r
 #define BUTTON_USE         buttonuse\r
@@ -65,11 +65,15 @@ float maxclients;
 \r
 // Vore functions\r
 \r
-.entity eater;\r
+.entity predator;\r
+.entity fakepredator;\r
+.float swallow_progress_prey, swallow_progress_pred;\r
 .float digesting;\r
-.float stomach_load;\r
+.float stomach_load, stomach_maxload;\r
 .float weapon_delay;\r
-.float stat_eaten, stat_stomachload, stat_digesting;\r
+.float fakeprey;\r
+.float stat_eaten, stat_stomachload, stat_stomachmaxload, stat_digesting, stat_canleave, stat_canswallow;\r
+.float dropweapon_check;\r
 \r
 // Fields\r
 \r
@@ -158,6 +162,15 @@ float maxclients;
 .vector anim_forwardleft; // player running forward and left\r
 .vector anim_backright; // player running backward and right\r
 .vector anim_backleft; // player running back and left\r
+.vector anim_melee; // player doing the melee action\r
+.vector anim_duck; // player doing the melee action\r
+.vector anim_duckwalkbackwards;\r
+.vector anim_duckwalkstrafeleft;\r
+.vector anim_duckwalkstraferight;\r
+.vector anim_duckwalkforwardright;\r
+.vector anim_duckwalkforwardleft;\r
+.vector anim_duckwalkbackright;\r
+.vector anim_duckwalkbackleft;\r
 \r
 // weapon animation vectors:\r
 .vector anim_fire1;\r
@@ -196,13 +209,13 @@ void setanim(entity e, vector anim, float looping, float override, float restart
 .float         killcount;\r
 .float hitsound, typehitsound;\r
 \r
-.float watersound_finished;\r
-.float digestsound_finished;\r
+.float watersound_finished, digestsound_finished, gurglesound_finished;\r
 .float iscreature;\r
 .vector oldvelocity;\r
 \r
-.float pauseregen_finished;\r
+.float pauseregenhealth_finished;\r
 .float pauserothealth_finished;\r
+.float pauseregenarmor_finished;\r
 .float pauserotarmor_finished;\r
 .float pauserotfuel_finished;\r
 .string item_pickupsound;\r
@@ -211,6 +224,7 @@ void setanim(entity e, vector anim, float looping, float override, float restart
 \r
 .entity weaponentity;\r
 .entity exteriorweaponentity;\r
+.vector weaponentity_glowmod;\r
 .float switchweapon;\r
 .float autoswitch;\r
 float weapon_action(float wpn, float wrequest);\r
@@ -242,6 +256,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)\r
 float WR_KILLMESSAGE    = 8; // sets w_deathtypestring or leaves it alone\r
 float WR_RESETPLAYER    = 9; // does not need to do anything\r
+float WR_RELOAD         = 10; // used for reloading\r
 \r
 void weapon_defaultspawnfunc(float wpn);\r
 \r
@@ -304,8 +319,6 @@ string getTimeoutText(float addOneSecond);
 \r
 .entity flagcarried;\r
 \r
-.entity lastrocket;\r
-\r
 .float playerid;\r
 float playerid_last;\r
 .float noalign;                // if set to 1, the item or spawnpoint won't be dropped to the floor\r
@@ -320,6 +333,7 @@ float default_weapon_alpha;
 \r
 .float() customizeentityforclient;\r
 .float cvar_cl_handicap;\r
+.float cvar_cl_clippedspectating;\r
 .float cvar_scr_centertime;\r
 .float cvar_cl_shownames;\r
 .string cvar_g_voretournamentversion;\r
@@ -333,7 +347,8 @@ float sv_clforceplayermodels;
 .float cvar_cl_gunalign;\r
 .float cvar_cl_noantilag;\r
 .float cvar_cl_vore_stomachmodel;\r
-.float cvar_cl_vore_cameraspeed;\r
+.float cvar_cl_vore_gulletmodel;\r
+.float cvar_cl_vore_autodigest;\r
 .float cvar_chase_active;\r
 \r
 void Announce(string snd);\r
@@ -441,8 +456,10 @@ float next_pingtime;
 // TODO implemented fall and falling\r
 #define ALLPLAYERSOUNDS \\r
                _VOICEMSG(death) \\r
+               _VOICEMSG(fall) \\r
                _VOICEMSG(drown) \\r
                _VOICEMSG(gasp) \\r
+               _VOICEMSG(grab) \\r
                _VOICEMSG(swallow) \\r
                _VOICEMSG(digest) \\r
                _VOICEMSG(regurgitate) \\r
@@ -459,6 +476,8 @@ float next_pingtime;
                _VOICEMSG(meet) \\r
                _VOICEMSG(seenflag) \\r
                _VOICEMSG(taunt) \\r
+               _VOICEMSG(pred) \\r
+               _VOICEMSG(prey) \\r
                _VOICEMSG(teamshoot)\r
 \r
 #define _VOICEMSG(m) .string playersound_##m;\r
@@ -498,12 +517,16 @@ string globalsound_metalstep;
 #define VOICETYPE_TAUNT 15\r
 #define VOICETYPE_GURGLE 16\r
 \r
+#define TAUNTTYPE_DEATH 1\r
+#define TAUNTTYPE_VOREPRED 2\r
+#define TAUNTTYPE_VOREPREY 3\r
+\r
 void PrecachePlayerSounds(string f);\r
 void PrecacheGlobalSound(string samplestring);\r
 void UpdatePlayerSounds();\r
 void ClearPlayerSounds();\r
 void PlayerSound(entity player, .string samplefield, float channel, float voicetype);\r
-void GlobalSound(string samplestring, float channel, float voicetype);\r
+void GlobalSound(string samplestring, float channel, float voicetype, float vol);\r
 void VoiceMessage(string type, string message);\r
 \r
 // autotaunt system\r
@@ -586,6 +609,8 @@ string matchid;
 .float hitplotfh;\r
 .string noise4;\r
 \r
+.float last_pickup;\r
+\r
 .float stat_hit;\r
 .float stat_fired;\r
 .float stat_count;\r
@@ -593,18 +618,27 @@ string matchid;
 .float stats_hit[WEP_MAXCOUNT];  // for hitscan bullets hit\r
 .float stats_fired[WEP_MAXCOUNT];  // for hitscan bullets fired\r
 \r
-FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_hit);\r
-FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_fired);\r
+.float stat_sbring1_type, stat_sbring1_clip, stat_sbring2_type, stat_sbring2_clip;\r
+.float stat_crosshair_style;\r
 \r
 .float stat_leadlimit;\r
 \r
-float radar_showennemies;\r
+.float stat_respawn_time; // shows respawn time, and is negative when awaiting respawn\r
 \r
 #ifdef PROFILING\r
 float client_cefc_accumulator;\r
 float client_cefc_accumulatortime;\r
 #endif\r
 \r
+..float current_ammo;\r
+\r
+.float weapon_load[WEP_MAXCOUNT];\r
+.float clip_load;\r
+.float old_clip_load;\r
+.float clip_size;\r
+\r
+.float grabber_stunned;\r
+\r
 #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_CORPSE; (e).dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE\r
 // #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_BBOX\r
 \r
@@ -622,3 +656,31 @@ string deathmessage;
 \r
 .float cvar_cl_accuracy_data_share;\r
 .float cvar_cl_accuracy_data_receive;\r
+\r
+// dodging\r
+.float cvar_cl_dodging_timeout;\r
+\r
+// these are used to store the last key press time for each of the keys..\r
+.float last_FORWARD_KEY_time;\r
+.float last_BACKWARD_KEY_time;\r
+.float last_LEFT_KEY_time;\r
+.float last_RIGHT_KEY_time;\r
+\r
+// these store the movement direction at the time of the dodge action happening.\r
+.float dodging_direction_x;\r
+.float dodging_direction_y;\r
+\r
+// this indicates the last time a dodge was executed. used to check if another one is allowed\r
+// and to ramp up the dodge acceleration in the physics hook.\r
+.float last_dodging_time;\r
+\r
+// set to 1 to indicate dodging has started.. reset by physics hook after dodge has been done..\r
+.float dodging_action;\r
+\r
+// This is the velocity gain to be added over the ramp time.\r
+// It will decrease from frame to frame during dodging_action = 1\r
+// until it's 0.\r
+.float dodging_velocity_gain;\r
+\r
+// the jump part of the dodge cannot be ramped\r
+.float dodging_single_action;\r