+#include "spawning.qh"
+#include "../_all.qh"
+
+#include "weaponsystem.qh"
+#include "../mutators/mutators_include.qh"
+#include "../t_items.qh"
+#include "../../common/weapons/all.qh"
+
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;