186{
190
192 {
193 if (!
g_Game.IsDedicatedServer())
194 {
196 {
198 }
199 }
200 }
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
232 {
233 GetCompEM().SwitchOn();
234 }
235
237 {
238 GetCompEM().SwitchOff();
239 }
240
242 {
244 if(!m_InputActionMap)
245 {
250 }
251 }
252
254 {
256 {
259 }
260
262 }
263
265 {
269 }
270
272 {
274
275 if (!action)
276 {
278 return;
279 }
280
281 typename ai = action.GetInputType();
282 if (!ai)
283 {
285 return;
286 }
287
289
290 if (!action_array)
291 {
294 }
295
297 {
298 Debug.
ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action" );
299 }
300 action_array.Insert(action);
301 }
302
304 {
306 ActionBase action = player.GetActionManager().GetAction(actionName);
307 typename ai = action.GetInputType();
309
310 if (action_array)
311 {
312 action_array.RemoveItem(action);
313 }
314 }
315}
316
318{
320 {
321 return false;
322 }
323};
324
326{
327 proto native void SwitchOn(bool onOff);
328 proto native bool IsOn();
329
331 {
332 return true;
333 }
334};
335
337{
338 proto native void SwitchOn(bool onOff);
339 proto native bool IsOn();
340 proto native void SetNextChannel();
341 proto native void SetPrevChannel();
342 proto native float GetTunedFrequency();
343 proto native void EnableBroadcast(bool state);
344 proto native void EnableReceive(bool state);
345 proto native bool IsBroadcasting();
346 proto native bool IsReceiving();
347 proto native int GetTunedFrequencyIndex();
348 proto native void SetFrequencyByIndex(int index);
349}
void ActionManagerBase(PlayerBase player)
map< typename, ref array< ActionBase_Basic > > TInputActionMap
void AddAction(typename actionName)
void RemoveAction(typename actionName)
void AdvancedCommunication()
TInputActionMap m_InputActionMap
void TurnOffTransmitter()
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
override void GetActions(typename action_input_type, out array< ActionBase_Basic > actions)
static ref map< typename, ref TInputActionMap > m_AdvComTypeActionsMap
override bool IsDetectableByVicinityCone()
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static bool IsActionLogEnable()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.