Add cvar (acting as probability factor)
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index b1b13558a9bd5fb1c077e22d58a67b7f84aa96f8..1296b01595e5af5ed57d0f3194cf31a59f37af32 100644 (file)
@@ -362,7 +362,7 @@ void Vore()
                targeteater = self.eater.eater;\r
 \r
                Vore_Regurgitate(self);\r
-               if(1 == 1) //cvar!!!!!!!!!!!!!!!!\r
+               if(random() < cvar("g_vore_stealprey"))\r
                if(Swallow_condition_check(self))\r
                {\r
                        oldself = self;\r