prevent rotting but if someone really wants regen without rot they can
edit cvars and go into modified, idc. Only things left to add to ffa
mayhem are a new icon and fixing map info. Going to start creating team
mayhem mow.
// ========
// mayhem
// ========
-set g_mayhem 0 "Mayhem: the player with most frags in total mayhem wins"
\ No newline at end of file
+set g_mayhem 0 "Mayhem: the player with most frags in total mayhem wins"
+set g_mayhem_regenerate 0 "allow players to regenerate hp. rates controlled by hp regeneration and rotting cvars"
+set g_mayhem_weaponarena "most_available" "starting weapons - takes the same options as g_weaponarena"
\ No newline at end of file
return true;
else
return false;
+}
+
+MUTATOR_HOOKFUNCTION(mayhem, Damage_Calculate)
+{
+ entity frag_attacker = M_ARGV(1, entity);
+ entity frag_target = M_ARGV(2, entity);
+ float frag_damage = M_ARGV(4, float);
+
+ if (frag_target == frag_attacker)
+ frag_damage = 0;
+
+ M_ARGV(4, float) = frag_damage;
}
\ No newline at end of file