118 {
119
121 {
122
124 {
125
128
129
130 int randPos;
131 Param1<vector> pos;
132 array<ref Param> params;
133
135 {
136
137 randPos = Math.RandomIntInclusive(0,
m_FiringPos.Count() - 1);
139 params = new array<ref Param>;
140 params.Insert(pos);
142 }
143 else
144 {
145
146
147
148
149
150 array<int> usedIndices = new array<int>;
151
152
154 for (int i = 0; i < randFireNb; i++)
155 {
156 randPos = Math.RandomIntInclusive(0,
m_FiringPos.Count() - 1);
157
158 if (usedIndices.Count() <= 0 || usedIndices.Find(randPos) < 0)
159 {
160
162 params = new array<ref Param>;
163
164
165 params.Insert(pos);
167
168
169 usedIndices.Insert(randPos);
170 }
171 }
172 }
173
174
176 }
177
179 }
180 }
proto native void RPC(Object target, int rpcType, notnull array< ref Param > params, bool guaranteed, PlayerIdentity recipient=null)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
ref array< vector > m_FiringPos
int m_MaxSimultaneousStrikes
int m_MinSimultaneousStrikes
proto native CGame GetGame()