Garry's Mod

Garry's Mod

93 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
Aug 6, 2023 @ 6:26am
May 1 @ 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.
14 Comments
丸山汽修厂 Jan 24 @ 9:41am 
不懂就问,这个mod能不能像隔壁npc model randomizer那样更改或者随机化npc的skin和bodygroup?
高敏吃手感,低敏吃手 Dec 4, 2024 @ 6:09pm 
男女市民英文名对应翻译是不是反了
XiaoWenSauce May 11, 2024 @ 8:14pm 
你没开文件扩展名:steambored:
可颂香蕉猫 Mar 17, 2024 @ 5:05am 
我的为什么是copy?后面没有txt,而且改了也执行不了,只能打开笔记本
FAMAS Mar 1, 2024 @ 7:23am 
版本更新后用了闪退(悲
风斩冰华 Jan 25, 2024 @ 8:24am 
大佬这个模组不能使用了吗
Stand_Up Nov 3, 2023 @ 2:17am 
can you make a video tutorial ?
Tchélvis Podre Sep 27, 2023 @ 2:04pm 
think you can implement random bodygroup and skin support?
Кирка444 Sep 22, 2023 @ 5:18am 
5 звезд однозначно
暗鸽 Aug 24, 2023 @ 1:01am 
一直想要的mod!!,谢谢