mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 15:27:56 +03:00
Fixed NPCs being unable to open doors with hardware not defined in the QC
This commit is contained in:
parent
8e90e6df58
commit
5369953d60
@ -4478,6 +4478,13 @@ void CBasePropDoor::CalcDoorSounds()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MAPBASE
|
||||||
|
// This would still be -1 if the hardware wasn't valid
|
||||||
|
if (m_flNPCOpenDistance == -1)
|
||||||
|
m_flNPCOpenDistance = ai_door_enable_acts.GetBool() ? 32.0 : 64.0;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// If any sounds were missing, try the "defaults" block.
|
// If any sounds were missing, try the "defaults" block.
|
||||||
if ( ( strSoundOpen == NULL_STRING ) || ( strSoundClose == NULL_STRING ) || ( strSoundMoving == NULL_STRING ) ||
|
if ( ( strSoundOpen == NULL_STRING ) || ( strSoundClose == NULL_STRING ) || ( strSoundMoving == NULL_STRING ) ||
|
||||||
( strSoundLocked == NULL_STRING ) || ( strSoundUnlocked == NULL_STRING ) )
|
( strSoundLocked == NULL_STRING ) || ( strSoundUnlocked == NULL_STRING ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user