Skip to content

Commit

Permalink
improve it and add more tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
M0REKZ committed Jan 2, 2025
1 parent 3643524 commit 7dcfcaf
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions src/game/server/entities/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1991,14 +1991,44 @@ void CCharacter::HandleTiles(int Index)
void CCharacter::HandleQuads()
{
CQuad* pQuad = nullptr;
Collision()->GetQuadAt(m_Pos,&pQuad);
if(pQuad)
int StartNum = 0;
while(true)
{
StartNum = Collision()->GetQuadAt(m_Pos,&pQuad,StartNum);
StartNum++;
if(!pQuad)
break;

if(pQuad->m_ColorEnvOffset == TILE_FREEZE)
{
Freeze();
}
if(pQuad->m_ColorEnvOffset == TILE_DFREEZE)
{
m_Core.m_DeepFrozen = true;
}
if(pQuad->m_ColorEnvOffset == TILE_LFREEZE)
{
m_Core.m_LiveFrozen = true;
}
if(pQuad->m_ColorEnvOffset == TILE_DUNFREEZE)
{
m_Core.m_DeepFrozen = false;
}
if(pQuad->m_ColorEnvOffset == TILE_LUNFREEZE)
{
m_Core.m_LiveFrozen = false;
}
if(pQuad->m_ColorEnvOffset == TILE_UNFREEZE)
{
UnFreeze();
}
if(pQuad->m_ColorEnvOffset == TILE_DEATH)
{
Die(m_pPlayer->GetCid(), WEAPON_WORLD);
}
}

}

void CCharacter::HandleTuneLayer()
Expand Down

0 comments on commit 7dcfcaf

Please sign in to comment.