]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add back cl_forcemyplayermodel, but again hidden normally
authorSamual <samual@xonotic.org>
Fri, 20 Jan 2012 04:17:07 +0000 (23:17 -0500)
committerSamual <samual@xonotic.org>
Fri, 20 Jan 2012 04:17:07 +0000 (23:17 -0500)
qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c
qcsrc/menu/xonotic/dialog_multiplayer_playersetup_model.c

index 2a1b0d54af60dd4b7fd0cd9eb043e878bab4e7a8..e3adc47fc95c6849e9f435dfb441c5507d3b6422 100644 (file)
@@ -172,6 +172,6 @@ void XonoticPlayerSettingsTab_fill(entity me)
                // TODO: show hud config name with text here 
 
        me.gotoRC(me, me.rows - 1, 0);
-               me.TD(me, 1, me.columns, makeXonoticCommandButton(_("Apply immediately"), '0 0 0', "color -1 -1;name \"$_cl_name\";sendcvar cl_weaponpriority;sendcvar cl_autoswitch;sendcvar cl_forceplayermodels;playermodel $_cl_playermodel;playerskin $_cl_playerskin", COMMANDBUTTON_APPLY));
+               me.TD(me, 1, me.columns, makeXonoticCommandButton(_("Apply immediately"), '0 0 0', "color -1 -1;name \"$_cl_name\";sendcvar cl_weaponpriority;sendcvar cl_autoswitch;sendcvar cl_forceplayermodels;sendcvar cl_forceplayermodelsfromxonotic;playermodel $_cl_playermodel;playerskin $_cl_playerskin", COMMANDBUTTON_APPLY));
 }
 #endif
index 750a94206b4166b1f3f84c9bbb2eb27f9cfa6396..2c17d9a3bc3227fd436993c990896ff1fc978a8f 100644 (file)
@@ -40,6 +40,12 @@ void XonoticModelDialog_fill(entity me)
                me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Playermodel LOD:")));
                me.TD(me, 1, 2, e = makeXonoticSlider(0, 10, 1, "cl_playerdetailreduction"));
        me.TR(me);
+       #ifdef ALLOW_FORCEMODELS
+               me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Force models:")));
+               me.TD(me, 1, 2/3, e = makeXonoticRadioButton(6, string_null, string_null, ZCTX(_("MDL^None"))));
+               me.TD(me, 1, 2/3, e = makeXonoticRadioButton(6, "cl_forceplayermodelsfromxonotic", string_null, ZCTX(_("MDL^Custom"))));
+               me.TD(me, 1, 2/3, e = makeXonoticRadioButton(6, "cl_forceplayermodels", string_null, ZCTX(_("MDL^All"))));
+       #endif
        me.TR(me);
                me.TD(me, 1, 1.5, e = makeXonoticCheckBox(0, "cl_forceplayermodels", _("Force player models to mine")));
        me.TR(me);