- Joined
- Jul 19, 2024
- Messages
- 48
- Reaction score
- 19
- Points
- 8
#ifdef __DEATH_ZONE
BOOL CMover::IsDeathZoneTarget(CMover* pMover)
{
CWorld* pWorld = GetWorld();
if (pWorld && pWorld->IsDeathZone())
{
if (IsRegionAttr(RA_SAFETY) || IsRegionAttr(RA_COLLECTING))
{
return FALSE;
}
if (GetAsyncKeyState(VK_CONTROL) & 0x8000)
{
return TRUE;
}
return FALSE;
}
return FALSE;
}
#endif
This is the system I'm learning to write. It's pvp in the exception map, in safezone and collecting. Of course it works fine.
Until I added the condition to press Ctrl before killing.
But of course it works fine on my computer.
After I run the server on my personal server
And enter the game through my own pc
The damage disappears after I press Ctrl and attack other players.