A framework that enables people to create their own armed vehicles with ease and minimal configuration.
Vehicles will be able to mount an array of weapons from simple machine guns to artillery launchers with ease, each with their own weapon zoom, ammo capacities, and ammo types. Including penetration mechanics.
This will work with any AVF compatible vehicle in any loaded map, provided that they are configured correctly.
Player enabled overrides allow users to modify almost any available weapon parameter to their needs.
ensure you have the latest experimental version of teardown (5.5 at this time), this will not work on any version <5.1.
copy the AVF folder into your documents/teardown/mods/ folder.
ensure that you activate it as a global mod in the mod tree, this will ensure any AVF compatible vehicle will function as intended. See fig below
A demo map is included, called "AVF DEMO" this map has a template tank to help you in making your own vehicles / testing AVF.
quick install video:
fire = "lmb",
sniper Mode = "rmb",
elevate Gun = "c",
depress Gun = "x",
change Weapons = "r",
change Ammunition = "f",
deploy Smoke = "g",
lock Angle = "j",
lock Rotation = "k",
Demo video of functionality:
A demo map is now included to help you in making vehicles with a custom tank setup with its own custom lua script.
Simple vehicle config:
To prepare your armed vehicle, this framework follows this simple concept: A vehicle has a body, a body has a chassis, and a body also may have a turret joint connected to a turret.
A vehicle body and / or a turret may then be connected to a gun joint, so long as a gunjoint is connected to your guns barrel then this script can find it.
a gun joint typically being a vertical hinge that goes up and down.
Quick config for a vehicle is as follows:
add inside tags=""
vehicle -> cfg=vehicle
body -> component=body
vox (for vehicle body) -> component=chassis
vox (for turret) -> component=turret turretGroup=mainTurret
joint (for turret joint) ->component=turretJoint
vox (for gun) -> component=gun weaponType=2A46M group=primary
vox (for gun joint) -> component=gunJoint
This will define a simple tank using a 2A46M tank gun.
The logic for this mod is as follows: You have a vehicle with a body. That body would have a main chassis, this chassis then may have joints connecting to guns, called gunJoints, and then joints connected to turrets, called "turretJoints", these "turretJoints" then may have further "turretJoints" and more importantly "gunJoints".
In theory, you would never need to edit any lua with this code. It is purely XML configs on any compatible vehicle. Through simple XML tags.
While Custom gun sights and sounds may be needed but it's best to embed them within the LEVEL and have a pointer to them in your xml tags.
If you have any custom sights, or sounds, or pre-configed weapons you would like added to the base mod then i would happily include them if you give me the basic info / files, provided you can ensure they would work in normal situations through xml config.
There also is included a custom lua config file which you can utilize by wrapping an editor instance of your vehicle in the script and then modifying the values in there with named keywords to add extra weapons to fit your vehicle.
This was largely made in a day, i may still be hungover, a better description of using this will be provided with potential video application later on when i get round to it. If you have an questions or notice any issues then please don't hesitate t contact me.
CUSTOM MAPS USING AVF