]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make work loading of playermodel descriptions in different languages
authorterencehill <piuntn@gmail.com>
Thu, 17 Dec 2015 16:51:22 +0000 (17:51 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 17 Dec 2015 16:51:22 +0000 (17:51 +0100)
models/player/erebus.iqm_0.txt.it [new file with mode: 0644]
qcsrc/common/util.qc
qcsrc/menu/xonotic/playermodel.qc

diff --git a/models/player/erebus.iqm_0.txt.it b/models/player/erebus.iqm_0.txt.it
new file mode 100644 (file)
index 0000000..5fbf1b3
--- /dev/null
@@ -0,0 +1,13 @@
+name Erebus
+species umano
+sex Maschio
+weight 105
+age 26
+description Soldato peso massimo di Xonotic
+bone_upperbody spine2
+bone_aim0 0.25 spine2
+bone_aim1 0.4 spine4
+bone_aim2 0.2 upperarm_L
+bone_aim3 0.35 bip01 r hand
+bone_weapon bip01 r hand
+fixbone 1
index c81b1a5769942860beb7702b747d1ca01a4c53bf..73433252c8ad2c4a0a1490cbe74f69b5e7436e6d 100644 (file)
@@ -1209,12 +1209,12 @@ float get_model_parameters(string m, float sk)
                m = substring(m, 0, -7);
        }
 
-       string fn = get_model_datafilename(m, sk, "txt");
+       string fn = language_filename(get_model_datafilename(m, sk, "txt"));
        int fh = fopen(fn, FILE_READ);
        if(fh < 0)
        {
                sk = 0;
-               fn = get_model_datafilename(m, sk, "txt");
+               fn = language_filename(get_model_datafilename(m, sk, "txt"));
                fh = fopen(fn, FILE_READ);
                if(fh < 0)
                        return 0;
index 5d58a1b03ebaf927ca1c74a1ce3bddbc3dfcd030..1fa69dc2e115b2432c5532c53494f0f82ac1c01b 100644 (file)
@@ -52,7 +52,7 @@ void XonoticPlayerModelSelector_configureXonoticPlayerModelSelector(entity me)
        float sortbuf, glob, i;
        string fn;
 
-       glob = search_begin(language_filename(get_model_datafilename(string_null, -1, "txt")), true, true);
+       glob = search_begin(get_model_datafilename(string_null, -1, "txt"), true, true);
        if (glob < 0)
                return;