Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Commands->Select_Weapon doesn't work clientside.
Re: Commands->Select_Weapon doesn't work clientside. [message #487303 is a reply to message #487279] Mon, 21 April 2014 17:18 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
That is a bit odd, perhaps post the code you're using? For reference, all of the following work in 4.0 and 4.1;

Commands->Select_Weapon ( obj, Get_Powerup_Weapon ( Get_Parameter( "veteran_weaponPowerup" ) ) );


Commands->Select_Weapon ( obj, "Weapon_IFV_None" );


// Set the supercharged state
void dp88_AR_Tesla_Coil::setSuperchargedState(GameObject* obj, bool state)
{
  if ( !m_superchargedWeapon.Is_Empty() )
  {
    // If we are setting supercharged to true then switch weapons
    if ( state )
    {
      Commands->Select_Weapon(obj, m_superchargedWeapon);
      primary_maxRange = m_superchargedWeaponRange;
    }
    else
    {
      Commands->Select_Weapon(obj, m_defaultWeapon);
      primary_maxRange = m_defaultWeaponRange;
    }

    m_isSupercharged = state;
  }
}


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Mon, 21 April 2014 17:19]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: tdbedit.exe fails to list the strings I have under the default tab in my strings file.
Next Topic: Possibly memory leak SSGM
Goto Forum:
  


Current Time: Sun Dec 22 09:14:05 MST 2024

Total time taken to generate the page: 0.00799 seconds