Skip to content

Commit

Permalink
Update cl_codecallbacks.gnut
Browse files Browse the repository at this point in the history
  • Loading branch information
NachosChipeados committed Nov 30, 2024
1 parent ce304c3 commit 7497b2c
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,14 @@ void function ClientCodeCallback_BodyGroupChanged( entity ent, int bodyGroupInde
{
// PrintFunc( "entity " + ent + " index " + bodyGroupIndex + "newstate " + newState )

if ( IsSpectre( ent ) )
if ( IsSpectre( ent ) || IsStalker( ent ) )
{
if ( bodyGroupIndex == ent.FindBodyGroup( "head" ) || bodyGroupIndex == ent.FindBodyGroup( "removableHead" ) )
{
ModelFX_DisableGroup( ent, "foe_lights" )
ModelFX_DisableGroup( ent, "friend_lights" )
}
}
else if ( IsStalker( ent ) )
{
if ( bodyGroupIndex == ent.FindBodyGroup( "removableHead" ) )
{
ModelFX_DisableGroup( ent, "foe_lights" )
ModelFX_DisableGroup( ent, "friend_lights" )
}
}
}

void function ClientCodeCallback_UseEntGainedFocus( entity ent )
Expand Down

0 comments on commit 7497b2c

Please sign in to comment.