]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add something for 2015
authorMario <zacjardine@y7mail.com>
Sat, 28 Feb 2015 08:36:26 +0000 (19:36 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 28 Feb 2015 08:36:26 +0000 (19:36 +1100)
qcsrc/client/main.qc
qcsrc/server/cl_client.qc
qcsrc/server/defs.qh
qcsrc/server/miscfunctions.qc

index 49bdaa0b16298e212d55efdd522e9e91eae6faaa..6231f4805341643e9f650d7c846913989fe71c46 100644 (file)
@@ -109,6 +109,7 @@ void CSQC_Init(void)
        registercvar("cl_freeze", "0");
        registercvar("cl_pony", "0");
        registercvar("cl_pony_skin", "0");
+       registercvar("cl_goat", "0");
        registercvar("cl_sparkle", "0");
        registercvar("cl_multijump", "0");
        registercvar("cl_dodging", "0");
index 47e2f41effc28d5e2badbc1605ea00e2526f29d1..94f3a8a9432b8e4c13efe2bc77775f0a5e8805b6 100644 (file)
@@ -412,6 +412,8 @@ void FixPlayermodel()
                }
                if(self.cvar_cl_robot == 1)
                        defaultmodel = "models/player/terminusmale.iqm";
+               if(self.cvar_cl_goat)
+                       defaultmodel = "models/player/draconimale.iqm";
 
                // special hax
                if(checkinlist(self.crypto_idfp, autocvar_sv_allow_customplayermodels_idlist) || IS_BOT_CLIENT(self))
index c915e35732fea7d3d3bf9d38b9cf721a40d9a4ce..134aac6623b31dab7eace133b0776111e060b7e3 100644 (file)
@@ -652,6 +652,7 @@ const int MIF_GUIDED_TAG = 128;
 .int cvar_cl_damnfurries;
 .bool cvar_cl_thestars;
 .bool cvar_cl_robot;
+.bool cvar_cl_goat;
 .int cvar_cl_charge;
 
 .string cvar_cl_autovote;
index 9057014d601a9948e7c1c44546d33431edbde6f1..2187b54713c281d4653e85db59f4b6cceaeb6719 100644 (file)
@@ -469,6 +469,7 @@ void GetCvars(float f)
        GetCvars_handleFloat(s, f, cvar_cl_sparkle, "cl_sparkle");
        GetCvars_handleFloat(s, f, cvar_cl_pony, "cl_pony");
        GetCvars_handleFloat(s, f, cvar_cl_pony_skin, "cl_pony_skin");
+       GetCvars_handleFloat(s, f, cvar_cl_goat, "cl_goat");
        GetCvars_handleFloat(s, f, cvar_cl_damnfurries, "cl_damnfurries");
        GetCvars_handleFloat(s, f, cvar_cl_thestars, "cl_thestars");
        GetCvars_handleFloat(s, f, cvar_cl_robot, "cl_robot");