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

◆ OnEventForRemoteWeapon()

bool OnEventForRemoteWeapon ( ParamsReadContext ctx)
protected

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

4304 {
4305 if (GetEntityInHands())
4306 {
4307 Weapon_Base wpn = Weapon_Base.Cast(GetEntityInHands());
4308 if (wpn)
4309 {
4311
4313 if (pb && e)
4314 {
4315 pb.GetWeaponManager().SetRunning(true);
4316
4318 {
4319 fsmDebugSpam("[wpnfsm] " + Object.GetDebugName(wpn) + " recv event from remote: created event=" + e);
4320 }
4321
4322 if (e.GetEventID() == WeaponEventID.HUMANCOMMAND_ACTION_ABORTED)
4323 {
4324 wpn.ProcessWeaponAbortEvent(e);
4325 }
4326 else
4327 {
4328 wpn.ProcessWeaponEvent(e);
4329 }
4330 pb.GetWeaponManager().SetRunning(false);
4331 }
4332 }
4333 else
4334 Error("OnEventForRemoteWeapon - entity in hands, but not weapon. item=" + GetEntityInHands());
4335 }
4336 else
4337 Error("OnEventForRemoteWeapon - no entity in hands");
4338 return true;
4339 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:170
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:829
Определения 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().