diff options
author | /dev/humancontroller <devhc@example.com> | 2017-09-16 21:05:30 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-09-16 21:24:55 +0200 |
commit | 0ec47fd7d8c7ffbf962b3e5105f26bc677a639a3 (patch) | |
tree | 7321558c918796a8c94fa7681e8a3f95b78f05a1 /src/game/g_local.h | |
parent | f48a7610eef092d8ce5c6b2ae761571745a9db3e (diff) |
implement !control
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r-- | src/game/g_local.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h index 83431c0..6547741 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -378,6 +378,8 @@ typedef struct typedef struct { clientConnected_t connected; + qboolean isPlaceholder; + int control; usercmd_t cmd; // we would lose angles if not persistant qboolean localClient; // true if "ip" info key is "localhost" qboolean initialSpawn; // the first spawn should be at a cool location @@ -1160,12 +1162,15 @@ qboolean G_Flood_Limited( gentity_t *ent ); // // g_client.c // -const char *ClientConnect( int clientNum, qboolean firstTime ); +const char *ClientConnect( int clientNum, qboolean firstTime, qboolean isPlaceholder ); void ClientUserinfoChanged( int clientNum, qboolean forceName ); void ClientDisconnect( int clientNum ); void ClientBegin( int clientNum ); void ClientCommand( int clientNum ); +const char *review_placeholder_client_userinfo(char *userinfo); +void inject_placeholder_client(const char *userinfo, int slot, qboolean first_time); + // // g_active.c // @@ -1600,3 +1605,6 @@ qboolean trap_GetEntityToken( char *buffer, int bufferSize ); void trap_SnapVector( float *v ); void trap_SendGameStat( const char *data ); + +int trap_install_placeholder_client(const char *userinfo); +void trap_set_client_view_entity(int cortex, int eye); |