mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-04 09:40:34 +03:00
Fixed a few minor mistakes and aliasing oversights
This commit is contained in:
parent
5f42182c45
commit
ea7d1afa08
@ -368,11 +368,10 @@ bool CMovieDisplayScreen::BeginPlayback( const char *pFilename )
|
||||
}
|
||||
else
|
||||
{
|
||||
Q_strncpy( szMaterialName, pFilename, sizeof(szMaterialName) );
|
||||
Q_snprintf( szMaterialName, sizeof(szMaterialName), "%s_%s", pFilename, m_hScreenEntity->GetEntityName() );
|
||||
}
|
||||
|
||||
const char *pszMaterialName = CFmtStrN<128>( "VideoMaterial_%s", m_hScreenEntity->GetEntityName() );
|
||||
m_VideoMaterial = g_pVideo->CreateVideoMaterial( pszMaterialName, pFilename, "GAME",
|
||||
m_VideoMaterial = g_pVideo->CreateVideoMaterial( szMaterialName, pFilename, "GAME",
|
||||
VideoPlaybackFlags::DEFAULT_MATERIAL_OPTIONS,
|
||||
VideoSystem::DETERMINE_FROM_FILE_EXTENSION/*, m_bAllowAlternateMedia*/ );
|
||||
|
||||
|
@ -4055,14 +4055,13 @@ void CBaseCombatCharacter::InputKilledNPC( inputdata_t &inputdata )
|
||||
|
||||
#ifdef MAPBASE
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Handle enemy kills. This actually measures players too.
|
||||
// Purpose: Handle enemy kills. (this technically measures players too)
|
||||
//-----------------------------------------------------------------------------
|
||||
void CBaseCombatCharacter::OnKilledNPC( CBaseCombatCharacter *pKilled )
|
||||
{
|
||||
// I know this can sometimes pass as NULL, but that can work here...right?
|
||||
m_OnKilledEnemy.Set(pKilled, pKilled, this);
|
||||
|
||||
// Fire an additional output if this was the player
|
||||
// Fire an additional output if this was a player
|
||||
if (pKilled && pKilled->IsPlayer())
|
||||
m_OnKilledPlayer.Set(pKilled, pKilled, this);
|
||||
}
|
||||
|
@ -1522,6 +1522,7 @@ public:
|
||||
|
||||
void Activate()
|
||||
{
|
||||
BaseClass::Activate();
|
||||
ParseSurfaceIndex();
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ BEGIN_ENT_SCRIPTDESC( CLogicExternalData, CBaseEntity, "An entity which loads ke
|
||||
DEFINE_SCRIPTFUNC_NAMED( ScriptGetKeyValueBlock, "GetKeyValueBlock", "Gets the current external data block expressed in CScriptKeyValues." )
|
||||
|
||||
DEFINE_SCRIPTFUNC_NAMED( ScriptSetKeyValues, "SetKeyValues", "Sets the external data from a CScriptKeyValues object." )
|
||||
DEFINE_SCRIPTFUNC_NAMED( ScriptSetKeyValueBlock, "SetKeyValues", "Sets the current external data block from a CScriptKeyValues object." )
|
||||
DEFINE_SCRIPTFUNC_NAMED( ScriptSetKeyValueBlock, "SetKeyValueBlock", "Sets the current external data block from a CScriptKeyValues object." )
|
||||
|
||||
DEFINE_SCRIPTFUNC( LoadFile, "Loads external data from the external file." )
|
||||
DEFINE_SCRIPTFUNC( SaveFile, "Saves the external data to the external file." )
|
||||
|
@ -500,8 +500,7 @@ void RegisterSharedScriptConstants()
|
||||
//ScriptRegisterConstant( g_pScriptVM, AISS_AUTO_PVS_AFTER_PVS, "" );
|
||||
ScriptRegisterConstant( g_pScriptVM, AI_SLEEP_FLAGS_NONE, "No sleep flags. (NPC sleep flag used in Add/Remove/HasSleepFlags())" );
|
||||
ScriptRegisterConstant( g_pScriptVM, AI_SLEEP_FLAG_AUTO_PVS, "Indicates a NPC will sleep upon exiting PVS. (NPC sleep flag used in Add/Remove/HasSleepFlags())" );
|
||||
// note: the one "?" is escaped to prevent evaluation of a trigraph
|
||||
ScriptRegisterConstant( g_pScriptVM, AI_SLEEP_FLAG_AUTO_PVS_AFTER_PVS, "Indicates a NPC will sleep upon exiting PVS after entering PVS for the first time(????\?) (NPC sleep flag used in Add/Remove/HasSleepFlags())" );
|
||||
ScriptRegisterConstant( g_pScriptVM, AI_SLEEP_FLAG_AUTO_PVS_AFTER_PVS, "Indicates a NPC will sleep upon exiting PVS after entering PVS for the first time(?) (NPC sleep flag used in Add/Remove/HasSleepFlags())" );
|
||||
|
||||
ScriptRegisterConstantNamed( g_pScriptVM, CAI_BaseNPC::SCRIPT_PLAYING, "SCRIPT_PLAYING", "Playing the action animation." );
|
||||
ScriptRegisterConstantNamed( g_pScriptVM, CAI_BaseNPC::SCRIPT_WAIT, "SCRIPT_WAIT", "Waiting on everyone in the script to be ready. Plays the pre idle animation if there is one." );
|
||||
|
Loading…
x
Reference in New Issue
Block a user