X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmonsters%2Fsv_monsters.qh;h=b6cab12b652872bc6f9a6af63079acad1c540315;hb=76afe6b4bb64b3f349bcf8aeadd04d0b319a7d01;hp=b667373a0f7926496b4633dc16dbc29e69d2b167;hpb=275cead32998c415fff49383920c26e21de48662;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/monsters/sv_monsters.qh b/qcsrc/common/monsters/sv_monsters.qh index b667373a0..b6cab12b6 100644 --- a/qcsrc/common/monsters/sv_monsters.qh +++ b/qcsrc/common/monsters/sv_monsters.qh @@ -1,8 +1,8 @@ #pragma once +#include "all.qh" + // stats networking -.int stat_monsters_killed; -.int stat_monsters_total; int monsters_total; int monsters_killed; @@ -72,7 +72,7 @@ void Monster_Remove(entity this); void monsters_setstatus(entity this); -bool Monster_Spawn(entity this, bool check_appear, int mon_id); +bool Monster_Spawn(entity this, bool check_appear, Monster mon); void monster_setupcolors(entity this); @@ -112,3 +112,9 @@ ALLMONSTERSOUNDS #undef _MSOUND float GetMonsterSoundSampleField_notFound; + +IntrusiveList g_monsters; +STATIC_INIT(g_monsters) { g_monsters = IL_NEW(); } + +IntrusiveList g_monster_targets; +STATIC_INIT(g_monster_targets) { g_monster_targets = IL_NEW(); }