Garry's Mod

Garry's Mod

Ocen: 120
List all materials of a model!
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Content Type: Addon
Addon Type: Tool
Rozmiar pliku
Zamieszczono
Zaktualizowano
1.301 KB
22 maja 2015 o 12:30
21 czerwca 2016 o 22:00
Listy zmian: 2 ( zobacz )

Zasubskrybuj, aby pobrać
List all materials of a model!

W 4 kolekcjach stworzonych przez Cédric GÉRILLE [GiletJaune]
Soccer by Mohamed RACHID
Przedmioty: 37
Université Joseph Poireau (serveur)
Przedmioty: 70
Dev Tests Mohamed
Przedmioty: 50
G-1:788429
Przedmioty: 50
Opis
Please click the picture and read how to use!

Intro
This addon provides a console command that lists all the materials used in a model.
1) You can use the list to easily find all required VMT files and VTF files needed by a model, to put them into the download list.
2) You can use the list to replace sub-materials of an entity.

[curse.com]

Usage
You can run this console command on the client or on the server, it does not matter.
list_all_materials "models/odessa.mdl"

Example of customization
This code (copy and paste to console) allows to replace the material #4 of the 1st Odessa NPC that you spawned:
lua_run ents.FindByClass('npc_citizen')[1]:SetSubMaterial(4, 'models/props_combine/combine_interface_disp')
Komentarzy: 29
Cédric GÉRILLE [GiletJaune]  [autor] 1 listopada o 10:20 
I'm sorry that you found it helpful! 😂
freethoughtsforever 18 października o 6:00 
Helpful !!!:steamhappy:
stevensky 19 września 2024 o 7:02 
really useful!
Cédric GÉRILLE [GiletJaune]  [autor] 20 kwietnia 2023 o 10:54 
Do you have all the materials installed for the said model? If I remember correctly, missing materials are not reported correctly.
[Jesus42] 15 marca 2023 o 19:59 
Don't work for me(
Please say me monitor material (models/props_phx/sp_screen.mdl)
I need this cam material
Cédric GÉRILLE [GiletJaune]  [autor] 5 kwietnia 2021 o 8:48 
Thanks!
Paul 26 marca 2021 o 7:54 
Big up. Quite useful to handle models.
Cédric GÉRILLE [GiletJaune]  [autor] 3 lutego 2021 o 14:24 
Please use my add-on Momo's Map Manipulation Tool and extract the LUMP_TEXDATA_STRING_TABLE as text!
The exact lump that you need to extract may be wrong as I do not have GMod available at the moment, but for sure it is a lump that can be extracted as text.
RobloxGranite 23 stycznia 2021 o 15:04 
can you make a addon that allows you to do this with a map
Cédric GÉRILLE [GiletJaune]  [autor] 7 kwietnia 2019 o 0:35 
Thanks for asking!