ClientPutInServerOverride: Difference between revisions
Jump to navigation
Jump to search
Psycommando (talk | contribs) (New page: {{HL2}}{{Stub}} =Location= ..\src\game\server\gameinterface.h =Declaration= <source lang=cpp>// Normally, when the engine calls ClientPutInServer, it calls a global function in the game ...) |
Thunder4ik (talk | contribs) m (clean up, added orphan, uncategorised tags) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Orphan|date=January 2024}} | ||
{{HL2}} | |||
=Location= | =Location= | ||
Line 12: | Line 14: | ||
=Description= | =Description= | ||
Define the new function to call when a client joins a server. A similarly named function is used in the ''..\src\game\server\client.h'' header, and defined in ''..\src\game\server\client.cpp''. This function as defined in ''..\src\game\server\client.cpp'' spawns the "''CHL2_Player''" player in the game. | Define the new function to call when a client joins a server. A similarly named function is used in the "''..\src\game\server\client.h''" header, and defined in "''..\src\game\server\client.cpp''". This function as defined in "''..\src\game\server\client.cpp''" spawns the "''CHL2_Player''" player in the game. | ||
{{todo|Write some more on the implications of using this function. Verify accuracy, too.}} | {{todo|Write some more on the implications of using this function. Verify accuracy, too.}} | ||
{{Stub}} | |||
{{Uncategorized stub|date=January 2024}} |
Latest revision as of 22:38, 21 January 2024

This article is an orphan, meaning that few or no articles link to it.
You can help by
adding links to this article from other relevant articles.
January 2024
You can help by

January 2024
Location
..\src\game\server\gameinterface.h
Declaration
// Normally, when the engine calls ClientPutInServer, it calls a global function in the game DLL
// by the same name. Use this to override the function that it calls. This is used for bots.
typedef CBasePlayer* (*ClientPutInServerOverrideFn)( edict_t *pEdict, const char *playername );
void ClientPutInServerOverride( ClientPutInServerOverrideFn fn );
Description
Define the new function to call when a client joins a server. A similarly named function is used in the "..\src\game\server\client.h" header, and defined in "..\src\game\server\client.cpp". This function as defined in "..\src\game\server\client.cpp" spawns the "CHL2_Player" player in the game.
Todo: Write some more on the implications of using this function. Verify accuracy, too.

This article has not been added to any content
categories. Please help out by
adding categories.
January 2024


January 2024