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

Add seat model check #393

Merged
merged 4 commits into from
Mar 13, 2024
Merged

Conversation

marchc1
Copy link
Contributor

@marchc1 marchc1 commented Mar 6, 2024

Currently, seat models can be anything, including microscopic models (such as Wiremod's "nano_compare" gate). I've seen this exploited in the real world to get very hard to kill seats.

This adds a seat model whitelist to only allow default HL2, ACF, playerstart and racing seat models.

You can see a wooden chair vs. a nano compare in terms of size:
nano_compare_vs_wooden_chair

@marchc1 marchc1 marked this pull request as draft March 6, 2024 09:00
@marchc1
Copy link
Contributor Author

marchc1 commented Mar 6, 2024

The KeShove test is the only test failing, which isn't related to my changes(?) so I'm making this ready for review

@marchc1 marchc1 marked this pull request as ready for review March 6, 2024 09:09
This will only allow the seat to fail its model legal check if its model does not match the one it has listed in its VehicleTable, which should avoid any potential incompatibility with other addons by ensuring that you can only fail if something intentionally changes the seat model.
@thecraftianman thecraftianman merged commit 6e24672 into ACF-Team:dev Mar 13, 2024
1 of 2 checks passed
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