Nuclide
Software Development Kit for id Technology
plugins.h
1/*
2 * Copyright (c) 2016-2020 Marco Cawthorne <marco@icculus.org>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
21typedef struct
22{
23 string m_strPath;
25} plugin_t;
26
27
28var bool g_plugins_enabled = false;
29var bool autocvar_sv_plugins = false;
30
31void Plugin_Init(void);
32void Plugin_Shutdown(void);
33
34void Plugin_InitEnts(void);
35int Plugin_RunClientCommand(void);
36string Plugin_ParseClientCommand(string);
37int Plugin_PlayerConnect(NSClientPlayer);
38int Plugin_PlayerDisconnect(NSClientPlayer);
39int Plugin_PlayerEntered(NSClientPlayer);
40void Plugin_PlayerObituary(entity, entity, int, bodyType_t, int);
This entity class represents every player client.
Definition: NSClientPlayer.h:28
Definition: plugins.h:22
float m_flProgsID
Definition: plugins.h:24
string m_strPath
Definition: plugins.h:23