]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/t_items.qc
Cvar the swallowing speed of items, and influence based on health difference. Since...
[voretournament/voretournament.git] / data / qcsrc / server / t_items.qc
index 6b04779f1fa77ac62cdabc8fc8180f79b2d7abbb..d7decefe8472e4a95aecdedb31a70d774a14c323 100644 (file)
@@ -429,7 +429,7 @@ float Item_Swallow(entity item, entity player)
        if(!usage)\r
                return FALSE;\r
 \r
-       item.swallow_progress_prey = min(item.swallow_progress_prey + 0.02, 1);\r
+       item.swallow_progress_prey = item.swallow_progress_prey + cvar("g_balance_vore_swallow_speed_item_fill") * (player.health / item.health);\r
        player.swallow_progress_pred = item.swallow_progress_prey;\r
        if(item.swallow_progress_prey < 1)\r
                return FALSE; // swallow progress not full yet\r