-
Notifications
You must be signed in to change notification settings - Fork 19
Description
This is something that's caused confusion at least for me for some time. When peeps go inside a building during play, the Flag2 state TgF2_InsideBuilding is set. This then occludes their drawing, even when using no buildings mode (hold B). This seems a little buggy and dependent on what building they go into, but let's ignore that for now and assume it is working as a rule.
When peeps are added to a level file and placed inside a building, this flag is not set, at least not automatically. This is why it's generally possible to see people inside buildings all over the place in the game, it doesn't know they are meant to be inside (at least in terms of holding B, it does draw them behind the scenery correctly). The solution to this seems to be to update their Flag2 state in the level file to add the state manually. However, this doesn't seem to actually work. Setting TgF2_InsideBuilding (by making their flag2 value 0x20000000 hex or 536870912 in decimal) in the level file just gets ignored by the game, they start with Flag 2 set to 0 and are visible inside the building.
I guess where the plot thickens is if this was ever a supported feature or not. It's very rarely used in the game's files, a good test is m 0,49 as the zealot inside the target bunker has it set in the file but is visible (in-game he appears with flag2 of 0). It's not clear if this ever worked or it was just set that way as a left over for this one character.
Here's also a version of m 2,5 with an extra agent added in the bunker building the red headed agent walks through. This building definitely occludes correctly during normal play, and the agent is set with the flag, but he is visible and the game has set him back to a flag2 of 0: