161 {
162 if (pValue == 1)
163 return pValue;
164
166
167 int randomizedSign = -1;
169 randomizedSign = 1;
170
171 float randomizationValue = 0;
172 switch (pType)
173 {
176 break;
179 break;
182 break;
183 }
184
185 return pValue + (randomizedSign * pValue * randomizationValue);
186 }
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
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].