-
Notifications
You must be signed in to change notification settings - Fork 737
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
Safemode - add public setWeaponSafety function #7092
Conversation
maybe this function should get |
Like that idea two |
not tested
Note: Not tested cause I'm on traveling foot. Can be checked code wise anyways. if the solution for the bool param is agreeable. |
All done |
|
Yes agree.
Agree with this two. |
For the internal function it is used to switch back to the last muzzle. It is needed, because you can turn off safety with F. Otherwise it would switch to the primary muzzle from the secondary muzzle for example in addition to unlocking the weapon, which feels weird. Not needed for this public function though. |
3b753a1
to
46317c3
Compare
|
46317c3
to
5ab90f5
Compare
5ab90f5
to
00dae2f
Compare
Test in progress |
Co-Authored-By: commy2 <commy-2@gmx.de>
Co-Authored-By: commy2 <commy-2@gmx.de>
Co-Authored-By: commy2 <commy-2@gmx.de>
Tested and did some final fixes to the script. Testprotocol:
|
If this function is used for something like eg. "safestart" (locking the weapon on game start) and the unit does not have weapon it will try to lock "empty" weapon. Maybe it would be wise to add: Unsafing the "empty" weapon results in an error . |
Co-Authored-By: Filip Maciejewski <veteran29@users.noreply.github.com>
When merged this pull request will:
A tiny function i use to set people's weapons on safe at spawn and respawn. So here is a little donation.