152 {
154
155 int randomizedSign = -1;
157 randomizedSign = 1;
158
159 float randomizationValue = 0;
160 switch (pType)
161 {
164 break;
167 break;
170 break;
171 }
172
173 return pValue + (randomizedSign * pValue * randomizationValue);
174 }
const float RANDOM_THRESHOLD_HEALTH_LOW
const float RANDOM_THRESHOLD_LEGS_LOW
const float RANDOM_THRESHOLD_HEALTH_HIGH
const int DAMAGE_TYPE_LEGS
const int DAMAGE_TYPE_GLOBAL
const float RANDOM_THRESHOLD_LEGS_HIGH
const int DAMAGE_TYPE_ATTACHMENTS
const float RANDOM_THRESHOLD_ATTACHMENTS_LOW
const float RANDOM_THRESHOLD_ATTACHMENTS_HIGH
proto native CGame GetGame()
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].