case "butcher":
{
if(caller) { print_to(caller, "This command is not available to players"); return; }
- if(g_invasion) { print_to(caller, "This command does not work during an invasion!"); return; }
+ if(MUTATOR_CALLHOOK(AllowMobButcher)) { LOG_INFO(ret_string, "\n"); return; }
int tmp_remcount = 0;
entity tmp_entity;
/**/ i(entity, frag_target) \
/**/
MUTATOR_HOOKABLE(DropSpecialItems, EV_DropSpecialItems);
+
+/**
+ * called when an admin tries to kill all monsters
+ * return 1 to prevent spawning
+ */
+MUTATOR_HOOKABLE(AllowMobButcher, EV_NO_ARGS);
#endif
return false;
}
+MUTATOR_HOOKFUNCTION(inv, AllowMobButcher)
+{
+ ret_string = "This command does not work during an invasion!";
+ return true;
+}
+
void invasion_ScoreRules(float inv_teams)
{
if(inv_teams) { CheckAllowedTeams(world); }