Example #1
0
void CRocketLauncher::OnStopFire(EntityId shooterId)
{
		CWeapon::OnStopFire(shooterId);

		if (IsAutoDroppable())
		{
				AutoDrop();
		}
}
Example #2
0
void CJaw::Select(bool select)
{
	BaseClass::Select(select);

	if (select)
	{
		//Force an update, it will check for previous cancelled auto drop request (just in case we got an empty JAW)
		const bool forceDropOnSelect = m_playedDropAction || (IsOwnerClient() && m_fm && m_fm->OutOfAmmo());
		if (forceDropOnSelect)
		{
			m_playedDropAction = false; //Start auto drop again
			HideRocket();
			AutoDrop();
			RequireUpdate(eIUS_General);
		}
	}
	else
	{
		m_laserGuider.TurnOffLaser();
	}

}