}
}
}
+
+void buffs_Initialize()
+{
+ // if buffs are above 0, allow random spawning
+ if(autocvar_g_buffs > 0 && autocvar_g_buffs_spawn_count > 0)
+ InitializeEntity(NULL, buffs_DelayedInit, INITPRIO_FINDTARGET);
+}
#pragma once
+#include <common/mutators/base.qh>
+
#include "buffs.qh"
-void buffs_DelayedInit(entity this);
+void buffs_Initialize();
AUTOCVAR(g_buffs, int, -1, "Enable buffs, -1: enabled but no auto location or replacing powerups, 1: enabled and can replace them");
{
MUTATOR_ONADD
{
- if(autocvar_g_buffs > 0)
- InitializeEntity(NULL, buffs_DelayedInit, INITPRIO_FINDTARGET);
+ buffs_Initialize();
}
}
#include <common/constants.qh>
#include <common/deathtypes/all.qh>
+#include <common/gamemodes/gamemode/cts/cts.qh>
#include <common/items/_mod.qh>
#include <common/mapobjects/subs.qh>
#include <common/mapobjects/triggers.qh>