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