Raised This Month: $12 Target: $400
 3% 

[HELP] Material Detection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellmonja
Senior Member
Join Date: Oct 2015
Old 07-11-2019 , 13:05   [HELP] Material Detection
Reply With Quote #1

How do you detect a surface's material? Like if it's made of concrete or wood. I plan on using them for both bullet hits and footsteps...
__________________
hellmonja is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-11-2019 , 14:15   Re: [HELP] Material Detection
Reply With Quote #2

Its a combination of EngFunc_TraceTexture + DLLFunc_PM_FindTextureType. Please refer to this (albeit 10 year old) post for example. But you should use this with caution, it might crash the server.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
hellmonja
Senior Member
Join Date: Oct 2015
Old 07-13-2019 , 13:05   Re: [HELP] Material Detection
Reply With Quote #3

Quote:
Originally Posted by NiHiLaNTh View Post
Its a combination of EngFunc_TraceTexture + DLLFunc_PM_FindTextureType. Please refer to this (albeit 10 year old) post for example. But you should use this with caution, it might crash the server.
Thank you for answering! I'll try to be careful and minimize its use. Not very familiar with EngFuncs but I'll try to figure it out for now. I will reply again when I run into trouble. Once again, thank you!...
__________________
hellmonja is offline
Reply


Thread Tools
Display Modes

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 10:57.


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