#include "../../common/command/command.qh"
#include "common.qh"
-#include "../_all.qh"
#include "../scores.qh"
+#include "../../common/monsters/all.qh"
#include "../../common/notifications.qh"
+#include "../../lib/warpzone/common.qh"
// ====================================================
// used by CommonCommand_timeout() and CommonCommand_timein() to handle game pausing and messaging and such.
void timeout_handler_reset()
-{
+{SELFPARAM();
timeout_caller = world;
timeout_time = 0;
timeout_leadtime = 0;
}
void timeout_handler_think()
-{
+{SELFPARAM();
entity tmp_player;
switch(timeout_status)
}
void CommonCommand_editmob(int request, entity caller, int argc)
-{
+{SELFPARAM();
switch(request)
{
case CMD_REQUEST_COMMAND:
if(mon.realowner != caller && autocvar_g_monsters_edit < 2) { print_to(caller, "This monster does not belong to you"); return; }
if(!is_visible) { print_to(caller, "You must look at your monster to edit it"); return; }
- Damage (mon, world, world, mon.health + mon.max_health + 200, DEATH_KILL, mon.origin, '0 0 0');
+ Damage (mon, world, world, mon.health + mon.max_health + 200, DEATH_KILL.m_id, mon.origin, '0 0 0');
print_to(caller, strcat("Your pet '", mon.monster_name, "' has been brutally mutilated"));
return;
}
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;