View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000163 | Gameplay + OpenGL | [All Projects] Bug | public | 2017-02-02 14:42 | 2017-02-02 17:57 |
Reporter | ibm5155 | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Summary | 0000163: zscript - checksight return random values with some actors | ||||
Description | On the process of converting my code from acs+decorate to zscript, I noted that raycast were acting like crazy, and so I did an isolated case and I figure out that the problem wass the checksight function with some specific actors... Idk what's going on, I belive since all the actors in that test map aren't moving, the return from that funcion should Always be zero or one, but instead, it's a random bool value. | ||||
Steps To Reproduce | -Download this wad:http://www.mediafire.com/file/c5pmd9iyf9sjt5a/zscript_checksight_bug.zip -load both wads and start the game with skill 1. You'll see that there're 0s and 1s on the top of screen, and it's WRONG, because both actors can see each other. -restart the map on the third level difficult from doom 2, and you'll see that those numbers are now Always 1. | ||||
Tags | No tags attached. | ||||
And the problem is with zscript version. Using the acs checksight with a loop will show 1 Always: http://i.imgur.com/kPc3XOF.png (the acs is the acs version of checksight and the number only is the zscript logint) |
|
No bug here. If you want to get reliable results for invisible things you have to pass SF_IGNOREINVISIBILITY for the flags parameter. | |
Wait a little. I'm trying the gzdoom-x64-g2.4pre-310-gbecc00a version, and just replaced the. return CheckSight(Act); by return CheckSight(Act,SF_IGNOREINVISIBILITY); But, gzdoom says:
And I'm quite lost because I didn't found any kind of info about "SF_IGNOREINVISIBILITY" over the wiki neither the fórum O_o |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-02-02 14:42 | ibm5155 | New Issue | |
2017-02-02 14:47 | ibm5155 | Note Added: 0000330 | |
2017-02-02 16:11 | Graf Zahl | Note Added: 0000334 | |
2017-02-02 16:11 | Graf Zahl | Status | new => closed |
2017-02-02 16:11 | Graf Zahl | Resolution | open => no change required |
2017-02-02 16:46 | ibm5155 | Note Added: 0000335 |