]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Our ramdomvec must be between -1 and 1, not 0 and 1.
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 2 Sep 2010 14:01:05 +0000 (17:01 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 2 Sep 2010 14:01:05 +0000 (17:01 +0300)
data/balance.cfg
data/qcsrc/server/vore.qc

index b0d74c50e8cf6428c0a06f47e0d19c643ae376d1..3909ed571bd33b39c703618ce9b832c56db802a5 100644 (file)
@@ -184,7 +184,7 @@ set g_balance_vore_swallow_limit 3 "how many players can fit inside a stomach, s
 set g_balance_vore_swallow_delay 0.5 "how many seconds must pass before you can swallow someone again"\r
 set g_balance_vore_regurgitate_delay 0.135 "regurgitation delay"\r
 set g_balance_vore_regurgitate_velocitylimit 1200 "when a predator is going faster than this, the prey is squeezed out of them"\r
-set g_balance_vore_regurgitate_force 500 "regurgitated players rocket out at this speed when released"\r
+set g_balance_vore_regurgitate_force 500 "regurgitated players rocket out at this speed when released (randomized)"\r
 set g_balance_vore_digestion_damage 4 "amount of damage applied to victims during digestion"\r
 set g_balance_vore_digestion_vampire 1 "amount of health you gain from each enemy during digestion"\r
 set g_balance_vore_digestion_vampire_stable 150 "you stop gaining health past this point (best to keep equal or lower than g_balance_health_rotstable)"\r
index 45f1eeb3473bac4deec001da0b58a0d0473154d4..96f432f285f2b35dbb009af9f6eaf76230805a85 100644 (file)
@@ -104,7 +104,7 @@ void Vore_Regurgitate(entity e)
                e.solid = e.vore_oldsolid;\r
        e.alpha = 0; // best way of hiding / showing the eaten player\r
        e.view_ofs_z *= 2; // best positioning for the stomach model\r
-       e.velocity = randomvec() * cvar("g_balance_vore_regurgitate_force");\r
+       e.velocity = (randomvec() - randomvec()) * cvar("g_balance_vore_regurgitate_force");\r
        e.stat_eaten = FALSE;\r
 \r
        PlayerSound(e.eater, playersound_regurgitate, CHAN_PAIN, VOICETYPE_PLAYERSOUND);\r