Skip to content

Commit

Permalink
Reset all kinds of stunts on spawn
Browse files Browse the repository at this point in the history
I hope this will fix the "prone on spawn" bug that sometimes occurs.
The tutor popus in EndSlide need to be blocked, because they cause a crash on first spawn, at least in listen-server mode.
  • Loading branch information
TomyLobo committed Nov 14, 2018
1 parent eb0dbf1 commit 3b388de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mp/src/game/server/sdk/sdk_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,10 @@ void CSDKPlayer::Spawn()
m_flNextSuicideTime = 0;
m_iRaceWaypoint = 0;

m_Shared.EndDive();
m_Shared.EndRoll();
m_Shared.EndSlide(true);

if (m_bGotWorthIt)
{
m_flTotalStyle += da_stylemeteractivationcost.GetFloat() - m_flStylePoints;
Expand Down

0 comments on commit 3b388de

Please sign in to comment.