From cff6c248e87a1a698e2b1c93d6376aedef8f2587 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 12 Sep 2010 04:10:23 +0300 Subject: [PATCH] New feature; Reversed vore scoring. When enabled, the prey which gets digested is granted a frag, rather than the predator. The idea is a mutator where prey must offer itself in order to score, rather than digest others. May be useless in online games (since no one will eat you to grant you frags on purpose), but can be used for mods. --- data/defaultVoretournament.cfg | 1 + data/qcsrc/server/g_damage.qc | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index b1f645b8..2ee750b3 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -1498,6 +1498,7 @@ seta g_ghost_items_color "-1 -1 -1" "color of ghosted items, 0 0 0 leaves the co 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_cameraspeed 1.5 "speed at which you see yourself sliding down when swallowed, 0 disables" set cl_vore_punchangle 10 "your view gets tilted by this amount when swallowing or regurgitating someone" +set g_vore_reversescoring 0 "reverses vore scoring, and gives digested prey a frag rather than the predator (offer yourself gameplay), does not affect suicides, weapon kills and team kills" set g_vore_teamvore 1 "allow players to swallow their team mates" set g_vore_biggergut 1 "when enabled, a player can't swallow someone with more players in their stomach than them" set g_vore_showhealth 1 "when enabled, a predator can see their prey's health on the stomach board, and prey can see the health of players he's joining in the stomach" diff --git a/data/qcsrc/server/g_damage.qc b/data/qcsrc/server/g_damage.qc index 6828eab2..9c7bce0a 100644 --- a/data/qcsrc/server/g_damage.qc +++ b/data/qcsrc/server/g_damage.qc @@ -471,7 +471,12 @@ void Obituary (entity attacker, entity inflictor, entity targ, float deathtype) GiveFrags(attacker, targ, 0); // for logging } else - GiveFrags(attacker, targ, 1); + { + if(cvar("g_vore_reversescoring") && deathtype == DEATH_DIGESTION) // reversed vore scoring + GiveFrags(targ, attacker, 1); + else + GiveFrags(attacker, targ, 1); + } if (targ.killcount > 2) { if(sv_gentle) -- 2.39.2