Fixed mistyped monster_bullchicken classname.
Fixed ambient_music not stopping sounds during mapchange. Fixed monster_gargantua crashing the server upon death. Fixed GMR/GSR being prone to crashing. Fixed monster_human_grunt melee attack not damaging non-mm entities. Fixed monster_male_assassin doing sentence speeches. Fixed monster_shockroach using headcrab sounds for attack. Removed CGraph::HandleLinkEnt capabilities as they crash the server. Increased monster_alien_voltigore lightning attack range.
This commit is contained in:
@@ -100,7 +100,7 @@ bool AddIndividualSound(edict_t *pMonster, const char *from, const char *to)
|
||||
const char* FindModelReplacement( edict_t *pMonster, const char *from )
|
||||
{
|
||||
// Individually set models takes priority!
|
||||
if ( pMonster && !FStringNull(pMonster->v.model))
|
||||
if (UTIL_IsValidEntity(pMonster) && !FStringNull(pMonster->v.model))
|
||||
return STRING(pMonster->v.model);
|
||||
|
||||
// Find the model
|
||||
@@ -120,7 +120,7 @@ const char* FindModelReplacement( edict_t *pMonster, const char *from )
|
||||
const char* FindSoundReplacement( edict_t *pMonster, const char *from )
|
||||
{
|
||||
// Individually set sounds takes priority!
|
||||
if ( pMonster )
|
||||
if (UTIL_IsValidEntity(pMonster))
|
||||
{
|
||||
CMBaseMonster *castMonster = NULL;
|
||||
|
||||
@@ -133,7 +133,7 @@ const char* FindSoundReplacement( edict_t *pMonster, const char *from )
|
||||
if (!FNullEnt(pMonster->v.owner))
|
||||
castMonster = GetClassPtr((CMBaseMonster *)VARS(pMonster->v.owner));
|
||||
}
|
||||
|
||||
|
||||
// If still no valid BaseMonster pointer, full stop, use GSR.
|
||||
if (castMonster && castMonster->m_isrSounds)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user