From afa4274bf4929a588fd094275521718c3dd6b009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peltier?= Date: Thu, 11 Jan 2024 23:08:01 +0100 Subject: [PATCH] Fix items flashing for a frame when giving them --- dlls/player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/player.cpp b/dlls/player.cpp index 036dc9522..c74f4e51d 100644 --- a/dlls/player.cpp +++ b/dlls/player.cpp @@ -3245,6 +3245,7 @@ static edict_t* GiveNamedItem_Common(entvars_t* pev, const char* pszName) ALERT(at_console, "NULL Ent in GiveNamedItem!\n"); return nullptr; } + VARS(pent)->effects |= EF_NODRAW; VARS(pent)->origin = pev->origin; pent->v.spawnflags |= SF_NORESPAWN;