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

Option to build inside safe zones #18

Open
Lion4K opened this issue Jul 17, 2022 · 7 comments
Open

Option to build inside safe zones #18

Lion4K opened this issue Jul 17, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@Lion4K
Copy link

Lion4K commented Jul 17, 2022

I was pretty intrigued by the /unlockFireModes command.
Because it seems it kinda affects both the server (to allow the gun to fire at auto mode) and the client (to show auto on the HUD).

So, using a combination of these or something, would it be possible to make something to allow the admin to place barricades and or structures inside a safe zone? Like the island in Elver, or the Ship in Russia and all.

Thanks a lot!

@ShimmyMySherbet
Copy link
Owner

This might be a tricky feature.
UnlockFireModes works by detecting when the player switches fire mode, and force switches it to a locked fire mode when the client jumps over it.
Though, it might be possible by detecting when a player attempts to place an object through player input.
I'll need to look into this further and see if I can cobble together a prototype.

For now, you can use /PlaceObject [Barricade/Structure] within a safe zone and then build mode the objects into place.

@ShimmyMySherbet ShimmyMySherbet self-assigned this Jul 17, 2022
@ShimmyMySherbet ShimmyMySherbet added the enhancement New feature or request label Jul 17, 2022
@Lion4K
Copy link
Author

Lion4K commented Jul 17, 2022

Awesome, I'll try that too.
Is it possible to assign ownership to the barricade?
For example, I wanna give a player a locker inside the Safe zone.

@ShimmyMySherbet
Copy link
Owner

Currently, there is no way to directly assign an owner.

However, there is a workaround for this. You can run /{exec | execcommand} [player] /placeobject [object].
This will run the /PlaceObject command as the other player, bypassing any permission checks.

The Exec module of this plugin hasn't been maintained in a long time, and can cause some issues with Advanced Permissions.
So I released a standalone version of exec that uses patching instead of replacing the permission manager.
You can find that plugin here: https://github.com/ShimmyMySherbet/ExecPlugin

@Lion4K
Copy link
Author

Lion4K commented Jul 17, 2022

Holy moly good idea. And the barricade is placed at the player's sight? Or a coordinate?

@ShimmyMySherbet
Copy link
Owner

It places the object at the target player's feet. So you would want to be in close proximity to them.

@TeemoCell
Copy link

Are you automaticly the owner of the placed item? For example the lockers. Will everyone have aceess to it?

@ShimmyMySherbet
Copy link
Owner

Objects placed with /placeobject are owned by the player who called the command and their group. Also applies for doors, storage, sentries, ect.

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

No branches or pull requests

3 participants