void GetCvars(float f)
{
string s;
+ MUTATOR_CALLHOOK(GetCvars);
+
if (f > 0)
s = strcat1(argv(f));
GetCvars_handleFloat(s, f, autoswitch, "cl_autoswitch");
GetCvars_handleFloat(s, f, cvar_cl_hitsound, "cl_hitsound");
GetCvars_handleFloat(s, f, cvar_cl_accuracy_data_share, "cl_accuracy_data_share");
GetCvars_handleFloat(s, f, cvar_cl_accuracy_data_receive, "cl_accuracy_data_receive");
- GetCvars_handleFloat(s, f, cvar_cl_dodging_timeout, "cl_dodging_timeout");
self.cvar_cl_accuracy_data_share = boolean(self.cvar_cl_accuracy_data_share);
self.cvar_cl_accuracy_data_receive = boolean(self.cvar_cl_accuracy_data_receive);
MUTATOR_HOOKABLE(PlayerPreThink);
MUTATOR_HOOKABLE(GetPressedKeys);
MUTATOR_HOOKABLE(PlayerPhysics);
+MUTATOR_HOOKABLE(GetCvars);
+.float cvar_cl_dodging_timeout;
+
+
// these are used to store the last key press time for each of the keys..
.float last_FORWARD_KEY_time;
.float last_BACKWARD_KEY_time;
self.dodging_direction_y = 0;
}
+MUTATOR_HOOKFUNCTION(dodging_GetCvars) {
+ string s;
+ float f;
+
+ GetCvars_handleFloat(s, f, cvar_cl_dodging_timeout, "cl_dodging_timeout");
+ return 0;
+}
+
MUTATOR_HOOKFUNCTION(dodging_PlayerPhysics) {
float common_factor;