Giter VIP home page Giter VIP logo

Comments (15)

diwako avatar diwako commented on May 30, 2024 1

I don't really intent that SQLs or any players mid mission can add things to the array. I'd prefer it to be a advanced mission maker thing. Hence just a variable in missionNamespace which a mission maker is free to play around with.
That means starting assigned vehicles could be done on mission set up, switching vehicles mid mission could be done via some mission addaction/ace interaction. I am pretty sure several people who want an "out of squad" tracking thing will use it in multitude of ways.

from diwako_dui.

diwako avatar diwako commented on May 30, 2024 1

Depends what the mission maker intents, they could just publicVar it if they only have like a VIP, or have them local only for stuff like "squad vehicles"

from diwako_dui.

diwako avatar diwako commented on May 30, 2024

I get the use case for this. But since this is a clientside mod, I am wondering how to implement something like this. Potentially not everyone (including server) is running this mod, so a function is already out of the question.
Then only a global variable is left, but then, do you want that to be synced, set it only on per unit basis? So should every client have this variable set or not? Ultimately the mission maker needs to decide.
I also take it only units should be tracked as there is no support for showing vehicles so far.

from diwako_dui.

diwako avatar diwako commented on May 30, 2024

As an idea, I thought maybe vehicles could be tracked as well, so I added support for this. Here is the idea of it with very """nice""" color. Vehicle icons are twice the size of unit icons
image

from diwako_dui.

nk3nny avatar nk3nny commented on May 30, 2024

Vehicles may be a cool experiment. I think a global variable, essentially an array where the relevant unit name added is simple enough to use. No extra interface is necessary.

from diwako_dui.

diwako avatar diwako commented on May 30, 2024

Right now the implementation is it checks for an array which is named diwako_dui_special_track in misionNamespace. Adds all objects to the compass tracker if these are based on CAManBase, Air or LandVehicle.

For vehicles it grabs the map icon. Would that be enough?

from diwako_dui.

Drofseh avatar Drofseh commented on May 30, 2024

@diwako I would love to be able to add vehicle tracking on a per squad basis.
Assign Vehicle A to Squad A, Vehicle B to Squad B, etc, so only the vehicle assigned to your squad would appear in your hud.

This would make it much easier for each squad to find their own vehicle when mounting up.

Maybe an ace interaction on the vehicle as well to reassign it? Similar to assigning a Buddy.
So that if a squad changes vehicle mid-mission they could switch which vehicle is being tracked in their hud.

from diwako_dui.

diwako avatar diwako commented on May 30, 2024

Commit a1f1e22 has all changes discussed here.

from diwako_dui.

Drofseh avatar Drofseh commented on May 30, 2024

Sounds good. Could you give an example of adding a unit to the special tracking mid-mission?
Just diwako_dui_group = diwako_dui_group + [UnitVar]; ?

from diwako_dui.

diwako avatar diwako commented on May 30, 2024

Sure thing.
It uses the variable named diwako_dui_special_track. You should not use the var diwako_dui_group as it will be constantly overwritten.

diwako_dui_special_track is nil by default. so you start with defining it, let's say in initPlayerLocal.sqf.

diwako_dui_special_track = [alpha_vic];

To add to it mid mission, you can either pushBack a new vehicle or just redefine the whole array in diwako_dui_special_track. Changes to the array are automatically picked up.

from diwako_dui.

Drofseh avatar Drofseh commented on May 30, 2024

Cool, thanks.
And it's not a public variable right? Can be different on different clients?
If it can be declared in initPlayerLocal then it must not be public.

I think it might be worth writing things like that in the wiki here on github.

from diwako_dui.

diwako avatar diwako commented on May 30, 2024

Closing this now, but leaving comments open as the changes are already commited

from diwako_dui.

Drofseh avatar Drofseh commented on May 30, 2024

Any chance we could change the default colour for this?
Or have the colour as a setting. I'd just like it to be white for me.

from diwako_dui.

diwako avatar diwako commented on May 30, 2024

I kind of want the color to be tied to the color schemes, so they are all consistent with future™ features. I can understand that the current color is probably not that desirable for many people.

Would you mind opening up a new issue so I can track that for v1.4.0?

from diwako_dui.

Drofseh avatar Drofseh commented on May 30, 2024

Sure

from diwako_dui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.