iw5: test guns (#4)
All checks were successful
Build / build-linux (push) Successful in 7s

This commit is contained in:
2024-05-31 09:59:13 +00:00
parent 6493347cd1
commit a6adab0035
5 changed files with 69 additions and 8 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) + ")" );
}