Towing Service
Description This mod adds recovery truck which is able load and transport basically any vehicle around the map including cars, helicopters, ships, bicycles and so on. It helps with cars on the roof, bugged into fences and similar situations. How It works Drive close to the vehicle which you want load. Look for the prompt while you are close to the truck and the action will appear. You must have not attached anything… (more)
Description This mod adds recovery truck which is able load and transport basically any vehicle around the map including cars, helicopters, ships, bicycles and so on. It helps with cars on the roof, bugged into fences and similar situations. How It works Drive close to the vehicle which you want load. Look for the prompt while you are close to the truck and the action will appear. You must have not attached anything on cargo, including tent. For unloading the vehicle find an area without obstacles behind the truck. A "unload vehicle" prompt will appear when looking at the flatbed of the truck. Blacklist option for vehicles which you do not want to load onto the truck. Config is generated in profile folder in subfolder called "Towing-Service". Compatible with car locking systems like MuchCarKeys, Carlock (TraderPlus), Dr. Jones Trader and Dayz Expansion mod. Its not possible load locked cars and not possible load/unload car, while Towing truck is locked as well. Known Issues - there can be of course some hidden issues - when two towing truck nearby vehicle loading can cause issues Further Info No repacks allowed. Don't ask. Repacking is cancer of DayZ community. You are allowed to look into mod for learning purposes or if you want know how it works. Discord: https://discord.gg/49FvN7rRpF Model: https://www.cgtrader.com/3d-models/vehicle/truck/classic-flatbed-truck Mod was intensive tested on server DeathZone UK. Any feedback welcome! -Hunterz- Copyright 2023 HunterZ. This item is not authorized for posting on Steam, except under the Steam account named https://steamcommunity.com/profiles/76561198829279936 Credits Nutter & Dopemodz - mod idea and intensive testing Vladimir - imported and prepared truck model Rag Tyson - huge thanks for his hints and great help with vehicle related stuff TheAdmiral - hints with attaching all people who helps me translate mod to different languages Kamo - did logo Stephane - Event spawns
No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.
Every server-visible override preserves its chain.
0.00268% of each server frame at 100 players (0.027 ms/s). Counts hook dispatch and timers only, not what the hooks do inside. Methodology.
Structural load of the 328 scripted mods analyzed, lightest on the left. This mod's bar is lit; 17 others share it. Ranked list.
Every-frame hooks carry 93% of this mod's structural load. 0.027 ms/s in all.
1 hook · 0.025 ms/s
10 hooks · 0.002 ms/s
1 hook · 0.000002 ms/s
| Every-frame hooksrun every server frame | 1 hook | 0.025 ms/s | 93% | CarScript.EOnPostFrame |
| Event hooksrun when something happens: an inventory move, a hit, an action | 10 hooks | 0.002 ms/s | 7.4% | ActionStartEngine.ActionCondition, Bear_ColorBase.SetActions, Blowtorch.SetActions and 7 more |
| Lifecycle hooksrun when an entity is created, loaded or deleted | 1 hook | 0.000002 ms/s | <0.1% | CarScript.EEDelete |
Counts how often each hook is dispatched and how many timers stay alive, not what the code inside does. Some rates are order-of-magnitude estimates; the methodology lists which.
Where this mod runs often
Hooks on per-frame and high-rate surfaces, with what their bodies call. Body work, not the hook itself, is what costs frame time.
Other findings
super() only on some paths · 3 · warning
- CarScript.OnNetworkTransformUpdate returns true without consulting super.OnNetworkTransformUpdate() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
ford_flatbed.pbo::scripts\4_World\CarScript.c:68 - ActionStartEngine.ActionCondition vetoes early (returns false) on some paths and defers to super.ActionCondition() otherwise — composes safely with vanilla's and earlier mods' conditions.
ford_flatbed.pbo::scripts\4_World\actionstartengine.c:3 - AttachmentsOutOfReach.IsAttachmentReachable vetoes early (returns false) on some paths and defers to super.IsAttachmentReachable() otherwise — composes safely with vanilla's and earlier mods' conditions.
ford_flatbed.pbo::scripts\4_World\AttachmentsOutOfReach.c:6
- CarScript.OnNetworkTransformUpdate returns true without consulting super.OnNetworkTransformUpdate() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
Which vanilla methods the mod hooks, which of them drop the chain, how often each hook fires, and which risky calls sit inside hot hooks.
How long hook bodies take, network cost, or engine-side load. Measured across live fleets, most server lag comes from the engine and world state, not mod script chains — a light footprint does not clear a mod of lag, and a heavy one does not convict it. Methodology.
Everything else
All 17 overrides
Surface is the dispatch tier the rubric can price (— = unpriced); server is whether the override exists on a dedicated server; super() shows whether the vanilla chain is preserved on a server.
| method | surface | server | super() | where |
|---|---|---|---|---|
ActionConstructor.RegisterActions |
— | yes | ✓ | ford_flatbed.pbo::scripts\4_World\ActionConstructor.c:3 |
ActionStartEngine.ActionCondition |
T2 | yes | conditional | ford_flatbed.pbo::scripts\4_World\actionstartengine.c:3 |
AttachmentsOutOfReach.IsAttachmentReachable |
— | yes | conditional | ford_flatbed.pbo::scripts\4_World\AttachmentsOutOfReach.c:6 |
Bear_ColorBase.SetActions |
T2 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\inventoryitem.c:135 |
Blowtorch.SetActions |
T2 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\inventoryitem.c:162 |
CarScript.SetActions |
T2 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\CarScript.c:15 |
CarScript.EEDelete |
T3 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\CarScript.c:44 |
CarScript.OnNetworkTransformUpdate |
— | yes | conditional | ford_flatbed.pbo::scripts\4_World\CarScript.c:68 |
CarScript.EOnPostFrame |
T1 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\CarScript.c:83 |
EpoxyPutty.SetActions |
T2 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\inventoryitem.c:144 |
Hammer.SetActions |
T2 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\inventoryitem.c:153 |
LugWrench.SetActions |
T2 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\inventoryitem.c:189 |
ModItemRegisterCallbacks.RegisterHeavy |
— | yes | ✓ | ZIL133_flatbed.pbo::scripts\4_World\AnimRegisterIK_ZIL133_flatbed.c:3 |
ModItemRegisterCallbacks.RegisterHeavy |
— | yes | ✓ | ford_flatbed.pbo::scripts\4_World\AnimRegisterIK_Ford_flatbed.c:3 |
Screwdriver.SetActions |
T2 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\inventoryitem.c:171 |
TireRepairKit.SetActions |
T2 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\inventoryitem.c:198 |
Wrench.SetActions |
T2 | yes | ✓ | ford_flatbed.pbo::scripts\4_World\inventoryitem.c:180 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
CarScript.EOnPostFrame | T1 | 1000.0 | placeholder | 0.0248 |
ActionStartEngine.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
CarScript.SetActions | T2 | 8.0 | placeholder | 0.0002 |
Bear_ColorBase.SetActions | T2 | 8.0 | placeholder | 0.0002 |
EpoxyPutty.SetActions | T2 | 8.0 | placeholder | 0.0002 |
Hammer.SetActions | T2 | 8.0 | placeholder | 0.0002 |
Blowtorch.SetActions | T2 | 8.0 | placeholder | 0.0002 |
Screwdriver.SetActions | T2 | 8.0 | placeholder | 0.0002 |
Wrench.SetActions | T2 | 8.0 | placeholder | 0.0002 |
LugWrench.SetActions | T2 | 8.0 | placeholder | 0.0002 |
TireRepairKit.SetActions | T2 | 8.0 | placeholder | 0.0002 |
CarScript.EEDelete | T3 | 0.1 | placeholder | 0.0000 |
Includes 0.027 ms/s from placeholder-rated surfaces.
Load-order constraints (CfgPatches)
What each PBO declares: its addon identity and the addons it requires to be loaded first (requiredAddons). A partial load-order signal from the mod's own metadata.
0_TowingServiceDefines.pbo
TowingServiceDefinesrequiredVersion 0.1 — no requiredAddons
ZIL133_flatbed.pbo
ZIL133_flatbedrequiredVersion 0.1 — requiresDZ_Vehicles_wheeled,DZ_Vehicles_Parts,DZ_Sounds_Effects,DZ_Data,Ford_flatbed
ford_flatbed.pbo
Ford_flatbedrequiredVersion 0.1 — requiresDZ_Vehicles_wheeled,DZ_Vehicles_Parts,DZ_Sounds_Effects,DZ_Data
census 1.1 · findings 1.1 · hash 71a3e32b6800427d