Modular Scripts

Just brainstorming ideas for modularized scripts.

First, infantry.

–Universal Functions–

Idle
Prone Idle
Aiming/Firing
Aiming/Firing while Prone
Aiming/Firing while Moving
Moving (“At ease”)
Prone Moving
Throwing a Grenade
Throwing a Grenade while Prone
Pinned

–Modifiers–

WeaponType (Rifle, SMG, Anti-Tank, MG)
Number of Shots (1 for rifle, eg 5 for SMG, etc)

TBC…

Following is mainly for lua scripts.
90% of tanks (and 100% of trucks) can use the same script, with values like turret rotation speed read from customParams in unit file.
Standard aiming functions can be moved to includes (see my battleship script).

The main problem I foresee is those bothersome tracer and flare customfx pieces of shit. Blaaargh.