Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIGroupCohesionComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_AIGroupCohesionComponentClass

Functions

SCR_AIGroupCohesionComponentClass ScriptComponentClass Attribute ("90", desc:"Time at which Group Cohesion will be evaluated in seconds")
void OnPostInit (IEntity owner)
 Editable Mine.
void OnPlayerAddedToGroup (SCR_AIGroup aiGroup, int playerID)
void OnPlayerRemovedFromGroup (SCR_AIGroup aiGroup, int playerID)
void DrawDebug ()
void CreateAgentDistanceGraph (out array< ref array< int > > playerGraph, array< int > players, int playerCount)
void FindGroupFromAgentDistanceGraph (out array< int > biggestGroup, const array< ref array< int > > playerGraph, int playerCount, int groupMinSize)
bool GetGroupOfPlayersInCohesion (out notnull array< int > playerGroup, out notnull array< int > players, out int groupMinSize)
void AwardXPToGroup (array< int > playerGroup, array< int > players, int groupMinSize)
void CheckGroupCohesion ()
int GetPlayersInCohesion (out notnull array< int > playersInCohesion)

Function Documentation

◆ Attribute()

SCR_AIGroupCohesionComponentClass ScriptComponentClass Attribute ( "90" ,
desc:"Time at which Group Cohesion will be evaluated in seconds"  )

Definition at line 1 of file SCR_AIGroupCohesionComponent.c.

◆ AwardXPToGroup()

void AwardXPToGroup ( array< int > playerGroup,
array< int > players,
int groupMinSize )
protected

Definition at line 192 of file SCR_AIGroupCohesionComponent.c.

◆ CheckGroupCohesion()

void CheckGroupCohesion ( )
protected

Definition at line 217 of file SCR_AIGroupCohesionComponent.c.

◆ CreateAgentDistanceGraph()

void CreateAgentDistanceGraph ( out array< ref array< int > > playerGraph,
array< int > players,
int playerCount )
protected

Definition at line 94 of file SCR_AIGroupCohesionComponent.c.

◆ DrawDebug()

void DrawDebug ( )
protected

Definition at line 84 of file SCR_AIGroupCohesionComponent.c.

◆ FindGroupFromAgentDistanceGraph()

void FindGroupFromAgentDistanceGraph ( out array< int > biggestGroup,
const array< ref array< int > > playerGraph,
int playerCount,
int groupMinSize )
protected

Definition at line 147 of file SCR_AIGroupCohesionComponent.c.

◆ GetGroupOfPlayersInCohesion()

bool GetGroupOfPlayersInCohesion ( out notnull array< int > playerGroup,
out notnull array< int > players,
out int groupMinSize )
protected

Definition at line 173 of file SCR_AIGroupCohesionComponent.c.

◆ GetPlayersInCohesion()

int GetPlayersInCohesion ( out notnull array< int > playersInCohesion)
protected

Definition at line 230 of file SCR_AIGroupCohesionComponent.c.

◆ OnPlayerAddedToGroup()

void OnPlayerAddedToGroup ( SCR_AIGroup aiGroup,
int playerID )
protected

Definition at line 54 of file SCR_AIGroupCohesionComponent.c.

◆ OnPlayerRemovedFromGroup()

void OnPlayerRemovedFromGroup ( SCR_AIGroup aiGroup,
int playerID )
protected

Definition at line 69 of file SCR_AIGroupCohesionComponent.c.