Add spectator id command. yay!

This commit is contained in:
Adam Olsen 2001-07-20 09:17:49 +00:00
parent 9977533035
commit 6b6b91967e

View file

@ -24,6 +24,7 @@ void() SpectatorConnect =
stuffcmd(self, "bind 9 \"impulse 9\"\n");
stuffcmd(self, "bind 0 \"impulse 10\"\n");
TeamFortress_Alias("id", #TF_ID, 0);
self.goalentity = world; // used for impulse 1 below
};
@ -64,6 +65,11 @@ void() SpectatorImpulseCommand =
self.fixangle = #TRUE; // turn this way immediately
}
}
else if (self.impulse == #TF_ID)
{
makevectors(self.v_angle);
TeamFortress_ID(#FALSE);
}
self.impulse = 0; //cl_chasecam chasecam
};
@ -82,4 +88,4 @@ void() SpectatorThink =
if (self.impulse)
SpectatorImpulseCommand();
};
};