Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] Refill Costs Money
Re: [SSGM 4.0 Plugin] Refill Costs Money [message #471421 is a reply to message #471418] Thu, 12 July 2012 07:11 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
Excellent concept. Nice one! Thumbs Up


Especially as it seems to not be based on your ammo count, but rather your health, which makes sense to me.

The maths is making my head hurt a little though.

Quote:

((Max HP-Current HP) / Max HP)


First of all, I am going to assume Max HP and CurrentHP are calculated by including your shield, too?

Second, if I have full health, would the above not calculate as '1'? Meaning that the cost is highest for refilling when you're at full health, and lowest for refilling the close to death you are?

Shouldn't it be something like:

1.0f - ((100/MaxHealth) * CurrentHP)



 
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: [4.1 Sidebar] Mauler's Renegade Sidebar
Next Topic: [SSGM 4.0 Plugin] GameSpy Support
Goto Forum:
  


Current Time: Sun Jun 30 14:51:19 MST 2024

Total time taken to generate the page: 0.00673 seconds