From: Mario Date: Sun, 30 Aug 2015 06:10:41 +0000 (+1000) Subject: Add an extra parameter to the playermodel hook X-Git-Tag: xonotic-v0.8.2~1979 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c848619e6ffe0e2120d199e53492f90700b34429;p=xonotic%2Fxonotic-data.pk3dir.git Add an extra parameter to the playermodel hook --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 6d8041497..9a7380c0b 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -362,8 +362,9 @@ void FixPlayermodel() } } - MUTATOR_CALLHOOK(FixPlayermodel, defaultmodel); + MUTATOR_CALLHOOK(FixPlayermodel, defaultmodel, defaultskin); defaultmodel = ret_string; + defaultskin = ret_int; if(defaultmodel != "") { diff --git a/qcsrc/server/mutators/events.qh b/qcsrc/server/mutators/events.qh index d6f009897..f283693b5 100644 --- a/qcsrc/server/mutators/events.qh +++ b/qcsrc/server/mutators/events.qh @@ -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 */