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 C-MOTION Sensor #54

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

Landric
Copy link
Contributor

@Landric Landric commented Nov 30, 2023

Added a motion-sensor (#48), named C-MOTION. Can be placed (and picked-up/moved with ACE).

When placed, user gets a dialogue allowing them to configure how they should be alerted: spectrum signal, map marker, or audio alert (these alerts can be allowed/disallowed as a CBA setting).

When any unit or object moves within the sensor radius, an alert is triggered.

Still a number of TODOs and design considerations to consult with crow about (including incorporating a new model for the sensor)

@Landric Landric marked this pull request as ready for review November 30, 2023 12:47
@Crowdedlight
Copy link
Owner

Waiting for me to get the 3D model into the mod. Will try to look at it tomorrow. The model and texture are done, just need to get it through bulldozer and get all the stuff correctly setup.

@Crowdedlight
Copy link
Owner

Crowdedlight commented Feb 4, 2024

#64 is merged to develop. It adds the 3D model and textures for the C-Motion. You can see it here: c6b5b4b

It's just configured as an MISC item in the arsenal right now. You can change it as you need. Wasn't sure what system you would use to "deploy" the item.

So just rebase this on latest develop and you should have the model to play with.

billede

@Landric
Copy link
Contributor Author

Landric commented Feb 7, 2024

Looks extremely snazzy! 😀

@Crowdedlight
Copy link
Owner

I added a whole new wiki for this mod. If possible please rebase on latest develop and fix any merge conflicts.
And add entry to the wiki for it. its all markdown and under the "wiki" folder.

You can see the current wiki here: https://crowdedlight.github.io/Crows-Electronic-Warfare/

You can add new pages in folders or new folders if necessary. Then add them as pages to the book by editing the SUMMERY.md file.

If you want to test it locally, you just need to install "mdbooks" with cargo install mdbook and then in the root of the repo just go mdbook serve and you can see your current state in localhost browser.
(Requires you got Rust/Cargo installed)

@Crowdedlight
Copy link
Owner

Just a heads up. You will likely need to change places where you add or remove beacon signals etc. when #65 is merged. As that changes the entire internal architecture to be server-authority, instead of distributed. Should be easy fix for you of just changing to serverEvent calls, instead of globalJIP, but lets see when you can rebase after its merged.

Landric added 11 commits April 16, 2024 17:31
Plus a few minor misc changes
Fixes hemtt warnings. Personally not a fan of how it looks - makes it much harder to read - but its better than potential errors introduced.

Also remove COMMA macro, replaced with (much more sensible) ARR_2 macro
Basic wiki page included; can be expanded with more screenshots etc
@b-mayr-1984
Copy link
Collaborator

We are discussing this feature right now on Gruppe Adler TS.
It might be a nice addition for the CMD in future versions of Shoot and Scoot.

Who will get the alert messages displayed? Just the person that placed the sensor?

@Landric
Copy link
Contributor Author

Landric commented May 7, 2024

Who will get the alert messages displayed? Just the person that placed the sensor?

Hi - glad to hear it might come in handy! At the moment, it depends which type of alerts are used by the player (and permitted by the server settings):

  • Audio is played only to the person that placed the sensor
  • Map markers are shown to the placer, based on whatever channel they have active at the time when placing it (global, side, group, etc.)
  • Spectrum signals are detectable by anyone with a Spectrum device (@Crowdedlight Can beacons be configured to only show to one side?)

@Landric
Copy link
Contributor Author

Landric commented May 7, 2024

C-motion Demo

@b-mayr-1984
Copy link
Collaborator

  • Audio is played only to the person that placed the sensor
  • Map markers are shown to the placer, and their side
  • Spectrum signals are detectable by anyone with a Spectrum device

Nice 🙂
That should work just fine for our use case.

@Landric is the maximum Sensor Radius configurable or hard coded to 10m? (as shown in your video)

@Crowdedlight
Copy link
Owner

Crowdedlight commented May 7, 2024

* Spectrum signals are detectable by anyone with a Spectrum device (@Crowdedlight Can beacons be configured to only show to one side?)

No, they can be picked up by anyone with a spectrum device with the right antenna. Granted that if you don't know what it is, you might not know that signal is a motion tracker, and not something else ;-)

It's only the Radio beacons that have a CBA option to hide the friendly side beacons.

@Landric
Copy link
Contributor Author

Landric commented May 7, 2024

@Landric is the maximum Sensor Radius configurable or hard coded to 10m? (as shown in your video)

Configurable - currently up to a max of 50m, although I'm open to design suggestions based on your use-case!

@Crowdedlight
Copy link
Owner

We are discussing this feature right now on Gruppe Adler TS. It might be a nice addition for the CMD in future versions of Shoot and Scoot.

I think for people playing the first time and especially with multiple communities involved, I also think people prefer not to take the CMD as they don't really know what they are doing or are not sure they can do a good job etc. At least from my perspective it is a bit more daunting slot than any of the others ;-)

@Crowdedlight
Copy link
Owner

@Landric Is there a way to place down sensors as zeus/by script, and select what user it should trigger for? Not sure if that is needed for shoot and scoot usecase, but might missions that wish to add in these without manually placing them, and select which player/side gets notified?

(Just brainstorming here)

@Landric
Copy link
Contributor Author

Landric commented May 7, 2024

@Landric Is there a way to place down sensors as zeus/by script, and select what user it should trigger for?

Not currently, but yeah, being able to place one via a module is a nice idea. I'll add it to the TODO list!

@Landric
Copy link
Contributor Author

Landric commented May 27, 2024

TODO: have EMPs destroy motion sensors in the radius
(and C-Track/jammers/other EW kit, while I'm at it)

@Landric
Copy link
Contributor Author

Landric commented May 29, 2024

TODO: it would be great to add a "destroyed" texture as well, to highlight when the sensor is inoperable (e.g. after being shot). Beyond my capability though, so low importance

@Crowdedlight
Copy link
Owner

String table has been added to main. So you might have to rebase on main, and add any user-facing text to the stringtabel.

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.

3 participants