Skip to content

Commit a586c7c

Browse files
AdamTadeusznullsystem
authored andcommitted
thermal vision view model material override when using xray
1 parent 8355bc7 commit a586c7c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/game/shared/neo/neo_predicted_viewmodel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ void CNEOPredictedViewModel::ClientThink()
225225
}
226226

227227
extern ConVar mat_neo_toc_test;
228+
extern ConVar glow_outline_effect_enable;
228229
int CNEOPredictedViewModel::DrawModel(int flags)
229230
{
230231
auto pPlayer = static_cast<C_NEO_Player*>(GetOwner());
@@ -254,7 +255,7 @@ int CNEOPredictedViewModel::DrawModel(int flags)
254255

255256
return 0;
256257
}
257-
if (pPlayer->GetClass() == NEO_CLASS_SUPPORT && pPlayer->IsInVision())
258+
if (pPlayer->GetClass() == NEO_CLASS_SUPPORT && pPlayer->IsInVision() && !glow_outline_effect_enable.GetBool())
258259
{
259260
IMaterial* pass = materials->FindMaterial("dev/thermal_view_model", TEXTURE_GROUP_MODEL);
260261
Assert(pass && !pass->IsErrorMaterial());

0 commit comments

Comments
 (0)