RimWorld

RimWorld

47 ratings
CAI 5000 - Glass Support
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
1.242 MB
24 Feb, 2024 @ 4:55am
12 Apr, 2024 @ 9:39am
5 Change Notes ( view )

Subscribe to download
CAI 5000 - Glass Support

Description
Small extension to the amazing CAI 5000 mod. Glass or glass like materials no longer block line of sight for the fog of war.

Tested with Windows, Glass+Lights and Walls made out of glass like materials from mods that add additional materials. Should also work with other mods not explicitly mentioned but add window like things. Give it try and tell me if it works or not.

Technically this should work with everything that has the blockLight property set to false. Since this is what my patch checks.

Save to add or remove midgame.

Disclaimer
This is a very simple and naive patch. I dont rellay fully understand how CAI 5000 works in detail so if there is any weird behaviour with the ai and glass walls I wont be able to help you. I didnt notice anything but for me as long as 90% of my modpack works, I dont look to the details so i might have missed something.
33 Comments
lol 11 May @ 4:47am 
Man you're a lifesaver with this patch. Thank you!
Agamenton 25 Oct, 2024 @ 2:39am 
@claytruck yes, this does work with the "ReBuild: Doors and Corners" mod, I've just tested it
KahirDragoon  [author] 23 Aug, 2024 @ 4:25am 
@Grimbly Interesting didnt know that. Too bad i really like CAI. But im currently not playing Rimworld and adding proper Vehicle support is currently sadly beyond my abilities :(
Grimbly 22 Aug, 2024 @ 2:04pm 
comments from mod developers suggest that Karim a developer for CAI (I believe?) is responsible for the compatibility patch internally. however, has stepped away for a time
:)
Grimbly 21 Aug, 2024 @ 11:34am 
Was investigating vehicles, i see you to have previously.
the current compatibility seems accidental.
i don't have the technical knowledge to read the code, but from some ingame testing.
Fog of war seems to appear from whatever Tile the 'pawn' of the vehicle is located.
for the smaller 1 tile, and certain vehicles. that 'pawn' tile is unobstructed.
using the 3x3 or bigger vehicles. the 'pawn' tile is entirely surrounded and unable to see anything
for some 2 wide vehicles, such as the highwayman, Visibility is 180 degrees, from front to back of the vehicle, obscuring the other half.

I am unsure how the vehicles work, creating like, temporary vehicle blocks? i assume if you could set the blocklight property to false as you have said, it would solve the issue entirely?
unsure how feasible this is.
Dizzy Ioeuy 8 Jul, 2024 @ 8:30pm 
But... now add limits for range of sight due to night, light, blindness, etc.? Like Real Fog of War mod has?

Can ya?
Dizzy Ioeuy 5 Jul, 2024 @ 12:00am 
You're a freaking HERO!
claytruck 23 Jun, 2024 @ 11:19am 
does this work with the rebuild glass walls
\
Pinkamena 22 May, 2024 @ 4:50am 
As for visibility in vehicles, that sounds very intentional (haven't tested it yet personally). From what ya'll are saying, tanks are meant to be supported by a spotter squad which is very much similar to how they worked back in the day. An open port to see through is an open port to die through.
Pinkamena 22 May, 2024 @ 4:47am 
This is literally exactly what I needed! Thank you <3