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

Remote aiming #27

Open
jamesol1 opened this issue Jun 8, 2020 · 9 comments
Open

Remote aiming #27

jamesol1 opened this issue Jun 8, 2020 · 9 comments

Comments

@jamesol1
Copy link

jamesol1 commented Jun 8, 2020

Hi Pav,
Would there be a way you could allow for remote aiming through right clicking a sign with say a clock to enter aiming mode, left click to fire.. providing one is using automatic reloading. It would allow you to manage a whole bunch of cannons from one area. I think this would be a really neat feature for those that use the plugin alongside movecraft and in general to be fair.

Whether its you being able to aim X type of cannon or the individually named ones, that would be great.

Movecraft allows you to remotely aim and fire vanilla cannons from a 'bridge', this would allow you to do the same with cannons (which has a lot more variety with projectiles/settings).

Many thanks

@DerPavlov
Copy link
Owner

I think it is easier for Movecraft to implement these changes, since Cannons only handles one cannon at a time and Movecraft knows the cannons on a craft.
I could only give you a list of cannons you can control or your cannons in the vicinity.
Actually I like the idea of firing a full broadside.

@jamesol1
Copy link
Author

jamesol1 commented Jun 8, 2020

I think it is easier for Movecraft to implement these changes, since Cannons only handles one cannon at a time and Movecraft knows the cannons on a craft.
I could only give you a list of cannons you can control or your cannons in the vicinity.
Actually I like the idea of firing a full broadside.

That would work great. Being able to shoot cannons your vicinity sounds good and perhaps a list so one player can aim X type of cannons, another a different type. Mortars for instance aim different to standard cannons. If there was a way of allowing X players to use your cannons for the remote aiming that would be good!

I'm imagining a sign 'Remote Cannons' then listing the names below of people who can also remote aim them. Not sure if that would work but just an idea. Or you could make it command based /cannons remoteaccess add (player name).
/cannons remoteaccess remove (player name).
So players on your team can also fire too.

Yeah i think it could add a new dynamic to cannons.

@DerPavlov
Copy link
Owner

You can set other people as operators for your cannons, but you have to to it for every single cannon at the moment.
I have to think about how it will fit in the current code, but it will be a ton of work to implement it.
I could add a tag to the cannons to set it to remote access and I there is a function to find cannons close to you, but that would be not player specific.
In other words a cannon set to remote access would be accessible for all player in the vicinity with can operate this cannon.
Maybe it is easier to make a list of cannons for every player, so everybody can be in charge for their cannons.

@jamesol1
Copy link
Author

jamesol1 commented Jun 8, 2020

Maybe it is easier to make a list of cannons for every player, so everybody can be in charge for their cannons.

Yeah that would work too actually. People could setup their own cannons to aim on a ship and control those specific ones perhaps within a vacinity.

@DerPavlov
Copy link
Owner

At the moment I am very busy with other projects, I don't believe this will come anytime soon. If you have somebody which can do the coding, that would be really helpful.

@jamesol1
Copy link
Author

jamesol1 commented Jul 25, 2020

At the moment I am very busy with other projects, I don't believe this will come anytime soon. If you have somebody which can do the coding, that would be really helpful.

Ah i see, well thanks for getting back to me. Unfortunetly i don't. I guess i'd just say whenever you fancy adding it that would be cool but it's totally up to you, thanks for your work on the plugin.

@DerPavlov
Copy link
Owner

I thought a little bit about the problem and the easiest solution might be a command to toggle /areaaimingmode. That can probably done in a few hours.
You could also use a sign to jump into this mode, but it is on until you deactivate it again via sign or command.
However, since you now control more than one cannon it will need some changes.

@jamesol1
Copy link
Author

jamesol1 commented Jul 27, 2020

Any sort of work around would be great. I suppose you'd probably want to make it so you could only aim a group of cannons aiming in the same direction. Feel free to do this how you wish, anything that could make it come into fruition through it being quicker to do would be great.

@jamesol1
Copy link
Author

jamesol1 commented Jul 28, 2020

I wonder if using X tool item you could right click cannons one owns (like how you do with the default clock aiming) and select other cannons you own to then aim and fire at the same time. You might need to allow for a configurable or simply further 'aiming distance' to account for aiming multiple cannons.

Would that be quicker/easier to make? If it is, it would fix issues with cannons aiming in different directions of players can manually decide which cannons to collectively and remotely aim/fire. Plus it would only allow you to aim the cannons you own.

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

No branches or pull requests

2 participants