Talk:A MonitorPop

From SRB2 Wiki
Jump to navigation Jump to search

Lets talk about that linedef executor nonsense

This is the current line of code responsible P_LinedefExecute(actor->lastlook, actor->target, NULL); fields 2 and 3 look okay to me, with the trigger being an object not a sector it makes sense and the target is the one who caused this to happen in the first place. But field 1 is just... what. lastlook is used as a pointer to the last player that was targetted, but what field 1 is supposed to be is something angle related, a tag. Please someone tell me what im looking at i filled out the rest of that info with zb --Neon (talk) 19:25, 19 April 2022 (UTC)

Like so many things in the source code, it's a hack. The lastlook field is being abused for something other than its original purpose. The code that stores the tag in lastlook is located here. --MascaraSnake (talk) 06:13, 23 April 2022 (UTC)