]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add an extra parameter to the playermodel hook
authorMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 06:10:41 +0000 (16:10 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 06:11:09 +0000 (16:11 +1000)
qcsrc/server/cl_client.qc
qcsrc/server/mutators/events.qh

index 6d804149725cd560a773f4a42bc8db788d3fcb04..9a7380c0bed62ebc2fee6da5ee54da7816edff36 100644 (file)
@@ -362,8 +362,9 @@ void FixPlayermodel()
                }
        }
 
-       MUTATOR_CALLHOOK(FixPlayermodel, defaultmodel);
+       MUTATOR_CALLHOOK(FixPlayermodel, defaultmodel, defaultskin);
        defaultmodel = ret_string;
+       defaultskin = ret_int;
 
        if(defaultmodel != "")
        {
index d6f00989792b19d3b7694ef86a2db3dbffce9dca..f283693b5256219129a24d251ff30c8cb2aa4422 100644 (file)
@@ -584,7 +584,10 @@ MUTATOR_HOOKABLE(FireBullet_Hit, EV_FireBullet_Hit);
 #define EV_FixPlayermodel(i, o) \
     /**/ i(string, ret_string) \
     /**/ o(string, ret_string) \
+    /**/ i(int, ret_int) \
+    /**/ o(int, ret_int) \
     /**/
+int ret_int;
 MUTATOR_HOOKABLE(FixPlayermodel, EV_FixPlayermodel);
 
 /** Return error to play frag remaining announcements */