DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnEventForRemoteWeapon()

bool OnEventForRemoteWeapon ( ParamsReadContext ctx)
protected

См. определение в файле DayZPlayerInventory.c строка 2473

2474 {
2475 if (GetEntityInHands())
2476 {
2477 Weapon_Base wpn = Weapon_Base.Cast(GetEntityInHands());
2478 if (wpn)
2479 {
2481
2483 if (pb && e)
2484 {
2485 pb.GetWeaponManager().SetRunning(true);
2486
2488 {
2489 fsmDebugSpam("[wpnfsm] " + Object.GetDebugName(wpn) + " recv event from remote: created event=" + e);
2490 }
2491
2492 if (e.GetEventID() == WeaponEventID.HUMANCOMMAND_ACTION_ABORTED)
2493 {
2494 wpn.ProcessWeaponAbortEvent(e);
2495 }
2496 else
2497 {
2498 wpn.ProcessWeaponEvent(e);
2499 }
2500 pb.GetWeaponManager().SetRunning(false);
2501 }
2502 }
2503 else
2504 Error("OnEventForRemoteWeapon - entity in hands, but not weapon. item=" + GetEntityInHands());
2505 }
2506 else
2507 Error("OnEventForRemoteWeapon - no entity in hands");
2508 return true;
2509 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:167
WeaponEventBase CreateWeaponEventFromContext(ParamsReadContext ctx)
Определения Events.c:281
WeaponEventID
identifier for events. mainly for rpc purposes
Определения Events.c:6
void fsmDebugSpam(string s)
Определения HFSMBase.c:9
static bool IsWeaponLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:816
Определения ObjectTyped.c:2
Определения PlayerBaseClient.c:2
shorthand
Определения BoltActionRifle_Base.c:6
WeaponEventID GetEventID()
returns id from enum WeaponEventID
Определения Events.c:42
signalize mechanism manipulation
Определения Events.c:35
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки CreateWeaponEventFromContext(), Error(), fsmDebugSpam(), GetDayZPlayerOwner(), WeaponEventBase::GetEventID() и LogManager::IsWeaponLogEnable().