Armed Vehicles Framework (AVF)
The Armed Vehicle Framework, also called AVF, is a teardown framework that enables player controlled turrets and weapons on vehicles or static weapons.
- Simple system that uses xml tags to enable in game vehicles / static weapons to shoot
- Global mod that Works on any vehicle on any map that fits the AVF xml tag structure
- Easily used in game to fire multiple weapons on any vehicle
- Full ballistics model – bullet drop, realistic penetration mechanics, spalling / shrapnel.
- Range of cannons, machine guns, artillary, and rockets to choose from, each with different aesthetics and effects.
- Support for countermeasures such as smoke launchers and ERA blocks.
- A range of weapon payloads, including high explosive, armour piercing high explosive, HEAT rounds, HESH shells, kinetic or AP rounds, incendiary shells, etc.
- Modifiable control scheme
- Full config to setup your own custom weapon parameters
Activate this mod in the mod manager window then play any map that has AVF supporting vehicles. This mod will detect any AVF compatible vehicles and make their weapons functional.
The idelogy of AVF is the following: Vehicles have bodies, bodies have components, a component can be a chassis, turret, gun, etc. like a gun has a gun joint to attatch it to the vehicle, as a turret also has a turret joint to connect it to the vehicle. These joints can be any type you like, so long as they are configured correctly.
Vehicles are configured as follows with xml config values, showing an example of a vehicle with 2 guns, one on a turret, one attatched to the vehicle itself. (This can be done on raw code or editor, I’d suggest in the editor)
Do note, the below is purely a pseudocode to define the structure
If you want weapons that don’t aim on the vehicle then you can just attach them with however many joints to keep them stationary.
Stationary / static weapons can also be achieved by creating a vehicle to represent the above structure but just not giving it wheels or anything. You may want to put the player location tag to allow aiming though. If you find your static weapon moves in an annoying way then i just joint them to the ground, they are static after all!
To Be Completed
For the time being if you have any questions or issues then feel free to leave a comment below or message me in the teardown discord server.
Many thanks to the following users during development
- Rubikow: much guidance in early lua coding / weapon setup.
- Spexta – much assistance and inspiration for concepts to be implemented in this mod.
- My Cresta – generally cool dude who was nice to chat to about concepts.
- Cheejins – Really cool dude who aided in the newer camera fixes.
- TTFH, for their fantastic vehicle camera improvements
Revisions:
Old revisions of this mod are available below. Click the link to download.