コード例 #1
0
ファイル: g_active.c プロジェクト: chegestar/omni-bot
void G_RunClient( gentity_t *ent ) {
	if ( !g_synchronousClients.integer ) {
		return;
	}
	ent->client->pers.cmd.serverTime = level.time;
	ClientThink_real( ent );
}
コード例 #2
0
ファイル: g_active.cpp プロジェクト: DerSaidin/OpenWolf
void G_RunClient( gentity_t *ent )
{
  if( !( ent->r.svFlags & SVF_BOT ) && !g_synchronousClients.integer )
    return;

  ent->client->pers.cmd.serverTime = level.time;
  ClientThink_real( ent );
}
コード例 #3
0
/*
==================
ClientThink

A new command has arrived from the client
==================
*/
void ClientThink( int clientNum, usercmd_t *ucmd ) {
	gentity_t *ent;

	ent = g_entities + clientNum;
	ent->client->usercmd = *ucmd;
//	if ( !g_syncronousClients->integer ) 
	{
		ClientThink_real( ent, ucmd );
	}
}
コード例 #4
0
ファイル: g_active.c プロジェクト: Zekom/reaction
void G_RunClient(gentity_t * ent)
{
	/* camera jitter fix (server side) */
// JBravo: Take SPECTATOR_ZCAM into account
	if (!(ent->r.svFlags & SVF_BOT) && !g_synchronousClients.integer &&
	    (ent->client->sess.sessionTeam != TEAM_SPECTATOR ||
	     (ent->client->sess.sessionTeam == TEAM_SPECTATOR && ent->client->sess.spectatorState != SPECTATOR_ZCAM))) {
		return;
	}
	ent->client->pers.cmd.serverTime = level.time;
	ClientThink_real(ent);
}
コード例 #5
0
ファイル: g_active.c プロジェクト: ETrun/ETrun
/*
==================
ClientThink

A new command has arrived from the client
==================
*/
void ClientThink(int clientNum) {
	gentity_t *ent;

	ent                      = g_entities + clientNum;
	ent->client->pers.oldcmd = ent->client->pers.cmd;
	trap_GetUsercmd(clientNum, &ent->client->pers.cmd);

	// mark the time we got info, so we can display the
	// phone jack if they don't get any for a while
	ent->client->lastCmdTime = level.time;

	ClientThink_real(ent);
}
コード例 #6
0
ファイル: g_active.cpp プロジェクト: Jordi1990/Sof2MPSDK
/*
==================
ClientThink

A new command has arrived from the client
==================
*/
void ClientThink( int clientNum ) 
{
	gentity_t *ent = g_entities + clientNum;
	trap_GetUsercmd( clientNum, &ent->client->pers.cmd );

	// mark the time we got info, so we can display the
	// phone jack if they don't get any for a while
	ent->client->lastCmdTime = level.time;

	if ( !(ent->r.svFlags & SVF_BOT) && !g_synchronousClients.integer ) 
	{
		ClientThink_real( ent );
	}
}
コード例 #7
0
ファイル: g_active.c プロジェクト: Zekom/reaction
/*
==================
ClientThink

A new command has arrived from the client
==================
*/
void ClientThink(int clientNum)
{
	gentity_t *ent;

	ent = g_entities + clientNum;
	trap_GetUsercmd(clientNum, &ent->client->pers.cmd);

	// mark the time we got info, so we can display the
	// phone jack if they don't get any for a while
	// ent->client->lastCmdTime = level.time;

	/* camera jitter fix (server side) */
// JBravo: Take SPECTATOR_ZCAM into account
	if (!(ent->r.svFlags & SVF_BOT) && !g_synchronousClients.integer &&
	    (ent->client->sess.sessionTeam != TEAM_SPECTATOR ||
	     (ent->client->sess.sessionTeam == TEAM_SPECTATOR && ent->client->sess.spectatorState != SPECTATOR_ZCAM))) {
		ClientThink_real(ent);
	}
}