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;
|
vector vOldVelocity = self.velocity;
|
||||||
float fOldPMoveFlags = self.pmove_flags;
|
float fOldPMoveFlags = self.pmove_flags;
|
||||||
|
|
||||||
if ( getplayerkeyvalue( player_localnum, "*spectator" ) == "1" ) {
|
if ( getplayerkeyvalue( player_localnum, "*spectator" ) == "0" ) {
|
||||||
self.movetype = MOVETYPE_NOCLIP;
|
|
||||||
} else {
|
|
||||||
self.movetype = MOVETYPE_WALK;
|
self.movetype = MOVETYPE_WALK;
|
||||||
|
} else {
|
||||||
|
self.movetype = MOVETYPE_NOCLIP;
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( int i = servercommandframe + 1; i <= clientcommandframe; i++ ) {
|
for ( int i = servercommandframe + 1; i <= clientcommandframe; i++ ) {
|
||||||
|
|
|
@ -201,7 +201,7 @@ void Spawn_MakeSpectator( void ) {
|
||||||
setsize (self, '-16 -16 -16', '16 16 16');
|
setsize (self, '-16 -16 -16', '16 16 16');
|
||||||
|
|
||||||
self.view_ofs = self.velocity = '0 0 0';
|
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
|
// Clear all the ammo stuff
|
||||||
for ( int i = 0; i < CS_WEAPON_COUNT; i++ ) {
|
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