Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

dijksterhuis
Copy link
Contributor

@dijksterhuis dijksterhuis commented Apr 29, 2024

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.

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 bugfixes the `m101` assets not being locked to ACAV (even though there's a config for it)
```
//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 respawn + locking configs (feature).
Copy link
Member

@veteran29 veteran29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants