Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://imgur.com/YOXYAo4
You'll want to unpack your NPC addon of choice with gmad.exe found in the Garrysmod Bin Folder.
When the respective addon's folder is generated in your garrysmod/addons folder, open the lua folder and find the script for your NPC of choice.
In there you'll be looking for a class name similar to the Default NPC classes seen in Hammer such as "npc_soldiercombines" or "npc_citizen".
In my case, it was "npc_alfie_odst_friendly".
Copy that classname and paste in the NPC Classname section of your NPC Spawnplatform properties.
Save and Compile your map and load in Garry's Mod and VOILA!
Hope this helps anyone who wants to build these into their map and not be limited to HL2 NPCs.
I'll post more as more becomes revealed through trial and error, such as a custom weapon class and some ability to modify bodygroups.
Stay posted.
Unpack the NPC Swep addon of your choice and head to the lua for the weapon classes.
There you'll find a list of all the various weapons that addon references and, same drill, copy and paste into the Weapon Class section of your Spawn Platform properties menu within Hammer.
Save, Compile and Load the map and once again, works like a charm.
In case it isn't already clear, make sure to actually have the addon installed in your addons folder and make sure your referencing NPC SWEPS not player weapons or props!
Good luck!
If I can come up with a work around for Bodygroups you'll find it below in time.