--
[ Picked text/plain from multipart/alternative ]
I am trying to make a way to change the players ?skin? change color at a 
certain time to show a "shield" type effect.  This is what I have so far, but 
it just makes my player black.  Is there a different Material I could use that 
would work, such as a metal or rock type look?

int C_Hunt_Player::DrawModel( int flags )
{
    static IMaterial* shieldEffect = 
materials->FindMaterial("Effects/tp_refract" ,
    TEXTURE_GROUP_OTHER);
    modelrender->ForcedMaterialOverride( shieldEffect );
    int iret = BaseClass::DrawModel( flags );
    modelrender->ForcedMaterialOverride( NULL ); //( "shaders/post_sepia", 
TEXTURE_GROUP_CLIENT_EFFECTS, true );
    return iret;
}


---------------------------------
Never miss a thing.   Make Yahoo your homepage.
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to