Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dropship related crash #662

Merged
merged 14 commits into from
Jul 10, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ void function SpawnPlayerIntoDropship( entity player )
}

// respawn player and holster their weapons so they aren't out
player.RespawnPlayer( null )
if ( !IsAlive( player ) )
player.RespawnPlayer( null )
HolsterAndDisableWeapons(player)
player.DisableWeaponViewModel()

Expand Down Expand Up @@ -255,4 +256,4 @@ void function PlayerJumpsFromDropship( entity player )
WaitFrame()

TryGameModeAnnouncement( player )
}
}
Loading