mirror of https://github.com/FWGS/hlsdk-xash3d
Rename EFLAG_MONSTER to EFLAG_FLESH_SOUND
This is mentioned in default delta.lst shipped with HL25: ``` DEFINE_DELTA( eflags, DT_INTEGER, 2, 1.0 ), // JoshA: Changed to 2 for EFLAG_FLESH_SOUND to fix flesh sounds on entities. If a mod ships updated DLLs and not this file, they just won't have that fix. ```
This commit is contained in:
parent
f6988f4e49
commit
0839067bd1
|
@ -112,7 +112,7 @@ float EV_HLDM_PlayTextureSound( int idx, pmtrace_t *ptr, float *vecSrc, float *v
|
||||||
|
|
||||||
// Player
|
// Player
|
||||||
if( ( entity >= 1 && entity <= gEngfuncs.GetMaxClients() )
|
if( ( entity >= 1 && entity <= gEngfuncs.GetMaxClients() )
|
||||||
|| ( ( ent = gEngfuncs.GetEntityByIndex( entity )) && ( ent->curstate.eflags & EFLAG_MONSTER )))
|
|| ( ( ent = gEngfuncs.GetEntityByIndex( entity )) && ( ent->curstate.eflags & EFLAG_FLESH_SOUND )))
|
||||||
{
|
{
|
||||||
// hit body
|
// hit body
|
||||||
chTextureType = CHAR_TEX_FLESH;
|
chTextureType = CHAR_TEX_FLESH;
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
|
|
||||||
// entity flags
|
// entity flags
|
||||||
#define EFLAG_SLERP 1 // do studio interpolation of this entity
|
#define EFLAG_SLERP 1 // do studio interpolation of this entity
|
||||||
#define EFLAG_MONSTER 2
|
#define EFLAG_FLESH_SOUND 2
|
||||||
|
|
||||||
//
|
//
|
||||||
// temp entity events
|
// temp entity events
|
||||||
|
|
|
@ -1313,11 +1313,11 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
|
||||||
&& Entity->Classify() != CLASS_NONE
|
&& Entity->Classify() != CLASS_NONE
|
||||||
&& Entity->Classify() != CLASS_MACHINE )
|
&& Entity->Classify() != CLASS_MACHINE )
|
||||||
{
|
{
|
||||||
SetBits( state->eflags, EFLAG_MONSTER );
|
SetBits( state->eflags, EFLAG_FLESH_SOUND );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ClearBits( state->eflags, EFLAG_SLERP | EFLAG_MONSTER );
|
ClearBits( state->eflags, EFLAG_SLERP | EFLAG_FLESH_SOUND );
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue