Slight spectator adjustment.

This commit is contained in:
Marco Cawthorne 2017-05-01 01:27:23 +02:00
parent 5320775c33
commit a10cd4450b
4 changed files with 4 additions and 4 deletions

View File

@ -32,10 +32,10 @@ float Player_PreDraw( void ) {
vector vOldVelocity = self.velocity;
float fOldPMoveFlags = self.pmove_flags;
if ( getplayerkeyvalue( player_localnum, "*spectator" ) == "1" ) {
self.movetype = MOVETYPE_NOCLIP;
} else {
if ( getplayerkeyvalue( player_localnum, "*spectator" ) == "0" ) {
self.movetype = MOVETYPE_WALK;
} else {
self.movetype = MOVETYPE_NOCLIP;
}
for ( int i = servercommandframe + 1; i <= clientcommandframe; i++ ) {

View File

@ -201,7 +201,7 @@ void Spawn_MakeSpectator( void ) {
setsize (self, '-16 -16 -16', '16 16 16');
self.view_ofs = self.velocity = '0 0 0';
forceinfokey( self, "*spectator", "1" ); // Make sure we are known as a spectator
forceinfokey( self, "*spectator", "2" ); // Make sure we are known as a spectator
// Clear all the ammo stuff
for ( int i = 0; i < CS_WEAPON_COUNT; i++ ) {

Binary file not shown.

Binary file not shown.