QoL ; Made it so f2 cmd 'tele' resets speed and unfreezes the tee upon teleporting

This commit is contained in:
Steinchen99 2023-09-28 19:02:05 +02:00 committed by heinrich5991
parent fb290e4d23
commit 7b58b77c5e

View file

@ -386,6 +386,8 @@ void CGameContext::ConTeleport(IConsole::IResult *pResult, void *pUserData)
if(pChr && pSelf->GetPlayerChar(TeleTo))
{
pSelf->Teleport(pChr, pSelf->m_apPlayers[TeleTo]->m_ViewPos);
pChr->UnFreeze();
pChr->Core()->m_Vel = vec2(0, 0);
}
}