p2sr / SourceAutoRecord

Speedrun plugin for Source engine games.
https://sar.portal2.sr/
MIT License
93 stars 29 forks source link

[feature] Portals recorded in trace #83

Closed ThisAMJ closed 2 years ago

ThisAMJ commented 2 years ago

@RainbowwPhoenixx has this working locally afaik, just hasn't been pushed

There are also a couple considerations to take into account. Should there be a 'simple' rectangular mode? If so, will the carving rules for floor portals be implemented?

RainbowwPhoenixx commented 2 years ago

I have it locally however it is not complete, I fail to detect which the owner of the portals in coop

As for the rest, the answer is bot for now

ThisAMJ commented 2 years ago

Can't you find the portals by their linkage ids? Taking a look at the portal_report function you should be able to hook CProp_Portal::FindPortal (not sure if I'm allowed to post leak references here) (cough cough search PortalReportFunc)

ThisAMJ commented 2 years ago

Implemented in d96c2db, but I'm keeping this open until cvar to control shape is added

ThisAMJ commented 2 years ago

Portal shape cvar added in #88