Garry's Mod

Garry's Mod

86 个评价
Map NPC Replacer
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐
文件大小
发表于
更新日期
310.302 KB
2024 年 10 月 21 日 上午 10:36
8 月 1 日 下午 1:27
17 项改动说明 ( 查看 )

订阅以下载
Map NPC Replacer

描述
Open from Utilities > Map NPC Replacer Menu > Open Map NPC Replace Menu

Aim to replace combine soldiers that spawned by map to random models you selected, since most maps are against the Combine.
Mainly replace their model, and option to replace them to SNPC (WIP).
Combine soldier replacement part tested out not breaking Half-Life2 original map's scenarios.

Features:
- GUI to select replacement models for human type NPC and zombie type NPC.
- Select multiple models to enable random replacement.
- Ability to customize skin, bodygroup, and submaterial of replacement models.
- Define replacement NPC's weapon.
- Save preset for list of replacement models.
- Replacement models list are generate from your SpawnMenu NPC list, the more NPC addons you subscribed the more selectable models in the list.
- Scenario Stuck Prevention that only replce NPC that play a role in map scenario to the models which have the same animation set, or leave them untouch.

How to use:
・Open GUI from Utilities > Map NPC Replacer Menu > Open Map NPC Replace Menu
・Select replacement models for each type of NPC and check to checkbox in the front, click SAVE button for each type of NPC after checkbox checked.
・Replacement models to be selected can add by subscribing NPC addons, NOT replacement addons. If you want to use models from replacement addons, try to find their NPC version, or enable [default models to show up randomly too] option and check their checkbox in the list.
・To prevent player-spawned NPCs from being randomized, you need to re-check "Enable for Player spawned too" every time a new map is loaded.
・Combine's replcement models that have the same animation set as a combine can be found in [Combine Anim] tab, select replacements from that tab only can prevent almost any scenario break, but Scenario Stuck Prevention also check and select models from that tab only to replace if they play a role in map scenario.

Known Issues:
-Since workshop didn't have much zombie type NPC addons, zombies replacement are mainly to SNPC.
-Main character use unique animation set and scripts, so main character replcement are not an option in this project so far, I have ways but like zombie type NPC, main character NPC are so rare.
-Due to Engine litmit you can not replace NPC to any model you want, but to any SNPC you want although the SNPC might not performances properly.
-You might see some NPC not being replaced because those NPCs might play a role in map scenario, they can only replace to the models which have the same animation set(Scenario Stuck Prevention).
32 条留言
7david 9 月 4 日 上午 9:13 
threw an error and didnt work. i love this addon!
crysmiss07 8 月 29 日 下午 5:29 
it CRACHS EVREY TIME! HELP
avast windows 8 月 17 日 上午 8:46 
бабка в скайпе быстрее разбиралась чем я в этой шняге
ColdMoon  [作者] 8 月 3 日 上午 6:17 
The replaceable models are generated automatically based on your subscriptions. If the addons you subscribed to include enemy units which based on the Combine template, then they’ll appear in the COMBINE replacement list.
飞天大笑坝 8 月 3 日 上午 2:40 
npc model lost,some of them cant found,list improvement can't use,Noooo!!!TOT
Garry 7 月 25 日 上午 5:10 
Checked it, everything like in the previous comment. In the first game session the same thing happened and in the second one too. The only difference is that it's not laggy in the second session. Well, it was worth to try.
ColdMoon  [作者] 7 月 24 日 下午 12:58 
Could you try launching the game a second time to see if it still takes as long? I’ve now changed the code so that scanning NPC animation sequences only runs on the first startup or when a change in the NPC list is detected.
Garry 7 月 24 日 上午 11:16 
@ColdMoon, well now i noticed that loading of map went from "Lua started" to "Ready to play!" and now as previously i needed to wait, but this time for like 20 minutes for it to load with a screen where i need to restart. BUT eventually a managed to enter and i got auto-disconect but somehow i didn't disconnect. Then everything was laggy and after some time it ended and i could play normally. That's a big progress! 👍
ColdMoon  [作者] 7 月 23 日 下午 8:56 
@TF2 Gameplay batch-loading mechanism added, Please try and see if it works. It might cause a short freeze when you get the physics gun. In the future, I plan to have the scanning only run on the first startup or when a change in the NPC list is detected — that should completely resolve the issue.
Neosun 7 月 23 日 下午 2:55 
Though I was pressing that blue save button (and nothing was reflecting), the most recent update fixed this.

Thanks :steamhappy: