]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/defs.qh
Scoreboard respawn info from my code in Xonotic
[voretournament/voretournament.git] / data / qcsrc / server / defs.qh
index 55cdcae9bd9df70ff60d73a524d53176e6d18457..0109de5eb9dc8d6b05de27a7534385311416fcb7 100644 (file)
@@ -518,7 +518,7 @@ void PrecacheGlobalSound(string samplestring);
 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
@@ -615,6 +615,8 @@ string matchid;
 \r
 .float stat_leadlimit;\r
 \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
@@ -646,3 +648,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