mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-06 12:04:17 +00:00
Add screenshake on explosion.
This commit is contained in:
parent
b606972fa9
commit
23e2d00ae9
@ -64,6 +64,8 @@ void CGrenade::Explode( TraceResult *pTrace, int bitsDamageType )
|
||||
|
||||
int iContents = UTIL_PointContents( pev->origin );
|
||||
|
||||
UTIL_ScreenShake( pev->origin, 25.0, 150.0, 1.0, 750.0 );
|
||||
|
||||
MESSAGE_BEGIN( MSG_PAS, SVC_TEMPENTITY, pev->origin );
|
||||
WRITE_BYTE( TE_EXPLOSION ); // This makes a dynamic light and the explosion sprites/sound
|
||||
WRITE_COORD( pev->origin.x ); // Send to PAS because of the sound
|
||||
|
Loading…
x
Reference in New Issue
Block a user