Nuclide
Software Development Kit for id Technology
Main Page
Related Pages
Modules
Classes
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
21
typedef
struct
22
{
23
string
m_strPath
;
24
float
m_flProgsID
;
25
}
plugin_t
;
26
27
28
var
bool
g_plugins_enabled =
false
;
29
var
bool
autocvar_sv_plugins =
false
;
30
31
void
Plugin_Init(
void
);
32
void
Plugin_Shutdown(
void
);
33
34
void
Plugin_InitEnts(
void
);
35
int
Plugin_RunClientCommand(
void
);
36
string
Plugin_ParseClientCommand(
string
);
37
int
Plugin_PlayerConnect(
NSClientPlayer
);
38
int
Plugin_PlayerDisconnect(
NSClientPlayer
);
39
int
Plugin_PlayerEntered(
NSClientPlayer
);
40
void
Plugin_PlayerObituary(entity, entity,
int
, bodyType_t,
int
);
NSClientPlayer
This entity class represents every player client.
Definition:
NSClientPlayer.h:28
plugin_t
Definition:
plugins.h:22
plugin_t::m_flProgsID
float m_flProgsID
Definition:
plugins.h:24
plugin_t::m_strPath
string m_strPath
Definition:
plugins.h:23
src
server
plugins.h
2009-2024 (C) Nuclide is a project by
Vera Visions, L.L.C.
and is available under the
ISC License
.