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 #487359 is a reply to message #487303] Thu, 24 April 2014 16:31 Go to previous messageGo to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
We do things like this:
const char *weap = Get_Current_Weapon(obj);
if (weap)
{
    Commands->Select_Weapon(obj,"");
    Commands->Select_Weapon (obj,weap);
}

To disable sniper rifles when a player is moving (it relies on weapon switch time); however, in the Renegade map I'm making that piece of code didn't work and the weapons could still shoot while moving. In the end I had to remove all bullets from the gun to get the somewhat desired effect; however, it is far more confusing for most people.


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

Total time taken to generate the page: 0.00753 seconds