]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Make keeping digested prey in the stomach probability based. Still always disabled...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 19 Apr 2011 16:12:20 +0000 (19:12 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 19 Apr 2011 16:12:20 +0000 (19:12 +0300)
data/defaultVT.cfg
data/qcsrc/server/vore.qc

index 4d7c9920a52a4d6de84fcda66ba9557e6ed329fb..ff1d5e67b77fec1d9b31b11fad91ea1bb9e07da6 100644 (file)
@@ -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)"\r
 seta g_ghost_items_color "-1 -1 -1" "color of ghosted items, 0 0 0 leaves the color unchanged"\r
 \r
-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"\r
+set cl_vore_stomachmodel 1 "when enabled, we see the stomach model around us when eaten. -1 = disabled, 1 = enabled, anything between = alpha"\r
 set cl_vore_cameraspeed 1.5 "speed at which you see yourself sliding down when swallowed, 0 disables"\r
 seta cl_vore_cutvolume_sound 0.75 "sound volume is reduced to this amount when you are in a stomach"\r
 seta cl_vore_cutvolume_music 0.5 "music volume is reduced to this amount when you are in a stomach"\r
@@ -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"\r
 set g_vore_regurgitatecolor_release_fade 0.01 "how quickly the regurgitation color washes off players once they leave the stomach"\r
 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"\r
-set g_vore_keepdeadprey 1 "If enabled, prey remains inside the stomach after dying from digestion, else the predator throws up their dead body"\r
+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"\r
 \r
 // part of an ugly hack for the menu audio sliders to work with the cutsound feature\r
 seta menu_volume 0.5\r
index 2bf9291993194a24605bc3e75645c11514f97b4d..8566f1508c0b7934a5925cb5471052753a10345c 100644 (file)
@@ -318,7 +318,7 @@ void Vore_DeadPrey_Detach(entity e)
 void Vore_PreyRelease(entity e, float pred_disconnect)\r
 {\r
        // if the keepdeadprey feature is on, don't spit a dead prey's carcass out\r
-       if(e.deadflag != DEAD_NO && cvar("g_vore_keepdeadprey"))\r
+       if(e.deadflag != DEAD_NO && random() < cvar("g_vore_keepdeadprey"))\r
        {\r
                // if keepdeadprey is enabled and the predator disconnected, detach the dead prey\r
                if(pred_disconnect)\r