Garry's Mod

Garry's Mod

59 ratings
Map NPC Replacer
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
File Size
Posted
Updated
287.637 KB
21 Oct, 2024 @ 10:36am
22 Jul @ 5:39am
10 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.
・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).
13 Comments
ColdMoon  [author] 15 hours ago 
I’ve made an update—check if the issue happens to be resolved. If not, it might be a conflict with the addons you’ve subscribed to, since I haven’t encountered this issue myself.
Armalad 20 hours ago 
Done all that. Everything is checked, and I'm getting the same problem Roy is having.
ColdMoon  [author] 21 Jul @ 5:56pm 
@Armalad Also check "npc_ply_replacer_zombies" to randomizes zombies that spawn by yourself.
RoyTheBoy 21 Jul @ 5:17pm 
even when i save they dont appear
Armalad 21 Jul @ 10:54am 
Did all of that, still not doing anything. Does it mean anything that the SAVE button is grayed out? IT still says it's been saved, but i bring the snpc menu back up and the snpcs I checked off no longer are.
ColdMoon  [author] 21 Jul @ 9:46am 
@Armalad Check "Enable zombie etc. replacement" and "replace ZOMBIE to SNPC", then select your SNPC and click "OK", and click "SAVE" in main GUI, and then Utilities > Admin > Clean up > Clean up everything or restart the game
Armalad 21 Jul @ 5:58am 
How do you replace zombies with snpcs? I'm trying to replace the efault zombies with VJ common infected but it doesn't seem to be working. The save button is red and it doesn't seem to be saving the selected snpcs.
RoyTheBoy 21 Jul @ 2:22am 
thanks
ColdMoon  [author] 21 Jul @ 1:47am 
@RoyTheBoy It shouldn't affect the main functionality, but the issue is resolved now. Thanks for providing it.
RoyTheBoy 20 Jul @ 10:36pm 
got this error.

[Map NPC Replacer] lua/autorun/map_npc_replacer.lua:1666: bad argument #1 to 'Exists' (string expected, got boolean)
1. Exists - [C]:-1
2. TabMissingModels - lua/autorun/map_npc_replacer.lua:1666
3. unknown - lua/autorun/map_npc_replacer.lua:4131

Timer Failed! [Simple][@lua/autorun/map_npc_replacer.lua (line 4131)]

when i save my stuff it doesnt save.