This has been in high demand by players on my server for awhile now (They want dogfighting). Initially dismissed the idea assuming client side mod would be required to work well, it would cause lag, or depending on implementation may get blocked by antihack.
Recently one of my admins pointed me to a mission which allows customization of all vehicles with player weapons(http://getwrecked.info/
). I unpacked the pbo and discovered it was actually simulating the effect of the weapons. The weapons attached to vehicles are just props, and everything from muzzle flash, to gunfire sounds, spawning projectile, assigning velocity to projectile is all scripted. It even simulates ammo magazines and reload times since technically it is not a real weapon being fired. Within the draw loop it checks to see if a mousedown event is active, if so it checks for a player vehicle, loops all attached objects, if they are weapons it begins firing.
I extracted the code I wanted and got a Caesar BTT to fire from attached weapons on my Wasteland Dev server. I'm probably going to go with MK200 rounds if I release it. So technically I already have this working.This dev server is not running battleye though, and I suspect the createVehicle on the bullets may get blocked since it is done client side.
A note on lag... What I noticed in testing so far is that setVelocity creates lag/choppy animations when issued server side, but when done client side it is smooth. Even for other clients (Not tested with large number of players). More testing is required, but my initial assumption is that the client responsible for applying force to the object ends up doing more physics processing and the other clients/server simply validate the state of an object on some kind of interval. Maybe AgentRev or another dev here knows more regarding this behaviour.
Anyway, I am more or less just doing this for fun. If anyone has any feedback or suggestions let me know.