From b7712e8491994a0663833345fa4a5c46ef6a0ecc Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 19 Apr 2011 19:12:20 +0300 Subject: [PATCH] Make keeping digested prey in the stomach probability based. Still always disabled by default though. --- data/defaultVT.cfg | 4 ++-- data/qcsrc/server/vore.qc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index 4d7c9920..ff1d5e67 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -1522,7 +1522,7 @@ set g_triggerimpulse_radial_multiplier 1 "trigger_impulse radial field multiplie seta g_ghost_items 1 "enable ghosted items (when between 0 and 1, overrides the alpha value)" seta g_ghost_items_color "-1 -1 -1" "color of ghosted items, 0 0 0 leaves the color unchanged" -set cl_vore_stomachmodel 1 "when enabled, we see the stomach model around us when eaten. -1 = disabled, 1 = enabled, anything between 0 and 1 = alpha" +set cl_vore_stomachmodel 1 "when enabled, we see the stomach model around us when eaten. -1 = disabled, 1 = enabled, anything between = alpha" set cl_vore_cameraspeed 1.5 "speed at which you see yourself sliding down when swallowed, 0 disables" seta cl_vore_cutvolume_sound 0.75 "sound volume is reduced to this amount when you are in a stomach" seta cl_vore_cutvolume_music 0.5 "music volume is reduced to this amount when you are in a stomach" @@ -1541,7 +1541,7 @@ set g_vore_soundocclusion 0.25 "directional player sounds are cut to this amount set g_vore_regurgitatecolor_release "0.4 0.6 0.1" "the color players will have when regurgitated alive" set g_vore_regurgitatecolor_release_fade 0.01 "how quickly the regurgitation color washes off players once they leave the stomach" set g_vore_regurgitatecolor_digest "0.15 0.25 0" "the color players will have when digested, only works when g_vore_keepdeadprey is disabled" -set g_vore_keepdeadprey 1 "If enabled, prey remains inside the stomach after dying from digestion, else the predator throws up their dead body" +set g_vore_keepdeadprey 1 "If enabled, prey remains in the stomach after dying, else the predator throws up their dead body. 0 = disabled, 1 = enabled, anything between = probability" // part of an ugly hack for the menu audio sliders to work with the cutsound feature seta menu_volume 0.5 diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 2bf92919..8566f150 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -318,7 +318,7 @@ void Vore_DeadPrey_Detach(entity e) void Vore_PreyRelease(entity e, float pred_disconnect) { // if the keepdeadprey feature is on, don't spit a dead prey's carcass out - if(e.deadflag != DEAD_NO && cvar("g_vore_keepdeadprey")) + if(e.deadflag != DEAD_NO && random() < cvar("g_vore_keepdeadprey")) { // if keepdeadprey is enabled and the predator disconnected, detach the dead prey if(pred_disconnect) -- 2.39.2