Nuclide
Software Development Kit for id Tech
plugins.h File Reference

Server-Plugin APIs, similar to MetaMod. More...

Go to the source code of this file.

Classes

struct  plugin_t
 

Functions

void Plugin_Init (void)
 
void Plugin_Shutdown (void)
 
void Plugin_InitEnts (void)
 
int Plugin_RunClientCommand (void)
 
string Plugin_ParseClientCommand (string)
 
int Plugin_PlayerConnect (NSClientPlayer)
 
int Plugin_PlayerDisconnect (NSClientPlayer)
 
int Plugin_PlayerEntered (NSClientPlayer)
 
void Plugin_PlayerObituary (entity, entity, int, bodyType_t, int)
 

Variables

var bool g_plugins_enabled = false
 
var bool autocvar_sv_plugins = false
 

Detailed Description

Server-Plugin APIs, similar to MetaMod.

Function Documentation

◆ Plugin_Init()

void Plugin_Init ( void  )

◆ Plugin_InitEnts()

void Plugin_InitEnts ( void  )

◆ Plugin_ParseClientCommand()

string Plugin_ParseClientCommand ( string  msg)

◆ Plugin_PlayerConnect()

int Plugin_PlayerConnect ( NSClientPlayer  cl)

◆ Plugin_PlayerDisconnect()

int Plugin_PlayerDisconnect ( NSClientPlayer  cl)

◆ Plugin_PlayerEntered()

int Plugin_PlayerEntered ( NSClientPlayer  cl)

◆ Plugin_PlayerObituary()

void Plugin_PlayerObituary ( entity  attk,
entity  targ,
int  weapon,
bodyType_t  body,
int  dmg 
)

◆ Plugin_RunClientCommand()

int Plugin_RunClientCommand ( void  )

◆ Plugin_Shutdown()

void Plugin_Shutdown ( void  )

Variable Documentation

◆ autocvar_sv_plugins

var bool autocvar_sv_plugins = false

◆ g_plugins_enabled

var bool g_plugins_enabled = false