]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Apply the bot offset to the swallow speed as well, not only damage. This hides the...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 16 Mar 2012 00:47:11 +0000 (02:47 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 16 Mar 2012 00:47:11 +0000 (02:47 +0200)
data/qcsrc/server/vore.qc
docs/TODO.txt

index f88b245bf010e05212504b90af9d187ebf23b64e..04433508b43ad5398659ee8651c08d44cea63f81 100644 (file)
@@ -361,6 +361,17 @@ void Vore_SwallowStep(entity e)
                if(cvar("g_balance_vore_swallow_speed_fill_stomachload") && e.stomach_load) // fill rate is influenced by the prey's stomach load\r
                        fill *= (1 - ((e.stomach_load / e.stomach_maxload) * bound(0, cvar("g_balance_vore_swallow_speed_fill_stomachload"), 1)));\r
 \r
+               // skill-based speed offset for bots\r
+               if(skill && cvar("skill_damage"))\r
+               {\r
+                       float ofs;\r
+                       ofs = pow(skill / cvar("skill_damage_center"), cvar("skill_damage"));\r
+                       if(clienttype(self) == CLIENTTYPE_BOT)\r
+                               fill *= ofs;\r
+                       if(clienttype(e) == CLIENTTYPE_BOT)\r
+                               fill /= ofs;\r
+               }\r
+\r
                e.swallow_progress_prey += fill;\r
        }\r
        else\r
index 812f760175e04f04221835c475564fcd28bb0fd9..f944e983fa71c4d6fc2587d9027986fc824e5952 100644 (file)
 \r
 - 0.8 BUG: Bots can still senect no weapon when they have the grabber\r
 \r
-- 0.7 | 0.8: Maybe allow damage gained from digestion to go up to 250\r
+- 0.7 | 0.8: Maybe allow damage gained from digestion to go up to 250, as well as team healing\r
 \r
 - +0.8: Maybe turn health items into creatures that run around?\r
 \r
 \r
 - 0.7 | 0.8: Why does bot_number still get stuck at 7?\r
 \r
-- 0.7: Smaller default zoom for minimap
\ No newline at end of file
+- 0.7: Smaller default zoom for minimap\r
+\r
+- 0.7 | 0.8 BUG: Display digits still appear on the 3rd person weapon when a player dies and becomes gibbed
\ No newline at end of file