Salesmen v0.93

Allows NPCs that sell an inventory to be created.

By kurozael

Modules

Hooks hooks
cwSalesmen plugin
Defines the client-side cw.salesman library, which holds the state of the salesman being created or edited in the cwSalesman editor.
Defines the client-side cw.salesmenu library, which holds the data of the salesman whose trade menu is open.

Commands

SalesmanAdd command
Registers the /SalesmanAdd superadmin command, which opens the salesman editor to create a salesman where the player is looking, with an optional animation.
SalesmanEdit command
Registers the /SalesmanEdit superadmin command, which opens the editor with the settings of the salesman the player is looking at, so that closing the editor replaces it in place.
Registers the /SalesmanRemove superadmin command, which removes the salesman the player is looking at.

Entities

Salesman entity
Shared definition of the cw_salesman entity, a non-spawnable base_anim entity named Salesman that removes its chat bubble when it is removed.

Panels