Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
randomgeneratorsyncmanager.c File Reference

Go to the source code of this file.

Enumerations

enum  RandomGeneratorSyncUsage {
  RGSRecoil , RGSJam , RGSGeneric , RGSAimingModel ,
  RGSAnimalCatching , Count
}

Functions

float GetRandom01 (RandomGeneratorSyncUsage usage_index)
float GetRandomInRange (RandomGeneratorSyncUsage usage_index, float min, float max)
void RandomGeneratorSyncManager (DayZPlayer player)
void Update ()

Variables

DayZPlayer m_player
float randomValuesArray [USAGE_COUNT]
enum RandomGeneratorSyncUsage USAGE_COUNT = RandomGeneratorSyncUsage.Count

Enumeration Type Documentation

◆ RandomGeneratorSyncUsage

Enumerator
RGSRecoil 
RGSJam 
RGSGeneric 
RGSAimingModel 
RGSAnimalCatching 
Count 

Definition at line 1 of file randomgeneratorsyncmanager.c.

Function Documentation

◆ GetRandom01()

float GetRandom01 ( RandomGeneratorSyncUsage usage_index)

Definition at line 32 of file randomgeneratorsyncmanager.c.

References randomValuesArray, and USAGE_COUNT.

Referenced by GetRandomInRange().

◆ GetRandomInRange()

float GetRandomInRange ( RandomGeneratorSyncUsage usage_index,
float min,
float max )

Definition at line 41 of file randomgeneratorsyncmanager.c.

References GetRandom01().

◆ RandomGeneratorSyncManager()

void RandomGeneratorSyncManager ( DayZPlayer player)

Definition at line 18 of file randomgeneratorsyncmanager.c.

References m_player.

Referenced by ManBase::GetRandomGeneratorSyncManager(), and ManBase::Init().

Variable Documentation

◆ m_player

◆ randomValuesArray

float randomValuesArray[USAGE_COUNT]

Definition at line 15 of file randomgeneratorsyncmanager.c.

Referenced by GetRandom01(), and Update().

◆ USAGE_COUNT