Garry's Mod

Garry's Mod

86 ratings
Map NPC Replacer
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
File Size
Posted
Updated
310.302 KB
21 Oct, 2024 @ 10:36am
1 Aug @ 1:27pm
17 Change Notes ( view )

Subscribe to download
Map NPC Replacer

Description
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 Comments
7david 4 Sep @ 9:13am 
threw an error and didnt work. i love this addon!
crysmiss07 29 Aug @ 5:29pm 
it CRACHS EVREY TIME! HELP
avast windows 17 Aug @ 8:46am 
бабка в скайпе быстрее разбиралась чем я в этой шняге
ColdMoon  [author] 3 Aug @ 6:17am 
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.
飞天大笑坝 3 Aug @ 2:40am 
npc model lost,some of them cant found,list improvement can't use,Noooo!!!TOT
Garry 25 Jul @ 5:10am 
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  [author] 24 Jul @ 12:58pm 
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 24 Jul @ 11:16am 
@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  [author] 23 Jul @ 8:56pm 
@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 23 Jul @ 2:55pm 
Though I was pressing that blue save button (and nothing was reflecting), the most recent update fixed this.

Thanks :steamhappy: