Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CampaignClientData.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
4{
5 protected string m_sID;
6 protected int m_iXP;
7 protected int m_iFaction = -1;
8 protected float m_fLastSuicideTimestamp;
9 protected float m_fRespawnPenalty;
13
14 //------------------------------------------------------------------------------------------------
15 void SetID(string ID)
16 {
17 m_sID = ID;
18 }
19
20 //------------------------------------------------------------------------------------------------
21 string GetID()
22 {
23 return m_sID;
24 }
25
26 //------------------------------------------------------------------------------------------------
27 void SetXP(int XP)
28 {
29 m_iXP = XP;
30 }
31
32 //------------------------------------------------------------------------------------------------
33 int GetXP()
34 {
35 return m_iXP;
36 }
37
38 //------------------------------------------------------------------------------------------------
39 void SetFactionIndex(int faction)
40 {
41 m_iFaction = faction;
42 }
43
44 //------------------------------------------------------------------------------------------------
46 {
47 return m_iFaction;
48 }
49
50 //------------------------------------------------------------------------------------------------
51 void SetRespawnPenalty(float penalty)
52 {
53 m_fRespawnPenalty = Math.Max(0, penalty);
54 }
55
56 //------------------------------------------------------------------------------------------------
58 {
59 return m_fRespawnPenalty;
60 }
61
62 //------------------------------------------------------------------------------------------------
63 void SetLastSuicideTimestamp(float timestamp)
64 {
65 m_fLastSuicideTimestamp = timestamp;
66 }
67
68 //------------------------------------------------------------------------------------------------
73
74 //------------------------------------------------------------------------------------------------
76 {
78 }
79
80 //------------------------------------------------------------------------------------------------
85
86 //------------------------------------------------------------------------------------------------
88 {
89 m_fNextTravelAvailableAt = timestamp;
90 }
91
92 //------------------------------------------------------------------------------------------------
97
98 //------------------------------------------------------------------------------------------------
100 {
102 }
103
104 //------------------------------------------------------------------------------------------------
109}
Definition Math.c:13
Used for storing client data to be reapplied for reconnecting clients.
void SetLastSuicideTimestamp(float timestamp)
void SetLastPenaltyDeductionTimestamp(float timestamp)
void SetAvailableAllocatedSupplies(int amount)
WorldTimestamp m_fNextTravelAvailableAt
void SetNextFastTravelTimestamp(WorldTimestamp timestamp)
void SetFactionIndex(int faction)
void SetRespawnPenalty(float penalty)
WorldTimestamp GetNextFastTravelTimestamp()
@ ID
Ordered by Group application ID.