Boost fixes?
This commit is contained in:
@@ -8,8 +8,6 @@ BoostSystem::BoostSystem(SystemParams params)
|
|||||||
|
|
||||||
bool BoostSystem::OnPlayerDamage(Events::PlayerDamage& e)
|
bool BoostSystem::OnPlayerDamage(Events::PlayerDamage& e)
|
||||||
{
|
{
|
||||||
if (!IsClient) {
|
|
||||||
|
|
||||||
if (e.Victim.ID == e.Inflictor.ID) {
|
if (e.Victim.ID == e.Inflictor.ID) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -54,7 +52,7 @@ bool BoostSystem::OnPlayerDamage(Events::PlayerDamage& e)
|
|||||||
m_World->SetName(boostAssaultEntity.ID, className);
|
m_World->SetName(boostAssaultEntity.ID, className);
|
||||||
m_World->SetParent(boostAssaultEntity.ID, e.Victim.ID);
|
m_World->SetParent(boostAssaultEntity.ID, e.Victim.ID);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user