FF Diff Viewer

Comparing 2006 Base SDK to Fortress Forever 2.46

dlls/movehelper_server.cpp

131415161718
#include "movehelper_server.h" #include "shake.h" // For screen fade constants #include "engine/IEngineSound.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h"
13141516171819
#include "movehelper_server.h" #include "shake.h" // For screen fade constants #include "engine/IEngineSound.h" #include "ff_player.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h"
346347348349350351352353354355
bool CMoveHelperServer::PlayerFallingDamage( void ) { float flFallDamage = g_pGameRules->FlPlayerFallDamage( m_pHostPlayer ); if ( flFallDamage > 0 ) { m_pHostPlayer->TakeDamage( CTakeDamageInfo( GetContainingEntity(INDEXENT(0)), GetContainingEntity(INDEXENT(0)), flFallDamage, DMG_FALL ) ); StartSound( m_pHostPlayer->GetAbsOrigin(), "Player.FallDamage" ); } if ( m_pHostPlayer->m_iHealth <= 0 )
347348349350351352353354355356
bool CMoveHelperServer::PlayerFallingDamage( void ) { float flFallDamage = g_pGameRules->FlPlayerFallDamage( m_pHostPlayer ); if ( flFallDamage > 0 ) { m_pHostPlayer->TakeDamage( CTakeDamageInfo( GetContainingEntity(INDEXENT(0)), GetContainingEntity(INDEXENT(0)), flFallDamage, DMG_FALL ) ); } if ( m_pHostPlayer->m_iHealth <= 0 )