You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Much like the code above this keeps the fake client flag and sets the client flag as originally intended. The proxy flag isn't needed here because it only applies to HLTV spectators, who can't participate in gameplay.
In CDisplacerBall::BallTouch there is code to teleport players hit by Displacer balls. This line is part of that:
pPlayer->pev->flags = FL_CLIENT;
Change this to:
//Clear any flags set on player (onground, using grapple, etc).
pPlayer->pev->flags &= FL_FAKECLIENT;
pPlayer->pev->flags |= FL_CLIENT;
Other games may also have similar code.
The text was updated successfully, but these errors were encountered:
SamVanheer
added a commit
to twhl-community/halflife-op4-updated
that referenced
this issue
Mar 9, 2022
The
FL_FAKECLIENT
flag is cleared in some places which can cause problems with bots.Change this:
halflife/dlls/player.cpp
Lines 2859 to 2860 in c7240b9
To this:
pev->flags &= FL_PROXY | FL_FAKECLIENT; // keep proxy and fakeclient flags set by engine pev->flags |= FL_CLIENT;
In Opposing Force there are also a few cases:
In
CBasePlayer::Menu_Char_Input
there is code to reset players that are going from observer mode to joining a time. This line is part of that:Change this to:
Much like the code above this keeps the fake client flag and sets the client flag as originally intended. The proxy flag isn't needed here because it only applies to HLTV spectators, who can't participate in gameplay.
In
CDisplacerBall::BallTouch
there is code to teleport players hit by Displacer balls. This line is part of that:Change this to:
//Clear any flags set on player (onground, using grapple, etc). pPlayer->pev->flags &= FL_FAKECLIENT; pPlayer->pev->flags |= FL_CLIENT;
Other games may also have similar code.
The text was updated successfully, but these errors were encountered: