- enable DM support for sv_noplayerclip

- fixed voodoo dolls with sv_noplayerclip
- fixed autoaim working incorrectly with sv_noplayerclip
This commit is contained in:
nashmuhandes 2023-01-08 22:55:10 +08:00
commit 2fa2533982
3 changed files with 39 additions and 16 deletions

View file

@ -575,11 +575,6 @@ CVAR (Flag, sv_noextraammo, dmflags2, DF2_NO_EXTRA_AMMO);
CUSTOM_CVAR(Int, dmflags3, 0, CVAR_SERVERINFO | CVAR_NOINITCALL)
{
if ((self & DF3_NO_PLAYER_CLIP) && (!multiplayer || deathmatch))
{
self = self & ~DF3_NO_PLAYER_CLIP;
Printf("No player clipping is only available in coop\n");
}
}
CVAR(Flag, sv_noplayerclip, dmflags3, DF3_NO_PLAYER_CLIP);