Added player void damage
This commit is contained in:
parent
c8f8597774
commit
cb167f78e3
@ -611,11 +611,14 @@ void cPlayer::SetSprint(bool a_IsSprinting)
|
||||
|
||||
void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI)
|
||||
{
|
||||
if (a_TDI.DamageType != dtInVoid)
|
||||
{
|
||||
if (m_GameMode == eGameMode_Creative)
|
||||
{
|
||||
// No damage / health in creative mode
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
super::DoTakeDamage(a_TDI);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user