diff --git a/cl_dll/quake/quake_weapons.cpp b/cl_dll/quake/quake_weapons.cpp index 542cf8ab..60dff05e 100644 --- a/cl_dll/quake/quake_weapons.cpp +++ b/cl_dll/quake/quake_weapons.cpp @@ -337,7 +337,7 @@ void CBasePlayerWeapon::ItemPostFrame( void ) m_bPlayedIdleAnim = TRUE; if ( m_pPlayer->m_iQuakeWeapon == IT_LIGHTNING ) - PLAYBACK_EVENT_FULL( FEV_NOTHOST, m_pPlayer->edict(), m_pPlayer->m_usLightning, 0, (float *)&m_pPlayer->pev->origin, (float *)&m_pPlayer->pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, m_pPlayer->edict(), m_pPlayer->m_usLightning, 0, m_pPlayer->pev->origin, m_pPlayer->pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); } WeaponIdle( ); @@ -421,7 +421,7 @@ void CBasePlayer::Killed( entvars_t *pevAttacker, int iGib ) { if ( m_iQuakeWeapon == IT_LIGHTNING ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, (float *)&pev->origin, (float *)&pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, pev->origin, pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); } // Holster weapon immediately, to allow it to cleanup diff --git a/dlls/3wave/flags.cpp b/dlls/3wave/flags.cpp index 7e4155f4..4a022453 100644 --- a/dlls/3wave/flags.cpp +++ b/dlls/3wave/flags.cpp @@ -176,7 +176,7 @@ void CItemFlag::FlagTouch( CBaseEntity *pToucher ) Capture( pPlayer, RED ); PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - pPlayer->edict(), g_usCarried, 0, (float*)&g_vecZero, (float*)&g_vecZero, + pPlayer->edict(), g_usCarried, 0, g_vecZero, g_vecZero, 0.0, 0.0, pPlayer->entindex(), pPlayer->pev->team, 1, 0 ); return; } @@ -223,7 +223,7 @@ void CItemFlag::FlagTouch( CBaseEntity *pToucher ) pCarriedFlag->Owner = pPlayer; PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - pPlayer->edict(), g_usCarried, 0, (float*)&g_vecZero, (float*)&g_vecZero, + pPlayer->edict(), g_usCarried, 0, g_vecZero, g_vecZero, 0.0, 0.0, pPlayer->entindex(), pPlayer->pev->team, 0, 0 ); UTIL_Remove( this ); @@ -269,7 +269,7 @@ void CItemFlag::FlagTouch( CBaseEntity *pToucher ) pCarriedFlag->Owner = pPlayer; PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - pPlayer->edict(), g_usCarried, 0, (float*)&g_vecZero, (float*)&g_vecZero, + pPlayer->edict(), g_usCarried, 0, g_vecZero, g_vecZero, 0.0, 0.0, pPlayer->entindex(), pPlayer->pev->team, 0, 0 ); } @@ -382,7 +382,7 @@ void CItemFlag::Materialize() } PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - edict(), g_usFlagSpawn, 0, (float*)&g_vecZero, (float*)&g_vecZero, + edict(), g_usFlagSpawn, 0, g_vecZero, g_vecZero, 0.0, 0.0, pev->team, 0, 0, 0 ); Dropped = FALSE; diff --git a/dlls/3wave/grapple.cpp b/dlls/3wave/grapple.cpp index c95f8a41..9bbab3b1 100644 --- a/dlls/3wave/grapple.cpp +++ b/dlls/3wave/grapple.cpp @@ -36,7 +36,7 @@ void CGrapple::Reset_Grapple() pOwner->m_bHook_Out = FALSE; PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - pOwner->edict(), g_usCable, 0, (float*)&g_vecZero, (float*)&g_vecZero, + pOwner->edict(), g_usCable, 0, g_vecZero, g_vecZero, 0.0, 0.0, entindex(), pev->team, 1, 0 ); STOP_SOUND( edict(), CHAN_WEAPON, "weapons/grhang.wav" ); @@ -261,7 +261,7 @@ void CBasePlayer::Service_Grapple() m_ppHook->m_flNextIdleTime = gpGlobals->time + RANDOM_LONG( 1, 3 ); PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - edict(), g_usCable, 0, (float *)&g_vecZero, (float *)&g_vecZero, + edict(), g_usCable, 0, g_vecZero, g_vecZero, 0.0, 0.0, m_ppHook->entindex(), pev->team, 1, 0 ); } else if( m_ppHook->m_flNextIdleTime <= gpGlobals->time ) @@ -343,7 +343,7 @@ void CBasePlayer::Throw_Grapple() m_ppHook->pev->fixangle = TRUE; PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - edict(), g_usCable, 0, (float*)&g_vecZero, (float*)&g_vecZero, + edict(), g_usCable, 0, g_vecZero, g_vecZero, 0.0, 0.0, m_ppHook->entindex(), pev->team, 0, 0 ); m_bHook_Out = TRUE; diff --git a/dlls/3wave/threewave_gamerules.cpp b/dlls/3wave/threewave_gamerules.cpp index 6a727738..96de6376 100644 --- a/dlls/3wave/threewave_gamerules.cpp +++ b/dlls/3wave/threewave_gamerules.cpp @@ -663,7 +663,7 @@ void CThreeWave::ClientDisconnected( edict_t *pClient ) pFlag->m_flDroppedTime = gpGlobals->time + TEAM_CAPTURE_FLAG_RETURN_TIME; PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - pPlayer->edict(), g_usCarried, 0, (float*)&g_vecZero, (float*)&g_vecZero, + pPlayer->edict(), g_usCarried, 0, g_vecZero, g_vecZero, 0.0, 0.0, pPlayer->entindex(), pPlayer->pev->team, 1, 0 ); MESSAGE_BEGIN( MSG_ALL, gmsgCTFMsgs, NULL ); @@ -902,7 +902,7 @@ void CThreeWave::PlayerKilled( CBasePlayer *pVictim, entvars_t *pKiller, entvars pFlag->Dropped = TRUE; PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - pVictim->edict(), g_usCarried, 0, (float *)&g_vecZero, (float *)&g_vecZero, + pVictim->edict(), g_usCarried, 0, g_vecZero, g_vecZero, 0.0, 0.0, pVictim->entindex(), pVictim->pev->team, 1, 0 ); pFlag->m_flDroppedTime = gpGlobals->time + TEAM_CAPTURE_FLAG_RETURN_TIME; diff --git a/dlls/combat.cpp b/dlls/combat.cpp index 054ced68..5c889a2d 100644 --- a/dlls/combat.cpp +++ b/dlls/combat.cpp @@ -270,7 +270,7 @@ void CBaseMonster::GibMonster( void ) if( CVAR_GET_FLOAT( "violence_hgibs" ) != 0 ) // Only the player will ever get here { if( IsPlayer() ) - PLAYBACK_EVENT_FULL ( FEV_GLOBAL, edict(), g_sGibbed, 0.0, (float *)&pev->origin, (float *)&g_vecAttackDir, 0.0, 0.0, 0, 0, 0, 0 ); + PLAYBACK_EVENT_FULL ( FEV_GLOBAL, edict(), g_sGibbed, 0.0, pev->origin, g_vecAttackDir, 0.0, 0.0, 0, 0, 0, 0 ); /*CGib::SpawnHeadGib( pev ); CGib::SpawnRandomGibs( pev, 4, 1 );// throw some human gibs.*/ diff --git a/dlls/dmc/quake_items.cpp b/dlls/dmc/quake_items.cpp index a1310338..8b31b758 100644 --- a/dlls/dmc/quake_items.cpp +++ b/dlls/dmc/quake_items.cpp @@ -1161,8 +1161,8 @@ BOOL CItemPowerup::MyTouch( CBasePlayer *pPlayer ) pPlayer->W_SetCurrentAmmo(); - PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - pPlayer->edict(), g_usPowerUp, 0, (float *)&g_vecZero, (float *)&g_vecZero, + PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, + pPlayer->edict(), g_usPowerUp, 0, g_vecZero, g_vecZero, (float)iPowerUp, 0.0, pPlayer->entindex(), pPlayer->pev->team, 0, 0 ); return TRUE; diff --git a/dlls/dmc/quake_rocket.cpp b/dlls/dmc/quake_rocket.cpp index e2863398..3689a296 100644 --- a/dlls/dmc/quake_rocket.cpp +++ b/dlls/dmc/quake_rocket.cpp @@ -59,7 +59,7 @@ CQuakeRocket *CQuakeRocket::CreateRocket( Vector vecOrigin, Vector vecAngles, CB // pRocket->pev->effects |= EF_LIGHT; PLAYBACK_EVENT_FULL (FEV_GLOBAL, pRocket->edict(), g_sTrail, 0.0, - (float *)&pRocket->pev->origin, (float *)&pRocket->pev->angles, 0.7, 0.0, pRocket->entindex(), ROCKET_TRAIL, 0, 0); + pRocket->pev->origin, pRocket->pev->angles, 0.7, 0.0, pRocket->entindex(), ROCKET_TRAIL, 0, 0); return pRocket; } @@ -101,8 +101,7 @@ CQuakeRocket *CQuakeRocket::CreateGrenade( Vector vecOrigin, Vector vecVelocity, pRocket->SetThink( &CQuakeRocket::GrenadeExplode ); PLAYBACK_EVENT_FULL (FEV_GLOBAL, pRocket->edict(), g_sTrail, 0.0, - (float *)&g_vecZero, (float *)&g_vecZero, 0.7, 0.0, pRocket->entindex(), GRENADE_TRAIL, 0, 0); - + g_vecZero, g_vecZero, 0.7, 0.0, pRocket->entindex(), GRENADE_TRAIL, 0, 0); return pRocket; } @@ -184,7 +183,7 @@ void CQuakeRocket::GrenadeExplode() void CQuakeRocket::Explode() { //We use the angles field to send the rocket velocity. - PLAYBACK_EVENT_FULL( FEV_GLOBAL, edict(), g_sExplosion, 0.0, (float *)&pev->origin, (float *)&pev->velocity, 0.0, 0.0, 0, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_GLOBAL, edict(), g_sExplosion, 0.0, pev->origin, pev->velocity, 0.0, 0.0, 0, 0, 0, 0 ); UTIL_Remove( this ); } diff --git a/dlls/dmc/quake_weapons_all.cpp b/dlls/dmc/quake_weapons_all.cpp index 0cd589e1..87370019 100644 --- a/dlls/dmc/quake_weapons_all.cpp +++ b/dlls/dmc/quake_weapons_all.cpp @@ -319,7 +319,7 @@ BOOL CBasePlayer::W_CheckNoAmmo() if ( m_iQuakeWeapon == IT_LIGHTNING ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, (float *)&pev->origin, (float *)&pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, pev->origin, pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); if ( m_pActiveItem ) ((CQuakeGun*)m_pActiveItem)->DestroyEffect(); @@ -335,7 +335,7 @@ void CBasePlayer::W_ChangeWeapon( int iWeaponNumber ) { if ( m_iQuakeWeapon == IT_LIGHTNING ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, (float *)&pev->origin, (float *)&pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, pev->origin, pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); if ( m_pActiveItem ) ((CQuakeGun*)m_pActiveItem)->DestroyEffect(); @@ -759,7 +759,7 @@ void CBasePlayer::W_FireAxe() // Single barrel shotgun void CBasePlayer::W_FireShotgun( int iQuadSound ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usShotgunSingle, 0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usShotgunSingle, 0, g_vecZero, g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); if (gpGlobals->deathmatch != 4 ) *m_pCurrentAmmo -= 1; @@ -770,7 +770,7 @@ void CBasePlayer::W_FireShotgun( int iQuadSound ) void CBasePlayer::W_FireHook( void ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST | FEV_GLOBAL, edict(), g_usHook, 0, (float *)&pev->origin, (float *)&pev->angles, 0.0, 0.0, 0, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST | FEV_GLOBAL, edict(), g_usHook, 0, pev->origin, pev->angles, 0.0, 0.0, 0, 0, 0, 0 ); Throw_Grapple(); } @@ -794,7 +794,7 @@ void CBasePlayer::W_FireSuperShotgun( int iQuadSound ) return; } - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usShotgunDouble, 0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usShotgunDouble, 0, g_vecZero, g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); if (gpGlobals->deathmatch != 4 ) *m_pCurrentAmmo -= 2; @@ -805,7 +805,7 @@ void CBasePlayer::W_FireSuperShotgun( int iQuadSound ) // Rocket launcher void CBasePlayer::W_FireRocket( int iQuadSound ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usRocket, 0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usRocket, 0, g_vecZero, g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); if (gpGlobals->deathmatch != 4 ) *m_pCurrentAmmo -= 1; @@ -820,7 +820,7 @@ void CBasePlayer::W_FireRocket( int iQuadSound ) // Grenade launcher void CBasePlayer::W_FireGrenade( int iQuadSound ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usGrenade, 0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usGrenade, 0, g_vecZero, g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); if (gpGlobals->deathmatch != 4 ) *m_pCurrentAmmo -= 1; @@ -851,7 +851,7 @@ void CBasePlayer::W_FireLightning( int iQuadSound ) //This should already be IT_LIGHTNING but what the heck. if ( m_iQuakeWeapon == IT_LIGHTNING ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, (float *)&pev->origin, (float *)&pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, pev->origin, pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); if ( m_pActiveItem ) ((CQuakeGun*)m_pActiveItem)->DestroyEffect(); @@ -891,7 +891,7 @@ void CBasePlayer::W_FireLightning( int iQuadSound ) } } - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, (float *)&pev->origin, (float *)&pev->angles, 0.0, 0.0, iQuadSound, 0, playsound, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, pev->origin, pev->angles, 0.0, 0.0, iQuadSound, 0, playsound, 0 ); #if !defined( CLIENT_DLL ) @@ -914,7 +914,7 @@ void CBasePlayer::W_FireLightning( int iQuadSound ) // Super Nailgun void CBasePlayer::W_FireSuperSpikes( int iQuadSound ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usSuperSpike, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, iQuadSound, 0, m_iNailOffset > 0.0 ? 1 : 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usSuperSpike, 0.0, g_vecZero, g_vecZero, 0.0, 0.0, iQuadSound, 0, m_iNailOffset > 0.0 ? 1 : 0, 0 ); if (gpGlobals->deathmatch != 4 ) *m_pCurrentAmmo -= 2; @@ -943,7 +943,7 @@ void CBasePlayer::W_FireSpikes( int iQuadSound ) return; } - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usSpike, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, iQuadSound, 0, m_iNailOffset > 0.0f ? 1 : 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usSpike, 0.0, g_vecZero, g_vecZero, 0.0, 0.0, iQuadSound, 0, m_iNailOffset > 0.0f ? 1 : 0, 0 ); // Fire left then right if (m_iNailOffset == 2) @@ -980,13 +980,12 @@ void CBasePlayer::W_Attack( int iQuadSound ) else m_flNextAttack = UTIL_WeaponTimeBase() + 0.5f; - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usAxeSwing, 0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usAxeSwing, 0, g_vecZero, g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); // Delay attack for 0.3 m_flAxeFire = gpGlobals->time + 0.3f; - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usAxe, 0.3, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); - + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usAxe, 0.3, g_vecZero, g_vecZero, 0.0, 0.0, iQuadSound, 0, 0, 0 ); } else if (m_iQuakeWeapon == IT_SHOTGUN) { diff --git a/dlls/doors.cpp b/dlls/doors.cpp index 3fa76ccf..1617bdc1 100644 --- a/dlls/doors.cpp +++ b/dlls/doors.cpp @@ -626,8 +626,8 @@ void CBaseDoor::DoorGoUp( void ) if( m_fNextSoundPlay < gpGlobals->time ) { Vector vecCenter( Center() ); - float *pCenter = (float *)&vecCenter; - PLAYBACK_EVENT_FULL( FEV_RELIABLE, NULL, m_usDoorGoUp, 0.0, pCenter, (float *)&g_vecZero, 0.0, 0.0, ( m_bMoveSnd << 8 ) | ( m_bStopSnd & 0xff ), 0, 0, 0 ); + + PLAYBACK_EVENT_FULL( FEV_RELIABLE, NULL, m_usDoorGoUp, 0.0, vecCenter, g_vecZero, 0.0, 0.0, ( m_bMoveSnd << 8 ) | ( m_bStopSnd & 0xff ), 0, 0, 0 ); #if defined ( OLD_SOUNDS ) STOP_SOUND( ENT( pev ), CHAN_STATIC, (char*)STRING( pev->noiseMoving ) ); if( m_toggle_state != TS_GOING_UP && m_toggle_state != TS_GOING_DOWN ) @@ -678,8 +678,8 @@ void CBaseDoor::DoorHitTop( void ) { m_bStoppedOpenSound = true; Vector vecCenter( Center() ); - float *pCenter = (float *)&vecCenter; - PLAYBACK_EVENT_FULL( FEV_RELIABLE, NULL, m_usDoorHitTop, 0.0, pCenter, (float *)&g_vecZero, 0.0, 0.0, ( m_bMoveSnd << 8 ) | ( m_bStopSnd & 0xff ), 0, 0, 0 ); + + PLAYBACK_EVENT_FULL( FEV_RELIABLE, NULL, m_usDoorHitTop, 0.0, vecCenter, g_vecZero, 0.0, 0.0, ( m_bMoveSnd << 8 ) | ( m_bStopSnd & 0xff ), 0, 0, 0 ); #if defined ( OLD_SOUNDS ) STOP_SOUND( ENT( pev ), CHAN_STATIC, (char*)STRING( pev->noiseMoving ) ); @@ -729,8 +729,8 @@ void CBaseDoor::DoorGoDown( void ) if( m_fNextSoundPlay < gpGlobals->time ) { Vector vecCenter( Center() ); - float *pCenter = (float *)&vecCenter; - PLAYBACK_EVENT_FULL( FEV_RELIABLE, NULL, m_usDoorGoDown, 0.0, pCenter, (float *)&g_vecZero, 0.0, 0.0, ( m_bMoveSnd << 8 ) | ( m_bStopSnd & 0xff ), 0, 0, 0 ); + + PLAYBACK_EVENT_FULL( FEV_RELIABLE, NULL, m_usDoorGoDown, 0.0, vecCenter, g_vecZero, 0.0, 0.0, ( m_bMoveSnd << 8 ) | ( m_bStopSnd & 0xff ), 0, 0, 0 ); #if defined ( OLD_SOUNDS ) STOP_SOUND( ENT( pev ), CHAN_STATIC, (char*)STRING( pev->noiseMoving ) ); if( m_toggle_state != TS_GOING_UP && m_toggle_state != TS_GOING_DOWN ) @@ -761,8 +761,8 @@ void CBaseDoor::DoorHitBottom( void ) if( m_fNextSoundPlay < gpGlobals->time ) { Vector vecCenter( Center() ); - float *pCenter = (float *)&vecCenter; - PLAYBACK_EVENT_FULL( FEV_RELIABLE, NULL, m_usDoorHitBottom, 0.0, pCenter, (float *)&g_vecZero, 0.0, 0.0, ( m_bMoveSnd << 8 ) | ( m_bStopSnd & 0xff ), 0, 0, 0 ); + + PLAYBACK_EVENT_FULL( FEV_RELIABLE, NULL, m_usDoorHitBottom, 0.0, vecCenter, g_vecZero, 0.0, 0.0, ( m_bMoveSnd << 8 ) | ( m_bStopSnd & 0xff ), 0, 0, 0 ); #if defined ( OLD_SOUNDS ) STOP_SOUND( ENT( pev ), CHAN_STATIC, (char*)STRING( pev->noiseMoving ) ); EMIT_SOUND( ENT( pev ), CHAN_STATIC, (char*)STRING( pev->noiseArrived ), 1, ATTN_NORM ); diff --git a/dlls/player.cpp b/dlls/player.cpp index a6919e1c..f135b481 100644 --- a/dlls/player.cpp +++ b/dlls/player.cpp @@ -599,7 +599,7 @@ void CBasePlayer::Killed( entvars_t *pevAttacker, int iGib ) ClearBits( pev->flags, FL_ONGROUND ); if( m_iQuakeWeapon == IT_LIGHTNING ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, (float *)&pev->origin, (float *)&pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, edict(), m_usLightning, 0, pev->origin, pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); if( m_pActiveItem ) ( (CQuakeGun*)m_pActiveItem )->DestroyEffect(); @@ -1640,7 +1640,7 @@ void CBasePlayer::PowerUpThink( void ) W_SetCurrentAmmo(); PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_RELIABLE, - edict(), g_usPowerUp, 0, (float *)&g_vecZero, (float *)&g_vecZero, + edict(), g_usPowerUp, 0, g_vecZero, g_vecZero, (float)iPowerUp, 0.0, entindex(), pev->team, 1, 0 ); } } @@ -2653,7 +2653,7 @@ void CBasePlayer::Spawn( void ) //++ BulliT Spectate_UpdatePosition(); //-- Martin Webrant - PLAYBACK_EVENT_FULL( FEV_GLOBAL, edict(), g_sTeleport, 0.0, (float *)&pev->origin, (float *)&g_vecZero, 0.0, 0.0, 0, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_GLOBAL, edict(), g_sTeleport, 0.0, pev->origin, g_vecZero, 0.0, 0.0, 0, 0, 0, 0 ); m_fKnownItem = false; } diff --git a/dlls/triggers.cpp b/dlls/triggers.cpp index 524967ec..4caf0bea 100644 --- a/dlls/triggers.cpp +++ b/dlls/triggers.cpp @@ -2066,7 +2066,7 @@ void CTeleDeath::DeathTouch( CBaseEntity *pOther ) void CBaseEntity::Spawn_Telefog( Vector vecOrg, CBaseEntity *pOther ) { //Moved to the client - PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_NOTHOST, pOther->edict(), g_sTeleport, 0.0, (float *)&vecOrg, (float *)&g_vecZero, 0.0, 0.0, 0, 0, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_GLOBAL | FEV_NOTHOST, pOther->edict(), g_sTeleport, 0.0, vecOrg, g_vecZero, 0.0, 0.0, 0, 0, 0, 0 ); } //----------------------------------------------------------------------------- diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index f305cc30..a92565ac 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -597,7 +597,7 @@ void CBasePlayerWeapon::ItemPostFrame( void ) if( m_pPlayer->m_iQuakeWeapon == IT_LIGHTNING ) { - PLAYBACK_EVENT_FULL( FEV_NOTHOST, m_pPlayer->edict(), m_pPlayer->m_usLightning, 0, (float *)&m_pPlayer->pev->origin, (float *)&m_pPlayer->pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); + PLAYBACK_EVENT_FULL( FEV_NOTHOST, m_pPlayer->edict(), m_pPlayer->m_usLightning, 0, m_pPlayer->pev->origin, m_pPlayer->pev->angles, 0.0, 0.0, 0, 1, 0, 0 ); if( m_pPlayer->m_pActiveItem ) ( (CQuakeGun*)m_pPlayer->m_pActiveItem )->DestroyEffect();