This is an old revision of the document!
bool IsServer()
Returns true if the script is running on a server.
Any running instance of ZDoom that performs authoritative gameplay calculations is considered to be a server.
The following are servers:
!IsClient() is not equivalent to IsServer(). Both can be true.
Using IsClient and IsServer correctly ensures that your mod runs correctly in both singleplayer and multiplayer:
if (IsServer())
{
// Run serverside gameplay code.
}
if (IsClient())
{
// Draw hud, spawn effects.
}