+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qh"
+ #include "../../dpdefs/dpextensions.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "spawning.qh"
+ #include "weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../mutators/mutators_include.qh"
+#endif
+
string W_Apply_Weaponreplace(string in)
{
float n = tokenize_console(in);
{
replacement = "";
s = argv(i);
-
+
for(j = WEP_FIRST; j <= WEP_LAST; ++j)
{
e = get_weaponinfo(j);
string s;
entity oldself;
float i, j;
- float f;
+ int f;
if(self.classname != "droppedweapon" && self.classname != "replacedweapon")
{
if(e.spawnflags & WEP_FLAG_MUTATORBLOCKED)
{
objerror("Attempted to spawn a mutator-blocked weapon rejected");
- startitem_failed = TRUE;
+ startitem_failed = true;
return;
}
if(s == "")
{
remove(self);
- startitem_failed = TRUE;
+ startitem_failed = true;
return;
}
t = tokenize_console(s);
if(wpn == 0)
{
remove(self);
- startitem_failed = TRUE;
+ startitem_failed = true;
return;
}
}
// pickup anyway
if(g_pickup_weapons_anyway)
- self.pickup_anyway = TRUE;
+ self.pickup_anyway = true;
f = FL_WEAPON;