-
Notifications
You must be signed in to change notification settings - Fork 70
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
Trigger squad concealment broken event on missions where bForceNoSquadConcealment flag is set #1351
Trigger squad concealment broken event on missions where bForceNoSquadConcealment flag is set #1351
Conversation
Since the issue is specifically with the mission, perhaps it's the mission that needs to be fixed? Perhaps changing the mission trigger from "XCOM breaks concealment" to "XCOM unit sighted". Either that or "or mission start if XCOM starts unconcealed". The latter is less friendly towards the player, but makes more sense with the mission narrative that goes "ADVENT already knows we're here". The problem of course is mission logic is probably in kismet, and I'm not sure if we can fix it in CHL. |
40965ee
to
829be86
Compare
Think I've found a workable solution to this - it seems the mission kismet which triggers the start of the crate pickup is set to trigger with the 'SquadConcealmentBroken' event, so we can simply get the event manager to fire off this event if the bForceNoSquadConcealment flag is set on the battle data (without running all the actual 'setsquadconcealment' functions which does a bunch of other stuff. Preliminary testing suggests this seems to work. Will update shortly! |
829be86
to
b7d1f5e
Compare
I'm gonna request some more testing done on this, specifically:
|
…t in Battledata to fix supply extraction bug.
1a165b7
to
bd2ecb2
Compare
|
Updated docs and code styling
I've updated the docs and code styling, please take a look and if you don't see anything objectionable, this is good to go. |
Happy with your adjustments :) |
Fixes #1319
This is a preliminary fix for review & likely will need some changes but just creating a PR for review / conversation.
The code adjustment fixes the problem by starting the squad in concealment and then breaking it if the dark event / battledata flag bForceNoSquadConcealment is set, instead of not setting concealment on the squad in the first place. It works properly with phantom & reaper shadow but at the moment it creates a lot of flyovers on mission start which I suspect which looks a bit messy & I suspect will prevent this from being merged directly - I haven't sorted the comments out yet either!
Basically, on missions where the squad starts concealed and high alert is active you now get the following situation:
"High Alert Flyover"
"Concealed Flyover"
"Revealed Flyover"
(Optional if you have a ranger) "Phantom Ranger Concealed Flyover"
Normal mission start flyovers are not affected.
It would be ideal if we could come up with a way to suppress the visualiser when we use the SetSquadConcealment function but I don't really know how to do that at this point. Advice welcome!