//----------------------------------------------------------------------------- // Purpose: // Input: // Output: //----------------------------------------------------------------------------- void CASW_Boomer::Spawn( void ) { SetHullType( HULL_LARGE ); BaseClass::Spawn(); SetHullType( HULL_LARGE ); SetCollisionGroup( ASW_COLLISION_GROUP_ALIEN ); SetHealthByDifficultyLevel(); CapabilitiesAdd( bits_CAP_MOVE_GROUND | bits_CAP_INNATE_MELEE_ATTACK1 | bits_CAP_INNATE_MELEE_ATTACK2 ); // "Health" "435" // "WalkSpeed" "45" // "RunSpeed" "254" SetIdealState( NPC_STATE_ALERT ); m_bNeverRagdoll = true; //softcopy: //SetRenderColor(asw_boomer_color.GetColor().r(), asw_boomer_color.GetColor().g(), asw_boomer_color.GetColor().b()); //Ch1ckensCoop: Allow setting colors. alienLabel = "boomer"; SetColorScale( alienLabel ); }
SurfaceOverlayProperties::SurfaceOverlayProperties ( SurfaceOverlay* overlay) : Broadcaster( "SurfaceOverlayProperties" ), m_dOpacity( 1 ), m_bColorInverse( false ), m_bColorTruncate( false ), m_overlay( overlay ) { m_lut = vtkRGBAColorTransferFunction::New(); if ( overlay ) { m_dMinPoint = fabs( overlay->m_dMinValue + overlay->m_dMaxValue ) / 2; m_dMaxPoint = overlay->m_dMaxValue; m_dMidPoint = ( m_dMinPoint + m_dMaxPoint ) / 2; } SetColorScale( CS_Heat ); SetColorMethod( CM_LinearOpaque ); }
void SurfaceOverlayProperties::SetColorTruncate( bool bTruncate ) { m_bColorTruncate = bTruncate; SetColorScale( m_nColorScale ); }
void SurfaceOverlayProperties::SetColorInverse( bool bInverse ) { m_bColorInverse = bInverse; SetColorScale( m_nColorScale ); }