203{
207
209 {
210 if (!
g_Game.IsDedicatedServer())
211 {
213 {
215 }
216 }
217 }
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
249 {
250 GetCompEM().SwitchOn();
251 }
252
254 {
255 GetCompEM().SwitchOff();
256 }
257
259 {
261 if(!m_InputActionMap)
262 {
267 }
268 }
269
271 {
273 {
276 }
277
279 }
280
282 {
286 }
287
289 {
291
292 if (!action)
293 {
295 return;
296 }
297
298 typename ai = action.GetInputType();
299 if (!ai)
300 {
302 return;
303 }
304
306
307 if (!action_array)
308 {
311 }
312
314 {
315 Debug.
ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action" );
316 }
317 action_array.Insert(action);
318 }
319
321 {
323 ActionBase action = player.GetActionManager().GetAction(actionName);
324 typename ai = action.GetInputType();
326
327 if (action_array)
328 {
329 action_array.RemoveItem(action);
330 }
331 }
332}
333
335{
337 {
338 return false;
339 }
340};
341
343{
344 proto native void SwitchOn(bool onOff);
345 proto native bool IsOn();
346
348 {
349 return true;
350 }
351};
352
354{
355 proto native void SwitchOn(bool onOff);
356 proto native bool IsOn();
357 proto native void SetNextChannel();
358 proto native void SetPrevChannel();
359 proto native float GetTunedFrequency();
360 proto native void EnableBroadcast(bool state);
361 proto native void EnableReceive(bool state);
362 proto native bool IsBroadcasting();
363 proto native bool IsReceiving();
364 proto native int GetTunedFrequencyIndex();
365 proto native void SetFrequencyByIndex(int index);
366}
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.