Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » WeaponBag
Re: WeaponBag [message #484702 is a reply to message #484697] Sat, 30 November 2013 10:48 Go to previous messageGo to previous message
Neijwiert is currently offline  Neijwiert
Messages: 124
Registered: October 2009
Karma:
Recruit
Ok, I fixed it. It was really stupid of me not to think of this.

There was a combination of something going wrong with copying the DLL, thus not displaying the debug messages. Which made me believe that the for loop never was fired.

Now the problem was that whenever I gave myself a Blamo skin/armour . The calculated damage of the gun would then result 0 and would never be higher than the initial highest damage. Which would result in never assing WeaponIndex another value.

So to fix it, if anybody wants to know.

Change

float HighestDamage = 0;

To

float HighestDamage = -1;

[Updated on: Sat, 30 November 2013 10:49]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Client Crash
Next Topic: Tiberian Technologies releases TT scripts 4.0 patch 1!
Goto Forum:
  


Current Time: Mon May 06 04:06:40 MST 2024

Total time taken to generate the page: 0.02263 seconds