54 for(
int j = 0; j < n; ++j)
60 else if(
argv(j) ==
"strength") this.
items |= ITEM_Strength.m_itemid;
61 else if(
argv(j) ==
"invincible") this.
items |= ITEM_Shield.m_itemid;
62 else if(
argv(j) ==
"speed") this.
items |= ITEM_Speed.m_itemid;
63 else if(
argv(j) ==
"invisibility") this.
items |= ITEM_Invisibility.m_itemid;
65 else if(
argv(j) ==
"jetpack") this.
items |= ITEM_Jetpack.m_itemid;
66 else if(
argv(j) ==
"fuel_regen") this.
items |= ITEM_FuelRegen.m_itemid;
69 FOREACH(StatusEffects, it.instanceOfBuff,
71 string s = Buff_CompatName(argv(j));
75 if(!this.buffs_finished)
76 this.buffs_finished = it.m_time(it);
82 if(s == it.netname || s == it.m_deprecated_netname)
84 STAT(WEAPONS,
this) |= (it.m_wepset);
93 string itemprefix, valueprefix;
105 valueprefix =
"max ";
110 valueprefix =
"min ";
114 itemprefix =
"minus ";
115 valueprefix =
"max ";
119 error(
"invalid spawnflags");
124 str = sprintf(
"%s %s%d %s", str, itemprefix,
boolean(this.
items &
IT_UNLIMITED_AMMO),
"unlimited_weapon_ammo");
126 str = sprintf(
"%s %s%d %s", str, valueprefix, this.
strength_finished *
boolean(this.
items & ITEM_Strength.m_itemid),
"strength");
127 str = sprintf(
"%s %s%d %s", str, valueprefix, this.
invincible_finished *
boolean(this.
items & ITEM_Shield.m_itemid),
"invincible");
128 str = sprintf(
"%s %s%d %s", str, valueprefix, this.
invisibility_finished *
boolean(this.
items & ITEM_Invisibility.m_itemid),
"invisibility");
129 str = sprintf(
"%s %s%d %s", str, valueprefix, this.
speed_finished *
boolean(this.
items & ITEM_Speed.m_itemid),
"speed");
131 str = sprintf(
"%s %s%d %s", str, itemprefix,
boolean(this.
items & ITEM_Jetpack.m_itemid),
"jetpack");
132 str = sprintf(
"%s %s%d %s", str, itemprefix,
boolean(this.
items & ITEM_FuelRegen.m_itemid),
"fuel_regen");
134 res =
GetResource(
this, RES_SHELLS);
if(res != 0) str = sprintf(
"%s %s%d %s", str, valueprefix,
max(0, res),
"shells");
135 res =
GetResource(
this, RES_BULLETS);
if(res != 0) str = sprintf(
"%s %s%d %s", str, valueprefix,
max(0, res),
"nails");
136 res =
GetResource(
this, RES_ROCKETS);
if(res != 0) str = sprintf(
"%s %s%d %s", str, valueprefix,
max(0, res),
"rockets");
137 res =
GetResource(
this, RES_CELLS);
if(res != 0) str = sprintf(
"%s %s%d %s", str, valueprefix,
max(0, res),
"cells");
138 res =
GetResource(
this, RES_FUEL);
if(res != 0) str = sprintf(
"%s %s%d %s", str, valueprefix,
max(0, res),
"fuel");
139 res =
GetResource(
this, RES_HEALTH);
if(res != 0) str = sprintf(
"%s %s%d %s", str, valueprefix,
max(0, res),
"health");
140 res =
GetResource(
this,
RES_ARMOR);
if(res != 0) str = sprintf(
"%s %s%d %s", str, valueprefix,
max(0, res),
"armor");
141 FOREACH(StatusEffects, it.instanceOfBuff, str = sprintf(
"%s %s%d %s", str, valueprefix, this.
buffs_finished *
boolean(this.
buffdef == it), it.netname));
142 FOREACH(
Weapons, it != WEP_Null, str = sprintf(
"%s %s%d %s", str, itemprefix, !!(
STAT(WEAPONS,
this) & (it.m_wepset)), it.netname));
147 for(
int j = 0; j < n; ++j)