← modperf · analyzed mods

Vehicle Shooting

Description This mod allows you to shoot while driving a vehicle. You can use a pistol, a rifle, or a crossbow. You can disable the driver's ability to shoot using the config file, which can be found in the profiles folder. How it works When you are inside a vehicle, shooting is activated automatically. You can also ADS and reload your weapon. Further Info No repacks allowed. Don't ask. Repacking is cancer of DayZ… (more)

Description This mod allows you to shoot while driving a vehicle. You can use a pistol, a rifle, or a crossbow. You can disable the driver's ability to shoot using the config file, which can be found in the profiles folder. How it works When you are inside a vehicle, shooting is activated automatically. You can also ADS and reload your weapon. 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 Any feedback welcome! -Hunterz- Credits Admiral - brainstorming help Sajid_Alfa - discord nitro sponsor MarioE - general animation lessons Mrtea101 - lot of hints in Blender and anims

Workshop 3436144357 · mod updated 2026-11-21 · analyzed 2026-12-05 00:51 UTC · history · 11 script files

AnimationCharacterMechanicsVehicle Workshop tags, chosen by the author

Stall risks
2 patterns

Patterns that can stall a single frame regardless of the load figure — see below.

Compatibility
1 to review

1 chain break on base classes or persisted data.

Structural footprint 1.1
A
1 to review
Heavier than 72% of 348 scripted mods analyzed.

0.015% of each server frame at 100 players (0.150 ms/s). Counts hook dispatch and timers only, not what the hooks do inside. Methodology.

Where this mod sits

Structural load of the 348 scripted mods analyzed, lightest on the left. This mod's bar is lit; 40 others share it. Ranked list.

20
40
60
  • 26 mods
    0.0000022 to 0.0000046 ms/s · grade A
  • 7 mods
    0.0000046 to 0.00001 ms/s · grade A
  • 2 mods
    0.00001 to 0.000022 ms/s · grade A
  • 1 mod
    0.000022 to 0.000046 ms/s · grade A
  • 39 mods
    0.0001 to 0.00022 ms/s · grade A
  • 26 mods
    0.00022 to 0.00046 ms/s · grade A
  • 33 mods
    0.00046 to 0.001 ms/s · grade A
  • 23 mods
    0.001 to 0.0022 ms/s · grade A
  • 15 mods
    0.0022 to 0.0046 ms/s · grade A
  • 9 mods
    0.0046 to 0.01 ms/s · grade A
  • 7 mods
    0.01 to 0.022 ms/s · grade A
  • 19 mods
    0.022 to 0.046 ms/s · grade A
  • 20 mods
    0.046 to 0.1 ms/s · grade A
  • This mod
  • 29 mods
    0.22 to 0.46 ms/s · grade A
  • 24 mods
    0.46 to 1 ms/s · grade A
  • 14 mods
    1 to 2.2 ms/s · grade A to B
  • 11 mods
    2.2 to 4.6 ms/s · grade B
  • 2 mods
    4.6 to 10 ms/s · grade B to C
A333
B13
C2
D0
E0
ms/s, log scale: each labelled step is ten times the one before. Letter grade and mods holding it below the axis.
Where the load comes from

Per-player hooks carry 99% of this mod's structural load. 0.150 ms/s in all.

99%Per-player hooks · 99%
2 hooks · 0.15 ms/s
Event hooks · 0.7%
5 hooks · 0.00099 ms/s
Lifecycle hooks · <0.1%
1 hook · 0.000002 ms/s
Per-player hooksrun about 30 times a second for each player 2 hooks 0.15 ms/s 99% DayZPlayerImplement.HandleWeapons, PlayerBase.CommandHandler
Event hooksrun when something happens: an inventory move, a hit, an action 5 hooks 0.00099 ms/s 0.7% ActionCarDoors.ActionCondition, ActionGetOutTransport.ActionCondition, ActionSwitchSeats.ActionCondition and 2 more
Lifecycle hooksrun when an entity is created, loaded or deleted 1 hook 0.000002 ms/s <0.1% PlayerBase.EEInit

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.

Chain breaks, by consequence

1 override that skip super(), ranked by how much they can affect. On any server a break replaces vanilla's behaviour on that method and silences every earlier-loaded mod hooking it.

Review
Base class · every PlayerBase (2 vanilla subclasses)
PlayerBase.OnCommandVehicleStart

Vanilla's work on this method, and any earlier-loaded mod's, never runs for any PlayerBase.

VehicleShooting.pbo::Scripts\4_World\PlayerBase.c:544

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.

CommandHandler on PlayerBase
about 30× per player per second
no I/O, timers or RPC
HandleWeapons on DayZPlayerImplement
about 30× per player per second
no I/O, timers or RPC
ActionCondition × 2 classes
per event
no I/O, timers or RPC
ActionCondition × 2 classes
per event
no I/O, timers or RPC super() on some paths
CanReceiveItemIntoHands on PlayerBase
per event
no I/O, timers or RPC super() on some paths

Other findings

What this report can tell you

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.

What it cannot

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 37 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.

