]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
- made stuff local
authorFlorian Paul Schmidt <mista.tapas@gmx.net>
Sat, 20 Mar 2010 11:52:21 +0000 (12:52 +0100)
committerFlorian Paul Schmidt <mista.tapas@gmx.net>
Sat, 20 Mar 2010 11:52:21 +0000 (12:52 +0100)
qcsrc/server/defs.qh
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/base.qh
qcsrc/server/mutators/mutator_dodging.qc
qcsrc/server/mutators/mutator_dodging.qh

index 6d8838e8fd98a750e94120c87ec4fc9a7b6bbc05..f18c610aa84cefc431f77b9b2150467f2d98aa7a 100644 (file)
@@ -637,5 +637,3 @@ string deathmessage;
 
 .float cvar_cl_accuracy_data_share;
 .float cvar_cl_accuracy_data_receive;
-
-.float cvar_cl_dodging_timeout;
index 38c5bd03c624c22117d084dcd36d90a9c53c833d..0cf246331751bda733ffb036f4ce67a6de61659f 100644 (file)
@@ -593,6 +593,8 @@ float w_getbestweapon(entity e);
 void GetCvars(float f)
 {
        string s;
+       MUTATOR_CALLHOOK(GetCvars);
+
        if (f > 0)
                s = strcat1(argv(f));
        GetCvars_handleFloat(s, f, autoswitch, "cl_autoswitch");
@@ -619,7 +621,6 @@ void GetCvars(float f)
        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);
index 61eb83127a2fa592b8c6c9f12e7ef43398fa9a74..7495826659487da89ceca725e1e7cb7ef5c3fc13 100644 (file)
@@ -54,3 +54,4 @@ MUTATOR_HOOKABLE(OnEntityPreSpawn); // return error to prevent entity spawn, or
 MUTATOR_HOOKABLE(PlayerPreThink);
 MUTATOR_HOOKABLE(GetPressedKeys);
 MUTATOR_HOOKABLE(PlayerPhysics);
+MUTATOR_HOOKABLE(GetCvars);
index 4b1660b6707421b0fc708ee75d04ecb95efb45a7..dbafdc67cad3866f27b1699bb15589a1fbd95c7d 100644 (file)
@@ -1,4 +1,7 @@
 
+.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;
@@ -31,6 +34,14 @@ void dodging_Initialize() {
        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;
 
index ab0c01417a74fea63241d7c8ff072a26d0fed513..8e8be2513d49f90c1a952685ef6e21ae03a49940 100644 (file)
@@ -1 +1,2 @@
-//
\ No newline at end of file
+float g_dodging;
+