#include "sv_new_toys.qh"
+#include "../random_items/sv_random_items.qh"
+
/*
CORE laser vortex lg rl cry gl elec hagar fireb hook
MUTATOR_HOOKFUNCTION(nt, SetWeaponreplace)
{
+ if (autocvar_g_random_items)
+ {
+ // Do not replace weapons when random items are enabled.
+ return;
+ }
entity wep = M_ARGV(0, entity);
entity wepinfo = M_ARGV(1, entity);
string ret_string = M_ARGV(2, string);
#include "sv_random_items.qh"
+
/// \file
/// \brief Source file that contains implementation of the random items mutator.
/// \author Lyberta
//======================= Global variables ====================================
-bool autocvar_g_random_items; ///< Whether to enable random items.
-
// Replace cvars
/// \brief Classnames to replace %s with.