Netcode Overhaul
Rewrote netcode to be more stable and functional. Packet-server mode has been restrategized and will now be the default netmode when playing with 3+ non-LAN players. TryRunTics has been cleaned up with older tick control behavior removed to account for the rewritten renderer. The main thread is now more consistent when playing online to prevent potential slow downs and lock ups. Load barriers are better accounted for to prevent spikes on level transition. Improvements to chat and lobby systems including a force start game button. Added a suite of new host options such as kicking and controlling who can pause the game. Max players increased from 8 to 16 since the new code can now handle it. Note: Demo functionality is untested. This will be rewritten at a later time alongside improvements to GZDoom's playback features (e.g. freecam mode).
This commit is contained in:
parent
abfd91e8f1
commit
94be307225
45 changed files with 3119 additions and 2669 deletions
|
|
@ -63,7 +63,7 @@ extern dirtype_t diags[4];
|
|||
|
||||
//Called while the bot moves after its dest mobj
|
||||
//which can be a weapon/enemy/item whatever.
|
||||
void DBot::Roam (ticcmd_t *cmd)
|
||||
void DBot::Roam (usercmd_t *cmd)
|
||||
{
|
||||
|
||||
if (Reachable(dest))
|
||||
|
|
@ -89,7 +89,7 @@ void DBot::Roam (ticcmd_t *cmd)
|
|||
}
|
||||
}
|
||||
|
||||
bool DBot::Move (ticcmd_t *cmd)
|
||||
bool DBot::Move (usercmd_t *cmd)
|
||||
{
|
||||
double tryx, tryy;
|
||||
bool try_ok;
|
||||
|
|
@ -136,20 +136,20 @@ bool DBot::Move (ticcmd_t *cmd)
|
|||
}
|
||||
if (good && ((pr_botopendoor() >= 203) ^ (good & 1)))
|
||||
{
|
||||
cmd->ucmd.buttons |= BT_USE;
|
||||
cmd->ucmd.forwardmove = FORWARDRUN;
|
||||
cmd->buttons |= BT_USE;
|
||||
cmd->forwardmove = FORWARDRUN;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
else //Move forward.
|
||||
cmd->ucmd.forwardmove = FORWARDRUN;
|
||||
cmd->forwardmove = FORWARDRUN;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool DBot::TryWalk (ticcmd_t *cmd)
|
||||
bool DBot::TryWalk (usercmd_t *cmd)
|
||||
{
|
||||
if (!Move (cmd))
|
||||
return false;
|
||||
|
|
@ -158,7 +158,7 @@ bool DBot::TryWalk (ticcmd_t *cmd)
|
|||
return true;
|
||||
}
|
||||
|
||||
void DBot::NewChaseDir (ticcmd_t *cmd)
|
||||
void DBot::NewChaseDir (usercmd_t *cmd)
|
||||
{
|
||||
dirtype_t d[3];
|
||||
|
||||
|
|
@ -290,7 +290,7 @@ void DBot::NewChaseDir (ticcmd_t *cmd)
|
|||
// This is also a traverse function for
|
||||
// bots pre-rocket fire (preventing suicide)
|
||||
//
|
||||
bool FCajunMaster::CleanAhead (AActor *thing, double x, double y, ticcmd_t *cmd)
|
||||
bool FCajunMaster::CleanAhead (AActor *thing, double x, double y, usercmd_t *cmd)
|
||||
{
|
||||
FCheckPosition tm;
|
||||
|
||||
|
|
@ -310,7 +310,7 @@ bool FCajunMaster::CleanAhead (AActor *thing, double x, double y, ticcmd_t *cmd)
|
|||
|
||||
//Jumpable
|
||||
if(tm.floorz > (thing->Sector->floorplane.ZatPoint(x, y)+thing->MaxStepHeight))
|
||||
cmd->ucmd.buttons |= BT_JUMP;
|
||||
cmd->buttons |= BT_JUMP;
|
||||
|
||||
|
||||
if ( !(thing->flags & MF_TELEPORT) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue