|
Tiberian Technologies Scripts Reference Revision: 9000
|
This script refunds damage on the attached object by a percentage of the number of players there are in game out of the max players supplied as a parameter \Math for this one basically is -(PlayerCount*PlayerCount)/(MaxPlayerCount*MaxPlayerCount)*damage \MaxPlayersToScaleFor - This amount divides the players that are currently in game to get the base scale amount (The number of players is player count - 1, so when its just 1 player in game the scale is normal) \MaxScaleFactor - The maximum percent of damage that can be refunded. More...
#include <jmgUtility.h>