Example #1
0
void CSynAoiDimObj::SetStealth( float fStealth )
{
	if (GetStealth() == fStealth)
	{
		return;
	}

	ModifyVisibilityProperty(m_fSize,fStealth);

	m_fStealth = fStealth;
}
Example #2
0
Command_st PlayerInputListener::GetNextCommand()
{
	Command_st oCommand;

	glfwLockMutex(m_oInputMutex);
		// Set the inputs
		oCommand.cMoveDirection = GetMoveDirection();
		oCommand.bStealth = GetStealth();
		oCommand.fZ = m_oPlayer.GetZ() + static_cast<float>(m_dRotationAxis);		// Get the most up-to-date player Z value
	glfwUnlockMutex(m_oInputMutex);

	return oCommand;
}