]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_client.qc
Add a cvar to allow disabling / changing the alpha of the stomach model (client side...
[voretournament/voretournament.git] / data / qcsrc / server / cl_client.qc
index 292a37afee36c7c0e766f895fb9b6d6853a9b0e5..11cf27c7df0b3f1631ace4719a4c114a09a3a345 100644 (file)
@@ -517,6 +517,8 @@ float Client_customizeentityforclient()
        if(other.cvar_chase_active > 0 || other.classname == "observer") // the classname check prevents a bug\r
        {\r
                Client_setmodel(setmodel_state());\r
+               if not(self.eater.classname == "player")\r
+                       self.alpha = default_player_alpha;\r
                return TRUE;\r
        }\r
        if(other.spectatee_status)\r
@@ -525,9 +527,12 @@ float Client_customizeentityforclient()
        {\r
                tokenizebyseparator(self.playermodel, ".");\r
                Client_setmodel(strcat(argv(0), "_stomach.md3"));\r
+               self.alpha = other.cvar_cl_vore_stomachmodel;\r
                return TRUE;\r
        }\r
        Client_setmodel(setmodel_state());\r
+       if not(self.eater.classname == "player")\r
+               self.alpha = default_player_alpha;\r
        return TRUE;\r
 }\r
 \r