methodsurfaceserversuper()where
ActionBase.Can — yes conditional VehicleShooting.pbo::Scripts\4_World\VehicleShootingActions.c:3
ActionBase.SetupAction — yes conditional VehicleShooting.pbo::Scripts\4_World\VehicleShootingActions.c:15
ActionCarDoors.ActionCondition T2 yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingActions.c:41
ActionConstructor.RegisterActions — yes ✓ VehicleShooting.pbo::Scripts\4_World\ActionConstructor.c:3
ActionGetOutTransport.UseMainItem — yes ✗ none VehicleShooting.pbo::Scripts\4_World\VehicleShootingActions.c:28
ActionGetOutTransport.ActionCondition T2 yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingActions.c:33
ActionSwitchSeats.UseMainItem — yes ✗ none VehicleShooting.pbo::Scripts\4_World\VehicleShootingActions.c:49
ActionSwitchSeats.ActionCondition T2 yes conditional VehicleShooting.pbo::Scripts\4_World\VehicleShootingActions.c:54
CarScript.OnInput — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriver.c:708
DayZPlayerCamera3rdPersonVehicle.OnActivate — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriverCamera.c:227
DayZPlayerCamera3rdPersonVehicleMotorbike.OnActivate — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriverCamera.c:247
DayZPlayerCameraBase.UpdateLRAngleUnlocked — yes conditional VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriverCamera.c:10
DayZPlayerCameraBase.UpdateUDAngleUnlocked — yes conditional VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriverCamera.c:100
DayZPlayerImplement.HandleWeapons T1 yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriver.c:70
DayZPlayerImplement.AimingModel — yes conditional VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriver.c:618
DayZPlayerImplement.IsShootingFromCamera — yes conditional VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriver.c:651
DayZPlayerImplement.CameraHandler — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriver.c:660
EmoteManager.CanPlayEmote — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingEmotes.c:3
FirearmActionBase.CanBeUsedInVehicle — yes ✗ none VehicleShooting.pbo::Scripts\4_World\VehicleShootingWeaponActions.c:3
FirearmActionBase.ActionCondition T2 yes conditional VehicleShooting.pbo::Scripts\4_World\VehicleShootingWeaponActions.c:8
GesturesMenu.CanOpenMenu — yes conditional VehicleShooting.pbo::Scripts\5_Mission\VehicleShootingGesturesMenu.c:3
MotorbikeScript.OnInput — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDriver.c:730
PlayerBase.EEInit T3 yes ✓ VehicleShooting.pbo::Scripts\4_World\PlayerBase.c:34
PlayerBase.CommandHandler T1 yes ✓ VehicleShooting.pbo::Scripts\4_World\PlayerBase.c:47
PlayerBase.SetSAWeaponInHands — yes ✓ VehicleShooting.pbo::Scripts\4_World\PlayerBase.c:180
PlayerBase.IsRaised — yes conditional VehicleShooting.pbo::Scripts\4_World\PlayerBase.c:287
PlayerBase.CanReceiveItemIntoHands T2 yes conditional VehicleShooting.pbo::Scripts\4_World\PlayerBase.c:486
PlayerBase.OnCommandVehicleStart — yes ✗ none VehicleShooting.pbo::Scripts\4_World\PlayerBase.c:544
PlayerBase.OnCommandVehicleFinish — yes ✓ VehicleShooting.pbo::Scripts\4_World\PlayerBase.c:575
PluginManager.Init — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDiag.c:4
Weapon_Base.OnFire — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDiag.c:17
Weapon_Base.ProcessWeaponEvent — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDiag.c:56
Weapon_Base.ProcessWeaponAbortEvent — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingDiag.c:63
WeaponManager.StartPendingAction — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingWeaponActions.c:33
WeaponManager.Update — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingWeaponActions.c:47
WeaponManager.StartAction — yes conditional VehicleShooting.pbo::Scripts\4_World\VehicleShootingWeaponActions.c:81
WeaponManager.OnInputUserDataProcess — yes ✓ VehicleShooting.pbo::Scripts\4_World\VehicleShootingWeaponActions.c:90
Dispatch surfaces and timers the grade prices
surfacetierrate (Hz)rate sourcems/s
PlayerBase.CommandHandlerT1 3000.0measured0.0744
DayZPlayerImplement.HandleWeaponsT1 3000.0measured0.0744
PlayerBase.CanReceiveItemIntoHandsT2 8.0placeholder0.0002
ActionGetOutTransport.ActionConditionT2 8.0placeholder0.0002
ActionCarDoors.ActionConditionT2 8.0placeholder0.0002
ActionSwitchSeats.ActionConditionT2 8.0placeholder0.0002
FirearmActionBase.ActionConditionT2 8.0placeholder0.0002
PlayerBase.EEInitT3 0.1placeholder0.0000

Includes 0.001 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.

VehicleShooting.pbo

  • VehicleShooting requiredVersion 0.1 — requires DZ_Data, DZ_Scripts, SurvivorAnims

census 1.1 · findings 1.1 · hash 9079fe154889bbe4