253{
257
259 {
260 if (!
g_Game.IsDedicatedServer())
261 {
263 {
265 }
266 }
267 }
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
299 {
300 GetCompEM().SwitchOn();
301 }
302
304 {
305 GetCompEM().SwitchOff();
306 }
307
309 {
311 if(!m_InputActionMap)
312 {
317 }
318 }
319
321 {
323 {
326 }
327
329 }
330
332 {
336 }
337
339 {
341
342 if (!action)
343 {
345 return;
346 }
347
348 typename ai = action.GetInputType();
349 if (!ai)
350 {
352 return;
353 }
354
356
357 if (!action_array)
358 {
361 }
362
364 {
365 Debug.
ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action" );
366 }
367 action_array.Insert(action);
368 }
369
371 {
373 ActionBase action = player.GetActionManager().GetAction(actionName);
374 typename ai = action.GetInputType();
376
377 if (action_array)
378 {
379 action_array.RemoveItem(action);
380 }
381 }
382}
383
385{
387 {
388 return false;
389 }
390};
391
393{
394 proto native void SwitchOn(bool onOff);
395 proto native bool IsOn();
396
398 {
399 return true;
400 }
401};
402
404{
405 proto native void SwitchOn(bool onOff);
406 proto native bool IsOn();
407 proto native void SetNextChannel();
408 proto native void SetPrevChannel();
409 proto native float GetTunedFrequency();
410 proto native void EnableBroadcast(bool state);
411 proto native void EnableReceive(bool state);
412 proto native bool IsBroadcasting();
413 proto native bool IsReceiving();
414 proto native int GetTunedFrequencyIndex();
415 proto native void SetFrequencyByIndex(int index);
416}
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.