Rainbow Six 3 is a tactical shooter game DEVELOPED by UBI. The game is a first person shooter based on Tom Clancy's best selling novel by the same name. The game has two expansion packs, Athena Sword and Iron Wrath. The plot of Ravenshield is fully explained by Wikipedia (Tom Clancy's Rainbow Six 3). Basically it is all about an elite anti-terrorist group called Rainbow Six, a team bent on foiling the Neo-Facist terrorists doing damages on South American oil interests and European financial institutions.

Post tutorial Report RSS Reloading with Sending a Voice Message

Here is a simple code what reloading weapon with sending a voice message. By this code, I send a "Reloading. / Weapon's dry!" voice message when my weapon is empty and if I press PrimaryFire key. * default setting is 1 key.

Posted by on - Basic Server Side Coding

class YourController extends R6PlayerController;

exec function PrimaryWeapon()
{
	if ( (m_pawn != none) && (m_pawn.IsAlive()) && (Pawn.EngineWeapon != none) && (Pawn.EngineWeapon == m_pawn.m_WeaponsCarried[0]) )
	{
		if ( (m_pawn.m_WeaponsCarried[0].m_iNbBulletsInWeapon == 0) && (R6Weapons(m_pawn.m_WeaponsCarried[0]).m_iCurrentNbOfClips > 0) )
		{
			ServerPlayRecordedMsg("Status ID_MSG44", PRMV_WeaponDry);

			if ( R6Pawn(Pawn).m_bReloadingWeapon )
				return;
			else
				ReloadWeapon();
		}
	}
	else
		SwitchWeapon(1);
}

exec function SecondaryWeapon()
{
	if ( (m_pawn != none) && (m_pawn.IsAlive()) && (Pawn.EngineWeapon != none) && (Pawn.EngineWeapon == m_pawn.m_WeaponsCarried[1]) )
	{
		if ( (m_pawn.m_WeaponsCarried[1].m_iNbBulletsInWeapon == 0) && (R6Weapons(m_pawn.m_WeaponsCarried[1]).m_iCurrentNbOfClips > 0) )
		{
			ServerPlayRecordedMsg("Status ID_MSG44", PRMV_WeaponDry);

			if ( R6Pawn(Pawn).m_bReloadingWeapon )
				return;
			else
				ReloadWeapon();
		}
	}
	else
		SwitchWeapon(2);
}


Post comment Comments
HTP_Teq Author
HTP_Teq - - 39 comments

Multiplayer only.

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: