DayZ 1.24
Loading...
Searching...
No Matches
AdvancedCommunication.c File Reference

Go to the source code of this file.

Classes

class  EntityAI
 
class  AdvancedCommunication
 

Functions

void AdvancedCommunication ()
 
void TurnOnTransmitter ()
 
void TurnOffTransmitter ()
 
void InitializeActions ()
 
override void GetActions (typename action_input_type, out array< ActionBase_Basic > actions)
 
void SetActions ()
 
void AddAction (typename actionName)
 
void RemoveAction (typename actionName)
 

Variables

static ref map< typename, ref TInputActionMapm_AdvComTypeActionsMap = new map<typename, ref TInputActionMap>
 
TInputActionMap m_InputActionMap
 
bool m_ActionsInitialize
 
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
 

Function Documentation

◆ AddAction()

void IsInventoryVisible::AddAction ( typename actionName )

Definition at line 212 of file AdvancedCommunication.c.

Referenced by ManBase::AddAction(), RemoteDetonatorReceiver(), EntityAI::SetActions(), StaticTransmitter::SetActions(), Land_Misc_Through_Static::SetActions(), Land_Underground_Panel_Lever::SetActions(), SetActions(), BuildingSuper::SetActions(), InventoryItemSuper::SetActions(), ItemBase::SetActions(), ItemOptics::SetActions(), ClaymoreMine::SetActions(), ImprovisedExplosive::SetActions(), Plastic_Explosive::SetActions(), RemoteDetonatorTrigger::SetActions(), Rifle_Base::SetActions(), BoltActionRifle_ExternalMagazine_Base::SetActions(), BoltActionRifle_Base::SetActions(), DoubleBarrel_Base::SetActions(), Weapon_Base::SetActions(), Mp133Shotgun_Base::SetActions(), Weapon::SetActions(), InventoryItem::SetActions(), Barrel_ColorBase::SetActions(), BaseBuildingBase::SetActions(), Battery9V::SetActions(), BloodContainerBase::SetActions(), ToolBase::SetActions(), CattleProd::SetActions(), Chemlight_ColorBase::SetActions(), ItemMap::SetActions(), Clothing::SetActions(), Mask_Base::SetActions(), HeadGear_Base::SetActions(), Top_Base::SetActions(), Pants_Base::SetActions(), DrysackBag_ColorBase::SetActions(), Glasses_Base::SetActions(), Shoes_Base::SetActions(), Gloves_Base::SetActions(), HelmetBase::SetActions(), RopeBelt::SetActions(), WitchHoodCoif_ColorBase::SetActions(), Compass::SetActions(), Edible_Base::SetActions(), AgaricusMushroom::SetActions(), Apple::SetActions(), AuriculariaMushroom::SetActions(), Banana::SetActions(), BoletusMushroom::SetActions(), Bottle_Base::SetActions(), Cannabis::SetActions(), GreenBellPepper::SetActions(), Kiwi::SetActions(), LactariusMushroom::SetActions(), MacrolepiotaMushroom::SetActions(), Orange::SetActions(), Pear::SetActions(), PleurotusMushroom::SetActions(), Plum::SetActions(), Potato::SetActions(), SlicedPumpkin::SetActions(), TetracyclineAntibiotics::SetActions(), Tomato::SetActions(), TunaCan::SetActions(), VitaminBottle::SetActions(), Zucchini::SetActions(), EyeMask_ColorBase::SetActions(), FireplaceBase::SetActions(), FishingRod_Base_New::SetActions(), WoodenCrate::SetActions(), Bandana_ColorBase::SetActions(), Bone::SetActions(), DuctTape::SetActions(), SmallStone::SetActions(), TannedLeather::SetActions(), BurlapSack::SetActions(), ChickenFeather::SetActions(), LongWoodenStick::SetActions(), SharpWoodenStick::SetActions(), Spear::SetActions(), Fabric::SetActions(), AntiPestsSpray::SetActions(), SeedBase::SetActions(), SodaCan_ColorBase::SetActions(), BakedBeansCan_Opened::SetActions(), DogFoodCan::SetActions(), PorkCan::SetActions(), Lunchmeat::SetActions(), Pajka::SetActions(), Pate::SetActions(), BrisketSpread::SetActions(), Marmalade::SetActions(), MushroomBase::SetActions(), Honey::SetActions(), Zagorky_ColorBase::SetActions(), Snack_ColorBase::SetActions(), PeachesCan_Opened::SetActions(), PowderedMilk::SetActions(), Rice::SetActions(), SardinesCan_Opened::SetActions(), SpaghettiCan_Opened::SetActions(), TacticalBaconCan_Opened::SetActions(), TunaCan_Opened::SetActions(), AntiChemInjector::SetActions(), BloodTestKit::SetActions(), DisinfectantAlcohol::SetActions(), Epinephrine::SetActions(), IodineTincture::SetActions(), Morphine::SetActions(), SalineBagIV::SetActions(), Splint::SetActions(), GPSReceiver::SetActions(), Binoculars::SetActions(), AlarmClock_ColorBase::SetActions(), BroomBase::SetActions(), Crowbar::SetActions(), EpoxyPutty::SetActions(), FarmingHoe::SetActions(), FireExtinguisher::SetActions(), HandcuffKeys::SetActions(), Handcuffs::SetActions(), HandSaw::SetActions(), HayHook::SetActions(), Iceaxe::SetActions(), KitchenTimer::SetActions(), LeatherSewingKit::SetActions(), Lockpick::SetActions(), LugWrench::SetActions(), MeatTenderizer::SetActions(), Paddle::SetActions(), Pen_ColorBase::SetActions(), SewingKit::SetActions(), Wrench::SetActions(), Container_Base::SetActions(), Grenade_Base::SetActions(), Heatpack::SetActions(), KazuarOptic::SetActions(), StarlightOptic::SetActions(), Inventory_Base::SetActions(), LongTorch::SetActions(), Ammunition_Base::SetActions(), ItemMegaphone::SetActions(), PoweredOptic_Base::SetActions(), PunchedCard::SetActions(), ItemRadio::SetActions(), Roadflare::SetActions(), StunBaton::SetActions(), Switchable_Base::SetActions(), TelescopicBaton::SetActions(), TentBase::SetActions(), FlammableBase::SetActions(), ItemTransmitter::SetActions(), TrapBase::SetActions(), TrapSpawnBase::SetActions(), TripodBase::SetActions(), VehicleBattery::SetActions(), WoodenStick::SetActions(), CarScript::SetActions(), ManBase::SetActions(), ManBase::SetActionsRemoteTarget(), and UnknownFoodCan_Opened().

◆ AdvancedCommunication()

void IsInventoryVisible::AdvancedCommunication ( )

Definition at line 134 of file AdvancedCommunication.c.

136{
137 proto native void SwitchOn(bool onOff);
138 proto native bool IsOn();
139};
140

◆ GetActions()

override void IsInventoryVisible::GetActions ( typename action_input_type ,
out array< ActionBase_Basic > actions )

Definition at line 194 of file AdvancedCommunication.c.

195{
199
201 {
202 if (!GetGame().IsDedicatedServer())
203 {
204 if (GetGame().GetPlayer())
205 m_ActionsInitialize = false;
206 }
207 }
208
209 //HUD
210 /*
211 protected Hud GetHud( PlayerBase player )
212 {
213 if ( !player )
214 {
215 return NULL;
216 }
217
218 return player.m_Hud;
219 }
220
221 void DisplayRadioInfo( string message, PlayerBase player )
222 {
223 Hud hud;
224 if ( player )
225 {
226 hud = GetHud( player );
227 }
228
229 if ( hud )
230 {
231 hud.SetWalkieTalkieText( message );
232 hud.ShowWalkieTalkie( 3 );
233 }
234 }
235 */
236
237 //control transmitter via user actions
238 void TurnOnTransmitter()
239 {
240 GetCompEM().SwitchOn();
241 }
242
243 void TurnOffTransmitter()
244 {
245 GetCompEM().SwitchOff();
246 }
247
248 void InitializeActions()
249 {
251 if (!m_InputActionMap)
252 {
255 SetActions();
256 m_AdvComTypeActionsMap.Insert(this.Type(), m_InputActionMap);
257 }
258 }
259
261 {
263 {
264 m_ActionsInitialize = true;
266 }
267
269 }
270
271 void SetActions()
272 {
276 }
277
278 void AddAction(typename actionName)
279 {
280 ActionBase action = ActionManagerBase.GetAction(actionName);
281
282 if (!action)
283 {
284 Debug.LogError("Action " + actionName + " dosn't exist!");
285 return;
286 }
287
288 typename ai = action.GetInputType();
289 if (!ai)
290 {
291 m_ActionsInitialize = false;
292 return;
293 }
294
296
297 if (!action_array)
298 {
301 }
302
304 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString(), "n/a", "Add action");
305 action_array.Insert(action);
306 }
307
308 void RemoveAction(typename actionName)
309 {
311 ActionBase action = player.GetActionManager().GetAction(actionName);
312 typename ai = action.GetInputType();
314
315 if (action_array)
316 action_array.RemoveItem(action);
317 }
318}
319
321{
322 override bool IsInventoryVisible()
323 {
324 return false;
325 }
326};
327
329{
330 proto native void SwitchOn(bool onOff);
331 proto native bool IsOn();
332};
333
335{
336 proto native void SwitchOn(bool onOff);
337 proto native bool IsOn();
338 proto native void SetNextChannel();
339 proto native void SetPrevChannel();
340 proto native float GetTunedFrequency();
341 proto native void EnableBroadcast(bool state);
342 proto native void EnableReceive(bool state);
343 proto native bool IsBroadcasting();
344 proto native bool IsReceiving();
345 proto native int GetTunedFrequencyIndex();
346 proto native void SetFrequencyByIndex(int index);
347}
map< typename, ref array< ActionBase_Basic > > TInputActionMap
void AddAction(typename actionName)
void RemoveAction(typename actionName)
void AdvancedCommunication()
TInputActionMap m_InputActionMap
void TurnOnTransmitter()
void TurnOffTransmitter()
bool m_ActionsInitialize
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
void SetActions()
void InitializeActions()
string Type
PlayerBase GetPlayer()
Definition Debug.c:14
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.
Definition Debug.c:341
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Definition Debug.c:143
static bool IsActionLogEnable()
Definition Debug.c:719
proto native CGame GetGame()

◆ InitializeActions()

void IsInventoryVisible::InitializeActions ( )

Definition at line 182 of file AdvancedCommunication.c.

183{
187
189 {
190 if (!GetGame().IsDedicatedServer())
191 {
192 if (GetGame().GetPlayer())
193 m_ActionsInitialize = false;
194 }
195 }
196
197 //HUD
198 /*
199 protected Hud GetHud( PlayerBase player )
200 {
201 if ( !player )
202 {
203 return NULL;
204 }
205
206 return player.m_Hud;
207 }
208
209 void DisplayRadioInfo( string message, PlayerBase player )
210 {
211 Hud hud;
212 if ( player )
213 {
214 hud = GetHud( player );
215 }
216
217 if ( hud )
218 {
219 hud.SetWalkieTalkieText( message );
220 hud.ShowWalkieTalkie( 3 );
221 }
222 }
223 */
224
225 //control transmitter via user actions
226 void TurnOnTransmitter()
227 {
228 GetCompEM().SwitchOn();
229 }
230
231 void TurnOffTransmitter()
232 {
233 GetCompEM().SwitchOff();
234 }
235
236 void InitializeActions()
237 {
239 if (!m_InputActionMap)
240 {
243 SetActions();
244 m_AdvComTypeActionsMap.Insert(this.Type(), m_InputActionMap);
245 }
246 }
247
249 {
251 {
252 m_ActionsInitialize = true;
254 }
255
257 }
258
259 void SetActions()
260 {
264 }
265
266 void AddAction(typename actionName)
267 {
268 ActionBase action = ActionManagerBase.GetAction(actionName);
269
270 if (!action)
271 {
272 Debug.LogError("Action " + actionName + " dosn't exist!");
273 return;
274 }
275
276 typename ai = action.GetInputType();
277 if (!ai)
278 {
279 m_ActionsInitialize = false;
280 return;
281 }
282
284
285 if (!action_array)
286 {
289 }
290
292 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString(), "n/a", "Add action");
293 action_array.Insert(action);
294 }
295
296 void RemoveAction(typename actionName)
297 {
299 ActionBase action = player.GetActionManager().GetAction(actionName);
300 typename ai = action.GetInputType();
302
303 if (action_array)
304 action_array.RemoveItem(action);
305 }
306}
307
309{
310 override bool IsInventoryVisible()
311 {
312 return false;
313 }
314};
315
317{
318 proto native void SwitchOn(bool onOff);
319 proto native bool IsOn();
320};
321
323{
324 proto native void SwitchOn(bool onOff);
325 proto native bool IsOn();
326 proto native void SetNextChannel();
327 proto native void SetPrevChannel();
328 proto native float GetTunedFrequency();
329 proto native void EnableBroadcast(bool state);
330 proto native void EnableReceive(bool state);
331 proto native bool IsBroadcasting();
332 proto native bool IsReceiving();
333 proto native int GetTunedFrequencyIndex();
334 proto native void SetFrequencyByIndex(int index);
335}

Referenced by EntityAI::GetActions(), GetActions(), InventoryItem::GetActions(), and ManBase::GetActions().

◆ RemoveAction()

void IsInventoryVisible::RemoveAction ( typename actionName )

Definition at line 242 of file AdvancedCommunication.c.

243{
247
249 {
250 if (!GetGame().IsDedicatedServer())
251 {
252 if (GetGame().GetPlayer())
253 m_ActionsInitialize = false;
254 }
255 }
256
257 //HUD
258 /*
259 protected Hud GetHud( PlayerBase player )
260 {
261 if ( !player )
262 {
263 return NULL;
264 }
265
266 return player.m_Hud;
267 }
268
269 void DisplayRadioInfo( string message, PlayerBase player )
270 {
271 Hud hud;
272 if ( player )
273 {
274 hud = GetHud( player );
275 }
276
277 if ( hud )
278 {
279 hud.SetWalkieTalkieText( message );
280 hud.ShowWalkieTalkie( 3 );
281 }
282 }
283 */
284
285 //control transmitter via user actions
286 void TurnOnTransmitter()
287 {
288 GetCompEM().SwitchOn();
289 }
290
291 void TurnOffTransmitter()
292 {
293 GetCompEM().SwitchOff();
294 }
295
296 void InitializeActions()
297 {
299 if (!m_InputActionMap)
300 {
303 SetActions();
304 m_AdvComTypeActionsMap.Insert(this.Type(), m_InputActionMap);
305 }
306 }
307
309 {
311 {
312 m_ActionsInitialize = true;
314 }
315
317 }
318
319 void SetActions()
320 {
324 }
325
326 void AddAction(typename actionName)
327 {
328 ActionBase action = ActionManagerBase.GetAction(actionName);
329
330 if (!action)
331 {
332 Debug.LogError("Action " + actionName + " dosn't exist!");
333 return;
334 }
335
336 typename ai = action.GetInputType();
337 if (!ai)
338 {
339 m_ActionsInitialize = false;
340 return;
341 }
342
344
345 if (!action_array)
346 {
349 }
350
352 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString(), "n/a", "Add action");
353 action_array.Insert(action);
354 }
355
356 void RemoveAction(typename actionName)
357 {
359 ActionBase action = player.GetActionManager().GetAction(actionName);
360 typename ai = action.GetInputType();
362
363 if (action_array)
364 action_array.RemoveItem(action);
365 }
366}
367
369{
370 override bool IsInventoryVisible()
371 {
372 return false;
373 }
374};
375
377{
378 proto native void SwitchOn(bool onOff);
379 proto native bool IsOn();
380};
381
383{
384 proto native void SwitchOn(bool onOff);
385 proto native bool IsOn();
386 proto native void SetNextChannel();
387 proto native void SetPrevChannel();
388 proto native float GetTunedFrequency();
389 proto native void EnableBroadcast(bool state);
390 proto native void EnableReceive(bool state);
391 proto native bool IsBroadcasting();
392 proto native bool IsReceiving();
393 proto native int GetTunedFrequencyIndex();
394 proto native void SetFrequencyByIndex(int index);
395}

Referenced by OnVariablesSynchronized(), ManBase::RemoveAction(), Land_Misc_Through_Static::SetActions(), CarDoor::SetActions(), RemoteDetonatorTrigger::SetActions(), Rifle_Base::SetActions(), BoltActionRifle_Base::SetActions(), DoubleBarrel_Base::SetActions(), Weapon_Base::SetActions(), Mp133Shotgun_Base::SetActions(), SetActions(), ItemBase::SetActions(), Bottle_Base::SetActions(), Binoculars::SetActions(), PoweredOptic_Base::SetActions(), TentBase::SetActions(), and TrapSpawnBase::SetActions().

◆ SetActions()

override void SetActions ( )

Definition at line 205 of file AdvancedCommunication.c.

206{
210
212 {
213 if (!GetGame().IsDedicatedServer())
214 {
215 if (GetGame().GetPlayer())
216 m_ActionsInitialize = false;
217 }
218 }
219
220 //HUD
221 /*
222 protected Hud GetHud( PlayerBase player )
223 {
224 if ( !player )
225 {
226 return NULL;
227 }
228
229 return player.m_Hud;
230 }
231
232 void DisplayRadioInfo( string message, PlayerBase player )
233 {
234 Hud hud;
235 if ( player )
236 {
237 hud = GetHud( player );
238 }
239
240 if ( hud )
241 {
242 hud.SetWalkieTalkieText( message );
243 hud.ShowWalkieTalkie( 3 );
244 }
245 }
246 */
247
248 //control transmitter via user actions
249 void TurnOnTransmitter()
250 {
251 GetCompEM().SwitchOn();
252 }
253
254 void TurnOffTransmitter()
255 {
256 GetCompEM().SwitchOff();
257 }
258
259 void InitializeActions()
260 {
262 if (!m_InputActionMap)
263 {
266 SetActions();
267 m_AdvComTypeActionsMap.Insert(this.Type(), m_InputActionMap);
268 }
269 }
270
272 {
274 {
275 m_ActionsInitialize = true;
277 }
278
280 }
281
282 void SetActions()
283 {
287 }
288
289 void AddAction(typename actionName)
290 {
291 ActionBase action = ActionManagerBase.GetAction(actionName);
292
293 if (!action)
294 {
295 Debug.LogError("Action " + actionName + " dosn't exist!");
296 return;
297 }
298
299 typename ai = action.GetInputType();
300 if (!ai)
301 {
302 m_ActionsInitialize = false;
303 return;
304 }
305
307
308 if (!action_array)
309 {
312 }
313
315 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString(), "n/a", "Add action");
316 action_array.Insert(action);
317 }
318
319 void RemoveAction(typename actionName)
320 {
322 ActionBase action = player.GetActionManager().GetAction(actionName);
323 typename ai = action.GetInputType();
325
326 if (action_array)
327 action_array.RemoveItem(action);
328 }
329}
330
332{
333 override bool IsInventoryVisible()
334 {
335 return false;
336 }
337};
338
340{
341 proto native void SwitchOn(bool onOff);
342 proto native bool IsOn();
343};
344
346{
347 proto native void SwitchOn(bool onOff);
348 proto native bool IsOn();
349 proto native void SetNextChannel();
350 proto native void SetPrevChannel();
351 proto native float GetTunedFrequency();
352 proto native void EnableBroadcast(bool state);
353 proto native void EnableReceive(bool state);
354 proto native bool IsBroadcasting();
355 proto native bool IsReceiving();
356 proto native int GetTunedFrequencyIndex();
357 proto native void SetFrequencyByIndex(int index);
358}

Referenced by EntityAI::InitializeActions(), InitializeActions(), and ManBase::InitializeActions().

◆ TurnOffTransmitter()

void IsInventoryVisible::TurnOffTransmitter ( )

Definition at line 177 of file AdvancedCommunication.c.

178{
182
184 {
185 if (!GetGame().IsDedicatedServer())
186 {
187 if (GetGame().GetPlayer())
188 m_ActionsInitialize = false;
189 }
190 }
191
192 //HUD
193 /*
194 protected Hud GetHud( PlayerBase player )
195 {
196 if ( !player )
197 {
198 return NULL;
199 }
200
201 return player.m_Hud;
202 }
203
204 void DisplayRadioInfo( string message, PlayerBase player )
205 {
206 Hud hud;
207 if ( player )
208 {
209 hud = GetHud( player );
210 }
211
212 if ( hud )
213 {
214 hud.SetWalkieTalkieText( message );
215 hud.ShowWalkieTalkie( 3 );
216 }
217 }
218 */
219
220 //control transmitter via user actions
221 void TurnOnTransmitter()
222 {
223 GetCompEM().SwitchOn();
224 }
225
226 void TurnOffTransmitter()
227 {
228 GetCompEM().SwitchOff();
229 }
230
231 void InitializeActions()
232 {
234 if (!m_InputActionMap)
235 {
238 SetActions();
239 m_AdvComTypeActionsMap.Insert(this.Type(), m_InputActionMap);
240 }
241 }
242
244 {
246 {
247 m_ActionsInitialize = true;
249 }
250
252 }
253
254 void SetActions()
255 {
259 }
260
261 void AddAction(typename actionName)
262 {
263 ActionBase action = ActionManagerBase.GetAction(actionName);
264
265 if (!action)
266 {
267 Debug.LogError("Action " + actionName + " dosn't exist!");
268 return;
269 }
270
271 typename ai = action.GetInputType();
272 if (!ai)
273 {
274 m_ActionsInitialize = false;
275 return;
276 }
277
279
280 if (!action_array)
281 {
284 }
285
287 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString(), "n/a", "Add action");
288 action_array.Insert(action);
289 }
290
291 void RemoveAction(typename actionName)
292 {
294 ActionBase action = player.GetActionManager().GetAction(actionName);
295 typename ai = action.GetInputType();
297
298 if (action_array)
299 action_array.RemoveItem(action);
300 }
301}
302
304{
305 override bool IsInventoryVisible()
306 {
307 return false;
308 }
309};
310
312{
313 proto native void SwitchOn(bool onOff);
314 proto native bool IsOn();
315};
316
318{
319 proto native void SwitchOn(bool onOff);
320 proto native bool IsOn();
321 proto native void SetNextChannel();
322 proto native void SetPrevChannel();
323 proto native float GetTunedFrequency();
324 proto native void EnableBroadcast(bool state);
325 proto native void EnableReceive(bool state);
326 proto native bool IsBroadcasting();
327 proto native bool IsReceiving();
328 proto native int GetTunedFrequencyIndex();
329 proto native void SetFrequencyByIndex(int index);
330}

◆ TurnOnTransmitter()

void IsInventoryVisible::TurnOnTransmitter ( )

Definition at line 172 of file AdvancedCommunication.c.

173{
177
179 {
180 if (!GetGame().IsDedicatedServer())
181 {
182 if (GetGame().GetPlayer())
183 m_ActionsInitialize = false;
184 }
185 }
186
187 //HUD
188 /*
189 protected Hud GetHud( PlayerBase player )
190 {
191 if ( !player )
192 {
193 return NULL;
194 }
195
196 return player.m_Hud;
197 }
198
199 void DisplayRadioInfo( string message, PlayerBase player )
200 {
201 Hud hud;
202 if ( player )
203 {
204 hud = GetHud( player );
205 }
206
207 if ( hud )
208 {
209 hud.SetWalkieTalkieText( message );
210 hud.ShowWalkieTalkie( 3 );
211 }
212 }
213 */
214
215 //control transmitter via user actions
216 void TurnOnTransmitter()
217 {
218 GetCompEM().SwitchOn();
219 }
220
221 void TurnOffTransmitter()
222 {
223 GetCompEM().SwitchOff();
224 }
225
226 void InitializeActions()
227 {
229 if (!m_InputActionMap)
230 {
233 SetActions();
234 m_AdvComTypeActionsMap.Insert(this.Type(), m_InputActionMap);
235 }
236 }
237
239 {
241 {
242 m_ActionsInitialize = true;
244 }
245
247 }
248
249 void SetActions()
250 {
254 }
255
256 void AddAction(typename actionName)
257 {
258 ActionBase action = ActionManagerBase.GetAction(actionName);
259
260 if (!action)
261 {
262 Debug.LogError("Action " + actionName + " dosn't exist!");
263 return;
264 }
265
266 typename ai = action.GetInputType();
267 if (!ai)
268 {
269 m_ActionsInitialize = false;
270 return;
271 }
272
274
275 if (!action_array)
276 {
279 }
280
282 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString(), "n/a", "Add action");
283 action_array.Insert(action);
284 }
285
286 void RemoveAction(typename actionName)
287 {
289 ActionBase action = player.GetActionManager().GetAction(actionName);
290 typename ai = action.GetInputType();
292
293 if (action_array)
294 action_array.RemoveItem(action);
295 }
296}
297
299{
300 override bool IsInventoryVisible()
301 {
302 return false;
303 }
304};
305
307{
308 proto native void SwitchOn(bool onOff);
309 proto native bool IsOn();
310};
311
313{
314 proto native void SwitchOn(bool onOff);
315 proto native bool IsOn();
316 proto native void SetNextChannel();
317 proto native void SetPrevChannel();
318 proto native float GetTunedFrequency();
319 proto native void EnableBroadcast(bool state);
320 proto native void EnableReceive(bool state);
321 proto native bool IsBroadcasting();
322 proto native bool IsReceiving();
323 proto native int GetTunedFrequencyIndex();
324 proto native void SetFrequencyByIndex(int index);
325}

Variable Documentation

◆ IsInventoryVisible

Definition at line 1 of file AdvancedCommunication.c.

130 {
131 return false;
132 }

◆ m_ActionsInitialize

◆ m_AdvComTypeActionsMap

ref map<typename, ref TInputActionMap> m_AdvComTypeActionsMap = new map<typename, ref TInputActionMap>
static

Definition at line 130 of file AdvancedCommunication.c.

Referenced by EntityAI::InitializeActions().

◆ m_InputActionMap