Page 1 of 1

r284(+) 3D floor type 3 blocks monster sight

Posted: Sun Jan 18, 2009 21:33
by Enjay
From revision 284 onwards (I don't have 283, but 282 was OK) 3D floor type 3 ("defines a non-solid 3D-floor. It is being rendered but isn't processed for any collision checks") seems to be blocking the monster line of sight calculations. Put a monster behind such a 3D floor and he will refuse to shoot at you - which is a change from previous behaviour.

The attached file shows the effect. Start the level and shoot to wake up the chaingunner. He will wander around but will not attack you. Walk into the 3D floor pen and he will attack you. Step out again and he will stop.

Try this in an older version and the chaingunner will attack regardless of where you are standing.

For a real example, again, my Burghead mod shows the effect. The windows in the house are made with 3D floors (to allow the broken glass textures to be stacked above each other) Unfortunately, this also means that the enemies inside the house will not attack you as you make your way in (making assaulting the house far too easy) and, similarly, if you are inside the house defending against the waves of incoming enemies, the enemies won't attack you until they are in the house with you - again making it too easy. Frustratingly, of course, looking at the map again, I'd have been much better using more traditional methods. Mind you, I wouldn't have spotted the bug if I'd done that. ;)

Posted: Fri Jan 23, 2009 23:14
by Enjay
Just for info, this bug has prompted me to make a few minor changes to the way the windows in the house in the Burghead mod are done and whilst I was at it I made a few other minor changes too.

I'll have to give it a couple of run throughs to check for bugs but I should have an update uploaded by the end of the weekend (oh the pain of slow uploads). So, that means the bug will be irrelevant to this mod at least. Whether it affects any other released mods, I have no idea.

Posted: Sat Jan 24, 2009 1:19
by Graf Zahl
Don't you just love these uninitialized variables...? :?