Slight spectator adjustment.
This commit is contained in:
parent
5320775c33
commit
a10cd4450b
4 changed files with 4 additions and 4 deletions
|
@ -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++ ) {
|
||||
|
|
|
@ -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.
BIN
freecs/progs.dat
BIN
freecs/progs.dat
Binary file not shown.
Loading…
Reference in a new issue