void CScriptbind_Entity::SetVisionParams(IEntity *pEntity, float r, float g, float b, float a) { IEntityRenderProxy *pRenderProxy = static_cast<IEntityRenderProxy *>(pEntity->GetProxy(ENTITY_PROXY_RENDER)); if(!pRenderProxy) return; pRenderProxy->SetVisionParams(r, g, b, a); }
void EntityEffects::CHeatController::SetThermalVisionParams( const float scale ) { IEntityRenderProxy *pEntityRenderProxy = static_cast<IEntityRenderProxy *>(m_ownerEntity->GetProxy(ENTITY_PROXY_RENDER)); if(pEntityRenderProxy) { pEntityRenderProxy->SetVisionParams(scale, scale, scale, scale); } CHeatControllerDebug::DebugInfo(m_ownerEntity, scale); }