Garry's Mod

Garry's Mod

115 ratings
NPC Auto Reskin and AI
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Realism
File Size
Posted
Updated
47.494 KB
6 Aug, 2023 @ 6:26am
1 May @ 3:43am
6 Change Notes ( view )

Subscribe to download
NPC Auto Reskin and AI

Description
Auto reskin NPCs in map.
Convert models into suitable citizen/combine models.
Can lock weapon proficiency, update enemy position, spawn ai_goal_standoff entity.

Panels are in Utilities/GlobalNpcTool
An example to replace all combine to genshi characters
https://www.bilibili.com/read/cv25585646 (Chinese)

1.Auto Reskin Settings
Open reskin dialog, select npc class to reskin
For each npc class, you can add several groups of models conversion
All npc that has <origin models> will be reskined to random one in <reskin models>
Press ... to choose models using Model Select Dialog

2.Exbo's Model Selector
"Name": model file name without ".mdl".
"Path": model file path without "models/".
"Group": model in spawn menu's group or "player".
"Profile": classified by model's included models.
Can set filters to these items.
Double click to add select a model.
Right click to cancel a model.
"Refresh Source": Reload all models.
"Convert Models":
Select the <profile> and convert all selected models into selected profile, saved at "data/<profile>/".
A "copy.txt" is generated at "data/<profile>/" as well, rename it to "copy.bat" and run to copy models into
"addons/modelconvert/models/xxx/", then the models can be listed after "Refresh Source"
If the model's profile does not match the npc class, it will lack some animation.
"Convert Models" rebuild the model's "include models" binary section to fit the profile.

Current profile list:
citizen_male citizen_female combine_soldier police player_male player_female

3.AI settings
"Ingame AI": Spawn and active the ai_goal_standoff object for the NPC class, like
ent_create ai_goal_standoff SearchType 1 StartActive 1 Aggressiveness 4 actor <npc_class>
this will make all NPCs in this class to keep formation and disable burst limit
"Know enemy": Every 5 seconds, tell NPC about all enemy position.
16 Comments
Combine Knight 3750 27 Sep @ 10:52pm 
作者你好,换的NPC会有打死以后产生假死的BUG,具体为NPC呈十字站立,望修复
Playmaker 12 Aug @ 9:25am 
@丸山汽修厂 我刚好在找这个功能,这个mod没找到,不过可以和NPC Bodygroup Manager这个mod配合使用,在这里面修改好之后调整npc_bodygroups_manager_delay设置下的time,就可以让此mod替换的模型在设定的延迟之后进行skin修改
丸山汽修厂 24 Jan @ 9:41am 
不懂就问,这个mod能不能像隔壁npc model randomizer那样更改或者随机化npc的skin和bodygroup?
Lab 4 Dec, 2024 @ 6:09pm 
男女市民英文名对应翻译是不是反了
X1a0_Chan 11 May, 2024 @ 8:14pm 
你没开文件扩展名:steambored:
可颂香蕉猫 17 Mar, 2024 @ 5:05am 
我的为什么是copy?后面没有txt,而且改了也执行不了,只能打开笔记本
FAMAS 1 Mar, 2024 @ 7:23am 
版本更新后用了闪退(悲
风斩冰华 25 Jan, 2024 @ 8:24am 
大佬这个模组不能使用了吗
Stand_Up 3 Nov, 2023 @ 2:17am 
can you make a video tutorial ?
Tchélvis Podre 27 Sep, 2023 @ 2:04pm 
think you can implement random bodygroup and skin support?