mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-28 14:38:06 +03:00
SG_Detonate: make event realible (#875)
This commit is contained in:
parent
3a0970a1cd
commit
96ba309e4a
@ -600,9 +600,15 @@ void CGrenade::__API_HOOK(SG_Detonate)()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_bDetonated = true;
|
m_bDetonated = true;
|
||||||
PLAYBACK_EVENT_FULL(0, nullptr, m_usEvent, 0, pev->origin, (float *)&g_vecZero, 0, 0, 0, 1, m_bLightSmoke, FALSE);
|
|
||||||
m_vSmokeDetonate = pev->origin;
|
m_vSmokeDetonate = pev->origin;
|
||||||
|
|
||||||
|
int flags = 0;
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
flags = FEV_RELIABLE;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
PLAYBACK_EVENT_FULL(flags, nullptr, m_usEvent, 0, m_vSmokeDetonate, (float *)&g_vecZero, 0, 0, 0, 1, m_bLightSmoke, FALSE);
|
||||||
|
|
||||||
pev->velocity.x = RANDOM_FLOAT(-175, 175);
|
pev->velocity.x = RANDOM_FLOAT(-175, 175);
|
||||||
pev->velocity.y = RANDOM_FLOAT(-175, 175);
|
pev->velocity.y = RANDOM_FLOAT(-175, 175);
|
||||||
pev->velocity.z = RANDOM_FLOAT(250, 350);
|
pev->velocity.z = RANDOM_FLOAT(250, 350);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user