Raised This Month: $32 Target: $400
 8% 

Applying a Material


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-10-2005 , 11:03   Applying a Material
Reply With Quote #1

How would I go about applying a material to an entity? I've looked through tons of the SDK and my eyes are about to pop out.

I appreciate the help.
__________________
sslice is offline
Webring
Junior Member
Join Date: Mar 2005
Old 04-10-2005 , 22:31  
Reply With Quote #2

Check out the "settings a users visibility" post, deals exactly with what you're asking. My problem is getting the cbasenity or whatever classes to work. Apparently you have edit alot of crap. :\
Webring is offline
Webring
Junior Member
Join Date: Mar 2005
Old 04-10-2005 , 23:09  
Reply With Quote #3

Lol... aren't you the one that's suppose to give me that example from before...haha damn :\ was lookin forward to that man, but alright no problem.
Webring is offline
vancelorgin
Senior Member
Join Date: Dec 2004
Location: san frandisco
Old 04-11-2005 , 13:54  
Reply With Quote #4

I saw it in the code somewhere, I hope it wasn't client side. /me looks

ed

CBaseEntity*->VPhysicsGetObject()->SetMaterialIndex( 0 ); anyone?
__________________
Avoid like the plague.
vancelorgin is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-18-2005 , 22:09  
Reply With Quote #5

What exactly is the material index?
__________________
sslice is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 04-19-2005 , 01:15  
Reply With Quote #6

After you precache it you are given an index as the return value (I think)
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode