From 7497b2caa7eaea38d9bd092e0cf86dc6feba2b28 Mon Sep 17 00:00:00 2001 From: NachosChipeados Date: Sat, 30 Nov 2024 10:42:45 -0400 Subject: [PATCH] Update cl_codecallbacks.gnut --- .../mod/scripts/vscripts/client/cl_codecallbacks.gnut | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Northstar.Client/mod/scripts/vscripts/client/cl_codecallbacks.gnut b/Northstar.Client/mod/scripts/vscripts/client/cl_codecallbacks.gnut index 9f4daebd9..bb7ae3233 100644 --- a/Northstar.Client/mod/scripts/vscripts/client/cl_codecallbacks.gnut +++ b/Northstar.Client/mod/scripts/vscripts/client/cl_codecallbacks.gnut @@ -62,7 +62,7 @@ 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" ) ) { @@ -70,14 +70,6 @@ void function ClientCodeCallback_BodyGroupChanged( entity ent, int bodyGroupInde 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 )