Garry's Mod

Garry's Mod

120 个评价
List all materials of a model!
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
文件大小
发表于
更新日期
1.301 KB
2015 年 5 月 22 日 下午 12:30
2016 年 6 月 21 日 下午 10:00
2 项改动说明 ( 查看 )

订阅以下载
List all materials of a model!

在 Cédric GÉRILLE [GiletJaune] 的 4 个合集中
Soccer by Mohamed RACHID
37 件物品
Université Joseph Poireau (serveur)
70 件物品
Dev Tests Mohamed
50 件物品
G-1:788429
50 件物品
描述
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')
28 条留言
freethoughtsforever 10 月 18 日 上午 6:00 
Helpful !!!:steamhappy:
stevensky 2024 年 9 月 19 日 上午 7:02 
really useful!
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 4 月 20 日 上午 10:54 
Do you have all the materials installed for the said model? If I remember correctly, missing materials are not reported correctly.
[Jesus42] 2023 年 3 月 15 日 下午 7: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]  [作者] 2021 年 4 月 5 日 上午 8:48 
Thanks!
Paul 2021 年 3 月 26 日 上午 7:54 
Big up. Quite useful to handle models.
Cédric GÉRILLE [GiletJaune]  [作者] 2021 年 2 月 3 日 下午 2: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 2021 年 1 月 23 日 下午 3:04 
can you make a addon that allows you to do this with a map
Cédric GÉRILLE [GiletJaune]  [作者] 2019 年 4 月 7 日 上午 12:35 
Thanks for asking!
Lord Inferno Bot 2019 年 4 月 6 日 下午 7:13 
thank you very much Jean-Bernard H. [GiletJaune], it made my work easy for me.