]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Add cvar (acting as probability factor)
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 6 Sep 2010 18:30:26 +0000 (21:30 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 6 Sep 2010 18:30:26 +0000 (21:30 +0300)
data/defaultVoretournament.cfg
data/qcsrc/server/vore.qc

index 7f7ff3eee1b187850e2ced6a141c65f0a3007c5c..a9b50b0cc9a23d4b9c5f6ad0e95d0ae5ce0c4e56 100644 (file)
@@ -1498,6 +1498,7 @@ set g_vore_regurgitatecolor_released "0.75 1 0.5" "the color players will have w
 set g_vore_regurgitatecolor_digested "-0.125 0.25 0" "the color players will have when released from the stomach digested"\r
 set g_vore_gurglesound 1 "predators make an ambient gurgling sound"\r
 set g_vore_biggergut 1 "when enabled, a player can't swallow someone with more players in their stomach than them"\r
 set g_vore_regurgitatecolor_digested "-0.125 0.25 0" "the color players will have when released from the stomach digested"\r
 set g_vore_gurglesound 1 "predators make an ambient gurgling sound"\r
 set g_vore_biggergut 1 "when enabled, a player can't swallow someone with more players in their stomach than them"\r
+set g_vore_stealprey 0.5 "probability of stealing the prey from someone you are eating (if true their prey joins your stomach with them). 0 = never and 1 = always"\r
 set g_vore_dropweapon 0.75 "probability of dropping your weapon when being swallowed. 0 = never and 1 = always, does not apply to team mates"\r
 set g_vore_showpreyhealth 1 "when enabled, a predator can see their prey's health on the stomach board"\r
 set g_vore_soundocclusion 0.25 "directional player sounds are played at this amount of their normal volume for eaten players (simulates hearing harder from the stomach)"\r
 set g_vore_dropweapon 0.75 "probability of dropping your weapon when being swallowed. 0 = never and 1 = always, does not apply to team mates"\r
 set g_vore_showpreyhealth 1 "when enabled, a predator can see their prey's health on the stomach board"\r
 set g_vore_soundocclusion 0.25 "directional player sounds are played at this amount of their normal volume for eaten players (simulates hearing harder from the stomach)"\r
index b1b13558a9bd5fb1c077e22d58a67b7f84aa96f8..1296b01595e5af5ed57d0f3194cf31a59f37af32 100644 (file)
@@ -362,7 +362,7 @@ void Vore()
                targeteater = self.eater.eater;\r
 \r
                Vore_Regurgitate(self);\r
                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
                if(Swallow_condition_check(self))\r
                {\r
                        oldself = self;\r