From a34740eae57fe5ddc120d10ccc1bc3238f212247 Mon Sep 17 00:00:00 2001 From: In-line Date: Thu, 29 Jun 2017 14:21:56 +0400 Subject: [PATCH] Fix CSprayCan position relative to player (#167) --- regamedll/dlls/player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index ec960fc8..3d8899d5 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -5874,7 +5874,11 @@ const char *CBasePlayer::__MAKE_VHOOK(TeamID)() void CSprayCan::Spawn(entvars_t *pevOwner) { +#ifdef REGAMEDLL_FIXES + pev->origin = pevOwner->origin + pevOwner->view_ofs; +#else pev->origin = pevOwner->origin + Vector(0, 0, 32); +#endif pev->angles = pevOwner->v_angle; pev->owner = ENT(pevOwner); pev->frame = 0;