Garry's Mod

Garry's Mod

[VJ] Lethal Necrotics Reanimated: Half-Life 2
 This topic has been pinned, so it's probably important
Darkborn  [developer] 3 Jun, 2021 @ 10:21am
Unofficial LNR Expansions
Want to make your own unofficial expansion to my series? Well, read this guide and you'll be good to go.

Now before we even begin, if you don't understand how to create an SNPC on VJ Base then I highly suggest you watch this Tutorial before doing anything else.

Before we get started on the process, first we will need a working model. Now here are the LNR animations we will need:

$includemodel "vj_lnrhl2/lnranims/zombie_rigs/zombie_animrig_valve_movement.mdl"

We will need to decompile the model we're trying to add the animations to, to do so we will need Crowbar. Once decompiled, go into the model's QC and add the animations listed above then compile the model and you're good to go. Note only proper ValveBiped models will work for this!

Now for the guide, first off I will provide a reference as an example of how to make your own custom LNR SNPC, download can be found here[cdn.discordapp.com].

Once downloaded, extract the folder and put it in: garrysmod/addons/ADDONNAME/lua/entities/

And as always, be sure to change the class name so you avoid conflictions! Now you need to add that SNPC in your autorun file and make sure everything is correct then you can test to make sure it works in-game. I recommend Notepad++[notepad-plus-plus.org] for the lua parts.

There are 2 main LNR SNPC base types:
  • npc_vj_lnr_base_wal
  • npc_vj_lnr_base_inf

You want to use these because whenever I update the main LNR pack, every other LNR SNPC in the addons will also get updated as it's easier to manage than having to do 50+ SNPCs separately. So be sure to use the base types listed above. You can add the base type you want in the reference's shared.lua file.

If something didn't work then re-read this guide carefully and watch the tutorial again if you get lost. It's not that difficult of a process to understand. If everything is working then that's it! You can start making your own unofficial expansion for LNR! Just be sure to make the main LNR addon as the requirement of it. :P
Last edited by Darkborn; 17 Aug, 2022 @ 2:14pm