General > Off-Topic
Finding if material is used on Garry's Mod map
Bite That Apple:
I have a new idea for Garry's Mod, that I don't think has been done in a long time now. Though for it to work, I need to be able to search a map to check if it uses a certain material, in this case the grass material.
I really want to try avoid going to facepunch, but if no one is entirely sure, I'd have to. So please stop me from going there :/
JamminR:
Do you mean material as in a "looks like"/texture/wireframe/shiny application?
Or surface friction type as in "feels/acts/grips like" ice/water/grass/dirt application?
Though I don't know the Gmod lua terms at this point of both , I'm not fully clear what you're asking and would help us (any reader seeing this discussion) determine what you're looking for and maybe find it at wiki or elsewhere.
Bite That Apple:
--- Quote from: JamminR on September 03, 2016, 11:50:25 AM ---Do you mean material as in a "looks like"/texture/wireframe/shiny application?
Or surface friction type as in "feels/acts/grips like" ice/water/grass/dirt application?
Though I don't know the Gmod lua terms at this point of both , I'm not fully clear what you're asking and would help us (any reader seeing this discussion) determine what you're looking for and maybe find it at wiki or elsewhere.
--- End quote ---
Well, either would work. I'll explain what I'm doing a little more, so you imagine if there is such a function that already exists for this. I want to make an entity that will automatically grow on grass or dirt. So if I have to use the exact material of "grass.vmt", then fine, or if I could do the possibility of a "acts/feels like grass/dirt".
roastchicken:
I know you can get materials from traces, so maybe just do a bunch of traces in a grid configuration across the map? It wouldn't be perfect, but it's better than nothing.
Bite That Apple:
--- Quote from: roastchicken on September 03, 2016, 06:29:35 PM ---I know you can get materials from traces, so maybe just do a bunch of traces in a grid configuration across the map? It wouldn't be perfect, but it's better than nothing.
--- End quote ---
I've never used that function before. Though, from my understanding of this, it looks like it can only be used on entities. If I'm correct, I'm also sure world is not an entity.
Navigation
[0] Message Index
[#] Next page
Go to full version