]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
New feature; Reversed vore scoring. When enabled, the prey which gets digested is...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 12 Sep 2010 01:10:23 +0000 (04:10 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 12 Sep 2010 01:10:23 +0000 (04:10 +0300)
data/defaultVoretournament.cfg
data/qcsrc/server/g_damage.qc

index b1f645b8577236d949db8d551fd5c8f235dbfa64..2ee750b3b377e7e0e849d63073b7e05a425bb0b6 100644 (file)
@@ -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"\r
 set cl_vore_cameraspeed 1.5 "speed at which you see yourself sliding down when swallowed, 0 disables"\r
 set cl_vore_punchangle 10 "your view gets tilted by this amount when swallowing or regurgitating someone"\r
+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"\r
 set g_vore_teamvore 1 "allow players to swallow their team mates"\r
 set g_vore_biggergut 1 "when enabled, a player can't swallow someone with more players in their stomach than them"\r
 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"\r
index 6828eab2b296956ce7e036c93fa498e6ac87a663..9c7bce0a8b71186391c02e97fae3c58d4eeef0f4 100644 (file)
@@ -471,7 +471,12 @@ void Obituary (entity attacker, entity inflictor, entity targ, float deathtype)
                                        GiveFrags(attacker, targ, 0); // for logging\r
                                }\r
                                else\r
-                                       GiveFrags(attacker, targ, 1);\r
+                               {\r
+                                       if(cvar("g_vore_reversescoring") && deathtype == DEATH_DIGESTION) // reversed vore scoring\r
+                                               GiveFrags(targ, attacker, 1);\r
+                                       else\r
+                                               GiveFrags(attacker, targ, 1);\r
+                               }\r
 \r
                                if (targ.killcount > 2) {\r
                                        if(sv_gentle)\r