Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion racesow/progs/gametypes/racesow/commands.as
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ class Command_Practicemode : Racesow_Command
leave = true;
else
leave = false;
if ( leave ^^ player.practicing )
if ( leave && player.practicing )
return true;
}

Expand All @@ -897,6 +897,7 @@ class Command_Practicemode : Racesow_Command
}
else
{
player.chronoStartTime = levelTime;
player.practicing = true;
player.inNoclip = false;
player.sendAward( S_COLOR_GREEN + "You have entered practice mode" );
Expand Down
4 changes: 2 additions & 2 deletions racesow/progs/gametypes/racesow/main.as
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,8 @@ void GT_ThinkRules()
client.setHUDStat( STAT_MESSAGE_ALPHA, 0 );
client.setHUDStat( STAT_MESSAGE_BETA, 0 );

if( player.isUsingChrono )
client.setHUDStat( STAT_TIME_ALPHA, (levelTime - player.chronoTime()) / 100 );
if( player.isUsingChrono || player.practicing )
client.setHUDStat( STAT_TIME_SELF, (levelTime - player.chronoTime()) / 100 );
}

racesowGametype.ThinkRules();
Expand Down
3 changes: 3 additions & 0 deletions racesow/progs/gametypes/racesow/player.as
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,9 @@ class Racesow_Player
if( this.client.getEnt().team == TEAM_SPECTATOR )
this.inNoclip = false;

if ( this.practicing )
this.chronoStartTime = levelTime;

if ( this.practicing && this.positionSaved )
{
this.teleport( this.positionOrigin, this.positionAngles, false, false, false );
Expand Down