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

◆ OnEventForRemoteWeapon()

bool OnEventForRemoteWeapon ( ParamsReadContext ctx)
protected

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

2159 {
2160 if (GetEntityInHands())
2161 {
2162 Weapon_Base wpn = Weapon_Base.Cast(GetEntityInHands());
2163 if (wpn)
2164 {
2166
2168 if (pb && e)
2169 {
2170 pb.GetWeaponManager().SetRunning(true);
2171
2173 {
2174 fsmDebugSpam("[wpnfsm] " + Object.GetDebugName(wpn) + " recv event from remote: created event=" + e);
2175 }
2176
2177 if (e.GetEventID() == WeaponEventID.HUMANCOMMAND_ACTION_ABORTED)
2178 {
2179 wpn.ProcessWeaponAbortEvent(e);
2180 }
2181 else
2182 {
2183 wpn.ProcessWeaponEvent(e);
2184 }
2185 pb.GetWeaponManager().SetRunning(false);
2186 }
2187 }
2188 else
2189 Error("OnEventForRemoteWeapon - entity in hands, but not weapon. item=" + GetEntityInHands());
2190 }
2191 else
2192 Error("OnEventForRemoteWeapon - no entity in hands");
2193 return true;
2194 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:168
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()
Определения Debug.c:718
Определения Debug.c:594
Определения 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().