Savage-Game-Design / Mike-Force

Mike Force is cooperative, capture-the-island style gamemode for the Arma 3: S.O.G. Prairie Fire CDLC.
Other
31 stars 32 forks source link

VehicleLocking: Allow locking of static weapons to a specific team. #177

Open dijksterhuis opened 4 months ago

dijksterhuis commented 4 months ago

Locking script only applied to vehicles with a driver / co-pilot position -- StaticWeapon objects don't have a driver or a co-pilot.

With vanilla config settings, this should only affect the locking of the m101 assets for ACAV

//Howitzer
class vn_b_army_static_m101_02 : acav {};
class vn_b_sf_static_m101_02 : acav {};

Allows server owners to include any static weapon in the vehicle locking config.

Note -- may well be possible to go through the same config lookup as the existing isCopilot check but for isGunner instead, but I went with the simple, happy path route.