Page 1 of 1
[r160] Hitscans do not hit 3-d floor from the bottom?
Posted: Sun Aug 17, 2008 20:01
by Nash
I've sent you a PM with a link to a test WAD that uses an invisble actor that shoots hitscans to simulate a flashlight.
Puke 501 to turn the flashlight on.
The problem is, when you aim it upwards onto the ceiling which was created from a 3-d floor, the shot goes right through.
Aiming it from above (so it hits the 3-d floor's top) works though.
Posted: Sun Aug 17, 2008 23:18
by Nash
I'd like to know if this is a bug, or something that can't be fixed. If it's a bug, I'll patiently wait for it to be fixed; otherwise, I'll have to design my mod revolving around the fact that this will never work anytime soon... and I'd rather do it from the beginning than later on (and having to tediously change many things later down the road).
Posted: Sun Aug 17, 2008 23:40
by Enjay
Possibly related to this (splashes on thin 3D floors)
http://forum.drdteam.org/viewtopic.php?t=3410
Graf Zahl wrote:I can't fix this because the puff spawning code messes around with the coordinates so I never get a proper position for the puff.
Posted: Mon Aug 18, 2008 3:48
by Nash
Hmmm. That's too bad. I may have to scrap use of 3-d floors then.
EDIT: I'm working around this by placing a CustomBridge thing just below the 3-d floor. I hope this doesn't get broken in future versions...
EDIT 2: Arghifications! Due to the way my flashlight is setup (dummy actor that has it angle and pitch set to player's, and fires a hitscan (this is to allow weapons + flashlight)), placing the custom bridge thing will make the flashlight "snap" onto the custom bridges. Oh snap!
Posted: Mon Aug 18, 2008 14:43
by Graf Zahl
If the shot passes through the 3D floor it's a bug. If it's just the puff's position I can't say.
Posted: Mon Aug 18, 2008 22:37
by Nash
Well, after trying one of Enjay's test WADs where he used lots of 3-d floors, and turning on sv_fastweapons 2, I do see that the puff occasionally passes right through the floor.
Have you tried the example file I linked to in your PM? I assumed that you had already downloaded it, so I deleted it. I'll put it back up if it'll help you find the bug.
Please let me know.
Posted: Mon Aug 18, 2008 23:23
by Graf Zahl
I have downloaded it but haven't found the time yet to investigate.
Posted: Tue Aug 19, 2008 3:54
by Nash
Okay then, take your time.
Posted: Sun Jan 04, 2009 16:33
by Graf Zahl
I hope it works now. There was a bug in the 3D floor code that checked for the real ceiling texture and did incorrect things when it was a sky.
Posted: Wed Jan 07, 2009 23:12
by Nash
Sorry for the late reply - didn't realize this was fixed.
And indeed it is fixed. I was actually thinking of messing with fast projectiles the other day, but now that this is fixed, I don't have to deal with all that.
Thanks for the fix... you can close this now.