this.spectatorspeed = maxspeed_mod;
if (this.impulse && this.impulse <= 19 || (this.impulse >= 200 && this.impulse <= 209) || (this.impulse >= 220 && this.impulse <= 229))
{
- if (this.lastclassname != "player")
+ if (this.lastclassname != STR_PLAYER)
{
if (this.impulse == 10 || this.impulse == 15 || this.impulse == 18 || (this.impulse >= 200 && this.impulse <= 209))
this.spectatorspeed = bound(1, this.spectatorspeed + 0.5, 5);
bool SpectateNext()
{SELFPARAM();
- other = find(self.enemy, classname, "player");
+ other = find(self.enemy, classname, STR_PLAYER);
if (MUTATOR_CALLHOOK(SpectateNext, self, other))
other = spec_player;
else if (!other)
- other = find(other, classname, "player");
+ other = find(other, classname, STR_PLAYER);
if(other) { SetSpectatee(self, other); }
bool SpectatePrev()
{SELFPARAM();
// NOTE: chain order is from the highest to the lower entnum (unlike find)
- other = findchain(classname, "player");
+ other = findchain(classname, STR_PLAYER);
if (!other) // no player
return false;
{
if (SAME_TEAM(start, player)) return start;
// continue from current player
- for (entity e = start; (e = find(e, classname, "player")); )
+ for (entity e = start; (e = find(e, classname, STR_PLAYER)); )
{
if (SAME_TEAM(player, e)) return e;
}
// restart from begining
- for (entity e = NULL; (e = find(e, classname, "player")); )
+ for (entity e = NULL; (e = find(e, classname, STR_PLAYER)); )
{
if (SAME_TEAM(player, e)) return e;
}
int l = LMS_NewPlayerLives();
- head = find(world, classname, "player");
+ head = find(world, classname, STR_PLAYER);
if(head)
have_player = true;
- head2 = find(head, classname, "player");
+ head2 = find(head, classname, STR_PLAYER);
if(head2)
have_players = true;