ACE_Spectator TODO list
Branch: ace_spectator
- [x] Remove stringtable entries that aren't translated. (just leave the English lines)
- [x] Replace
isDedicatedby!hasInterface(https://github.com/acemod/ACE3/pull/1760#discussion_r33571672) - [x] Do not modify viewdistance unless the user changes the slider
- [x] Add a canInteractWithCondition isNotSpectating (or similar) to prevent the interaction menu while spectator is open. That will also block all actions binded to keypresses.
- [x] Modify the code so it modifies gear as little as possible
- [x]
!(_x in allMapMarkers)(https://github.com/acemod/ACE3/pull/1760#discussion_r33733952) - [x] Make spectator mode work on missions with respawn
- [x] Add controls as CBA keybinds
SilentSpike's overhaul todo list (for 3.2.0):
- [x] Clean up the display config (use correct interface coordinate systems, remove redundant classes, etc.)
- [x] Unify interface config to make an actual display
- [x] Correctly load and unload the display
- [x] Free cam movement
- [x] Camera mode switching
- [x] Spectator map processing
- [x] Unit list processing (both compiling a flexible list of units and UX)
- [x] Functional toolbar values
- [x] Enable escape menu
- [x] Cleanup (function headers, privates, etc.)
- [x] Re-enable the compass
- [x] Togglable interface components
- [x] Settings for the following:
- [x] Side filters
- [x] Camera mode restrictions
- [x] Vision mode restrictions
- [x] Unit filters
- [x] Clock
- [x] Unit list side indication
- [x] Mouse dollying
- [x] 3D unit icons
For (3.3.0):
- [x] ~~Provide camera locking functionality~~
- [x] Prevent ace_goggles overlay
- [x] Enable zeus usage
- [x] ~~Investigate improved methods of keybind handling~~
- [x] ~~Make the values on the display toolbar interactable~~
- [x] Speed should adjust with zoom
- [x] Vertical movement speed should scale at half horizontal
- [x] PRIORITY The onDeath setting should be redesigned:
- Should enable spectator state becoming a replacement for the BI death state
- This essentially means spectator cleanly integrates into the BI respawn framework when the setting is enabled (enter on death, exit on respawn, compatible with all respawn types/templates)
- The setting persists so that people using custom scripted respawn frameworks can disable it and integrate spectator into their own framework as desired
!(_x in allMapMarkers)
Since we will be making this compatible with respawn missions then the code that moves those respawn markers will need to be totally changed anyway :+1:
I'd propose introducing a new marker "spectator_respawn" (or similar) to handle the spectator holding position. With some code to just move players somewhere off map if it doesn't exist.
Oh and good idea merging this for further development, I was considering the idea myself :+1:
Created branch ace_spectator for development (and updated issue).
I'd propose introducing a new marker "spectator_respawn" (or similar) to handle the spectator holding position. With some code to just move players somewhere off map if it doesn't exist.
Sure. We can also specify hardcoded default positions for common maps. I remember a list of default pen coordinates existed on an addon by Columdrum for ACE2; we could ask permission to use those as they are.
Actually, looking at the calculation for the pen position now it seems fine. It just shoves players off map. Which removes any possibility of the position being a problem in a mission. I'd probably change it to just be a fixed value and cut down on some of the code, but that's fine in my opinion.
The respawn markers being moved was presumably to avoid any weirdness with people spawning then being moved, but I'll take that code out anyway because it introduces more problems than it fixes (when respawn support is desired).
Come to think of it, do all terrains start with (0,0) in the bottom left?
I simplified the pen calculation with the assumption that they do.
Come to think of it, do all terrains start with (0,0) in the bottom left?
No. There are maps that have an offset (a certain map from Iron Front comes to mind; it was discussed on the 10 digit gps thread).
Hmm, that fixed default position should only be an issue in very edge case situations then. I'll leave it as is, but if anyone feels it's worth changing I have no objections :smile:
Hmm, that fixed default position should only be an issue in very edge case situations then
Probably. We can very well wait for gps people to solve it for us and then rip off the reward.
@SilentSpike So how do we want to handle missions with proper respawn? Put a respawn timer in the corner somewhere? Is there a way of postponing the respawn menu?
R.e. gear: Ideas for preventing players from drowning without scuba gear? Maybe make a PFH to setPosASL the player floating in air (network overhead?) or attachTo a static object with an offset above the water?
Maybe make a PFH to setPosASL the player floating in air (network overhead?)
Yes, that would create large network overhead.
attachTo a static object with an offset above the water?
That'd should probably work.
Another random solution would be to actually put spectators inside bloody submarines. TBH I'm in love with that idea. It'd would also be hilarious if the respawn point is on land, but it'd still work.
@voiperr The respawn system is up to missions designers, what's needed to allow for that is just plenty of flexibility. What I'd personally consider necessary for this:
- A reliable method to mark a player as a spectator (also means we don't have to rely on checking if someone is near the pen)
- Reliable functions to load/unload spectator mode as many times as desired. Should be manually callable (we can use the ace event system for this) so that designers can set up their own scripted respawn systems
On top of that, we could develop some configurable standard respawn systems (wave respawn, life pool, etc.) as quality of life improvements for users. Though that's me planning a little far ahead :wink:
Another random solution would be to actually put spectators inside bloody submarines.
Read my mind :grinning:
I've also been considering a PFH to setOxygenRemaining 1 and figuring out a way to override the vision blurring.
Hmm, there is another possible solution:
We could delete the player unit and cache all of it's details (so that it can be recreated upon respawn). However this might not be handled well by external scripts.
Edit: Hell we could add a spectator unit to switch into, would also be an easy way to identify spectators without locality trouble. I wonder if doing so would break any other ace systems.
We could delete the player unit and cache all of it's details
That could be problematic; IDK if we can trust radio spectator modes working without the player existing.
without the player existing.
Would this be a problem if we switched into a virtual spectator unit?
Wouldn't just assigning a public objectVar be simpler?
For checking if a player is a spectator sure, but a virtual unit could bring some advantages (and solve multiple birds with one stone) if it wouldn't cause issues elsewhere.
I'm just spit balling though, I'm not going to change the code unless it's an immediate solution/improvement or an agreed design decision.