1
0

Exported individual projectile classes to Lua API.

They used to be exported, but then they were moved to separate files and those werent' added to the ToLua processing list.
This commit is contained in:
Mattes D
2014-10-21 21:25:52 +02:00
parent bcb839d07b
commit 0c0c762412
18 changed files with 367 additions and 221 deletions

View File

@@ -43,3 +43,28 @@ void cThrownSnowballEntity::OnHitEntity(cEntity & a_EntityHit, const Vector3d &
m_DestroyTimer = 5;
}
void cThrownSnowballEntity::Tick(float a_Dt, cChunk & a_Chunk)
{
if (m_DestroyTimer > 0)
{
m_DestroyTimer--;
if (m_DestroyTimer == 0)
{
Destroy();
return;
}
}
else
{
super::Tick(a_Dt, a_Chunk);
}
}