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 #487363 is a reply to message #487279] Fri, 25 April 2014 02:58 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
Passing an empty string to Select_Weapon makes them select the first weapon in their weapon bag. If they only have one weapon or the sniper rifle is their primary weapon (index 0) then your code is not causing a weapon switch and thus will not trigger switching time.

void WeaponBagClass::Deselect()
{
   this->Select_Index (0);
}


0 is a valid weapon index, thus they select the weapon at position 0.


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

[Updated on: Fri, 25 April 2014 03:01]

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 14:14:58 MST 2024

Total time taken to generate the page: 0.00746 seconds