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

Custom Score/Ticket Counter #9

Open
Fank opened this issue Jul 14, 2021 · 3 comments
Open

Custom Score/Ticket Counter #9

Fank opened this issue Jul 14, 2021 · 3 comments
Assignees
Labels
component:web Affects web component enhancement New feature or request
Milestone

Comments

@Fank
Copy link
Member

Fank commented Jul 14, 2021

In OPT we are playing some kind of capture the flag system with points, i would like to show the progress like we have in our ingame UI:

image

@Fank Fank added the enhancement New feature or request label Jul 14, 2021
@indig0fox indig0fox added component:addon Affects addon component component:extension Affects extension component labels Jul 14, 2021
@indig0fox indig0fox added this to the v1.1.0 milestone Jul 14, 2021
@Fank
Copy link
Member Author

Fank commented Jul 14, 2021

I think we should handle this as some kind of custom event. #7

  • CounterIncrease, side, number
  • CounterDecrease, side, number
  • CounterSet, side, number
    If not set initially, they are not shown.

So like WEST and EAST side exists, call CountSet, WEST, 0 and CountSet, EAST, 0.
To show WEST 0:0 EAST or something

@indig0fox
Copy link
Member

indig0fox commented Jul 14, 2021

Support for BIS_fnc_respawnTickets would be good to have. FNF uses this system (and it's native GUI element BIS_fnc_showMissionStatus) to manage points in sector control missions.

For other custom implementations, it would be good in case the above is actually used for respawn purposes -- and handled separately means the two won't undergo unintentional conflicts.

// respawn tickets
["Init", "Global"] call ocap_fnc_respawnTickets;
["Init", side] call ocap_fnc_respawnTickets;
["Init", group/player] call ocap_fnc_respawnTickets; // fetch ocap_id or group name in function
// after call, capture loop will also gather the ticket count for any of the specified items using [BIS_fnc_respawnTickets](https://community.bistudio.com/wiki/BIS_fnc_respawnTickets)

// custom counter/score
["Init", [array of participating sides], startNumber] call ocap_fnc_counterEvent;

// better for doing the math on SQF side and simply sending resulting number
["Set", side, newNumber] call ocap_fnc_counterEvent;

Web implementation would then be easier because we know from the Init event how many sides are involved.

@indig0fox indig0fox self-assigned this Jul 14, 2021
@indig0fox indig0fox modified the milestones: v1.1.0, v1.2.0 Jul 23, 2021
indig0fox added a commit to OCAP2/addon that referenced this issue Apr 11, 2022
OCAP2/OCAP#37
- adds remote-controlled unit detection if firer was >50m away from initial projectile position

OCAP2/OCAP#9
- adds setting for optional BIS_fnc_respawnTickets tracking, will automatically track missionNamespace + faction score counts every 30th frame
- adds system for optional custom score tracking by a set of sides, a custom counter separate from BIS_fnc_respawnTickets

- pending testing of debug drawIcon for units being recorded
indig0fox added a commit to OCAP2/addon that referenced this issue Apr 11, 2022
OCAP2/OCAP#37
- adds remote-controlled unit detection if firer was >50m away from initial projectile position

OCAP2/OCAP#9
- adds setting for optional BIS_fnc_respawnTickets tracking, will automatically track missionNamespace + faction score counts every 30th frame
- adds system for optional custom score tracking by a set of sides, a custom counter separate from BIS_fnc_respawnTickets

- pending testing of debug drawIcon for units being recorded
remove userconfig
@indig0fox indig0fox changed the title Show Progress Custom Score/Ticket Counter Apr 11, 2022
@indig0fox
Copy link
Member

Custom counter + BIS_fnc_respawnTicket tracking implemented in pre-release 2.0 addon - web implementation needed

@indig0fox indig0fox added component:web Affects web component and removed component:addon Affects addon component component:extension Affects extension component labels Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:web Affects web component enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants