iw5: rpg timer
All checks were successful
Build / build-linux (push) Successful in 7s

This commit is contained in:
2024-05-31 11:55:42 +02:00
parent 6f8e7954d4
commit d10cea3ed5
5 changed files with 41 additions and 4 deletions

View File

@ -3,6 +3,7 @@
init()
{
setDvar( "bg_bounces", 1 );
setDvar( "player_sustainAmmo", 1 ); // Requires sv_cheats
thread onPlayerConnect();
}
@ -33,7 +34,7 @@ onPlayerSpawned()
{
self endon( "disconnect" );
for ( ;; )
while ( true )
{
self waittill( "spawned_player" );
@ -57,7 +58,7 @@ onWeaponFired()
level endon( "game_ended" );
self endon( "disconnected" );
for ( ;; )
while ( true )
{
self waittill( "weapon_fired", weapon );
@ -92,7 +93,7 @@ displaySpeed()
if ( isDefined( self.last_rpg_shot ) && self.last_rpg_shot != 0 )
{
late = getTime() - self.last_rpg_shot;
if (late < 500)
if (late <= 500)
{
iPrintLn( "Late RPG (+" + (late) + ")" );
}