Fix CSprayCan position relative to player (#167)

This commit is contained in:
In-line 2017-06-29 14:21:56 +04:00 committed by Dmitry Novikov
parent 80a9c17c73
commit a34740eae5

View File

@ -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;