.float teamkill_soundtime;\r
.entity teamkill_soundsource;\r
.entity pusher;\r
+\r
.float taunt_soundtime;\r
+.float taunt_soundtimefiltered;\r
+.float taunt_soundtype;\r
\r
+void SetAutoTaunt(entity e, float t_soundtime, float t_soundtimefiltered, float soundtype)\r
+{\r
+ e.taunt_soundtime = t_soundtime;\r
+ e.taunt_soundtimefiltered = t_soundtimefiltered;\r
+ e.taunt_soundtype = soundtype;\r
+}\r
\r
float IsDifferentTeam(entity a, entity b)\r
{\r
centerprint(attacker, strcat(DAMAGE_CENTERPRINT_SPACER, blood_message, "^4You ate ^7", s, GetAdvancedDeathReports(targ)));\r
centerprint(targ, strcat(DAMAGE_CENTERPRINT_SPACER, victim_message, "^1You were eaten by ^7", a, GetAdvancedDeathReports(attacker)));\r
}\r
- attacker.taunt_soundtime = time + 1;\r
+ SetAutoTaunt(attacker, time + 1, FALSE, TAUNTTYPE_DEATH);\r
}\r
}\r
else\r
centerprint(attacker, strcat(DAMAGE_CENTERPRINT_SPACER, blood_message, "^4You killed ^7", s, GetAdvancedDeathReports(targ)));\r
centerprint(targ, strcat(DAMAGE_CENTERPRINT_SPACER, victim_message, "^1You were killed by ^7", a, GetAdvancedDeathReports(attacker)));\r
}\r
- attacker.taunt_soundtime = time + 1;\r
+ SetAutoTaunt(attacker, time + 1, FALSE, TAUNTTYPE_DEATH);\r
}\r
}\r
\r
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