View Issue Details

IDProjectCategoryView StatusLast Update
0000163Gameplay + OpenGL[All Projects] Bugpublic2017-02-02 17:57
Reporteribm5155 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0000163: zscript - checksight return random values with some actors
DescriptionOn 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.
TagsNo tags attached.

Relationships

Activities

ibm5155

ibm5155

2017-02-02 14:47

reporter   ~0000330

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)
Graf Zahl

Graf Zahl

2017-02-02 16:11

administrator   ~0000334

No bug here. If you want to get reliable results for invisible things you have to pass SF_IGNOREINVISIBILITY for the flags parameter.
ibm5155

ibm5155

2017-02-02 16:46

reporter   ~0000335

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:

Script error, "testobj.wad:ZSCRIPT" line 40:
Unknown identifier 'SF_IGNOREINVISIBILITY'

Execution could not continue.

1 errors while parsing DECORATE scripts

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

Issue History

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