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
[SSGM 4.0 Plugin] Refill Costs Money [message #471418] Thu, 12 July 2012 06:53 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma:
General (4 Stars)
This plugin will make purchasing a refill cost money. The cost is calculated based on the following formula:

((Max HP-Current HP) / Max HP) * Preset Cost * Fraction Of Total Cost * Base Power Multiplier

Preset Cost = the cost of the object, e.g. 1000 credits for a Havoc
Fraction Of Total Cost = a configurable multiplier you can set, e.g. if you want to have a refill cost 30% of the culculated cost set this to 0.3
Base Power Multiplier = if doubling cost when base power is down is configured this will be set to 2.0 when base power is down otherwise it's always 1.0

You can contact me on renegadeforums.com under the nick 'iRANian'.

To install place RefillCostsMoney.dll in the root fds folder and add an entry for it under [Plugins] in ssgm.ini, then add the following to ssgm.ini and configure it:

[RefillCostsMoney]
FractionOfTotalCost = 0.3 ; this number is multiplied with the calculated cost of a refill
NoBasePowerDoubleCost = true ; double the cost of a refill when base power is down


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
 
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: Mon Dec 02 08:47:15 MST 2024

Total time taken to generate the page: 0.00705 seconds