Skip to content

Instantly share code, notes, and snippets.

View Dragoteryx's full-sized avatar
🥓
Bacon

Dragoteryx

🥓
Bacon
View GitHub Profile
@DrVrej
DrVrej / cns.md
Last active April 7, 2022 02:19
Common NPC System (CNS)

Common NPC System (CNS)

A common system that any NPC/Nextbot base can adopt to make it compatiable with other bases that are using this system.

IMPLEMENTATION

To implement CNS into your NPC/Nextbot base, you need to take the following steps:

  1. Declare and implement all the functions, variables and enumerations listed below to avoid any possible error.
  2. Declare ENT.UsingCNS = true on a shared enviroment in your NPC.

ENUMS

D_ = Enums for disposition, more information at https://wiki.facepunch.com/gmod/Enums/D