mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Mapbase v3.1
- Fixed filter_damage_mod blocking all damage which doesn't match the secondary filter regardless of secondary filter mode - Fixed impulse 101 and other give-related commands leaving behind weapons with occupied slots - Fixed a crash with scripted_sound's PlaySoundOnEntity when the entity doesn't exist - Added OnSoundFinished output to ambient_generic - Added the ability to use custom models/nuggets with item_grubnugget - Fixed a crash with citizen medics healing nonexistent targets - Added "SetDistLook" and "SetDistTooFar" inputs for NPCs, allowing manual adjustment of NPC sight distance - Added keyvalue and input to env_microphone for utilizing a different audio channel - Added "SetPitchScale" input to env_microphone - Fixed info_player_view_proxy not using angles - Fixed dirt variant elite model not being recognized as elite - Made headcrab hints properly register the start of use (for hint outputs) - Made RPG use a more realistic firing rate for NPCs which aren't constrained by slow RPG animations, like soldiers - Added spawnflag for func_breakable_surf to correctly play the break sound - Added keyvalue for using cheaper warn sound code for combine_mines - Added "OnSpawnNPC" output for npc_combinedropship when it spawns a soldier, rollermine, or strider - Added signal gesture activities - Fixed stunstick not using metrocop knockout/stun code correctly - Fixed a possible crash involving a NPC's weapon being removed during alt-fire - Fixed(?) flashlight shadow filters - Added support for multiple look entities in trigger_look - Added npc_metropolice alt-firing - Fixed npc_metropolice using pistol burst firing on weapon_357 - Fixed npc_metropolice not deploying manhacks/throwing grenades in standoffs - Fixed npc_metropolice not recognizing some crouch activities correctly - Changed weapon_357 so it runs a tracer each shot from NPCs - Added SDK_ShatteredGlass, a Mapbase version of ShatteredGlass - Added "SetSpeedModifier" to NPCs, based on 1upD's shadow walker code - Made game_convar_mod much more reliable - Fixed non-mirrored npc_turret_lab refusing to die - Made npc_turret_lab use SMG1 ammo instead of AR2 ammo - Fixed block LOS brushes sometimes not working with players (and possibly similar issues) - Raised maximum renderable entities from 4096 to 16384, based on ficool2's limit research - Added SDK_ShatteredGlass, a Mapbase version of ShatteredGlass. Can display parallax corrected cubemaps from its unbroken form - Fixed VBSP breaking func_breakable_surf, etc. when using parallax corrected cubemaps - Raised maximum VBSP entities from 8192 to 65536, based on ficool2's limit research - Raised maximum VBSP worldlights from 8192 to 65536, based on ficool2's limit research - Raised maximum VBSP overlays from 512 to 8192, based on ficool2's limit research - Other misc. fixes
This commit is contained in:
@@ -35,6 +35,9 @@
|
||||
// Spawn flags
|
||||
#define SF_BREAKABLESURF_CRACK_DECALS 0x00000001
|
||||
#define SF_BREAKABLESURF_DAMAGE_FROM_HELD_OBJECTS 0x00000002
|
||||
#ifdef MAPBASE
|
||||
#define SF_BREAKABLESURF_PLAY_BREAK_SOUND 0x00000004
|
||||
#endif
|
||||
|
||||
//#############################################################################
|
||||
// > CWindowPane
|
||||
@@ -611,7 +614,15 @@ void CBreakableSurface::Die( CBaseEntity *pBreaker, const Vector &vAttackDir )
|
||||
return;
|
||||
|
||||
// Play a break sound
|
||||
#ifdef MAPBASE
|
||||
if ( HasSpawnFlags(SF_BREAKABLESURF_PLAY_BREAK_SOUND) )
|
||||
{
|
||||
Vector centerPos = (m_vLLVertex + m_vURVertex) / 2;
|
||||
PhysBreakSound( this, VPhysicsGetObject(), centerPos );
|
||||
}
|
||||
#else
|
||||
PhysBreakSound( this, VPhysicsGetObject(), GetAbsOrigin() );
|
||||
#endif
|
||||
|
||||
m_bIsBroken = true;
|
||||
m_iHealth = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user