Derpius / VisTrace

Garry's Mod binary module for tracing meshes at high speed on the CPU (and much more)
https://derpius.github.io/VisTrace
MIT License
27 stars 1 forks source link

[feature] More robust map detection #41

Closed Derpius closed 2 years ago

Derpius commented 2 years ago

Is your feature request related to a problem? Please describe.
Due to the reliance on the GM:Initialise hook to prevent trying to load the map before game.GetMap() returns valid data, it is no longer possible to load VisTrace outside of autorun.

Describe the solution you'd like Either checking if GetMap returns invalid data (if it ever returns invalid data, need to test) or using some other method to get the current map that doesn't need to wait for the gamemode to initialise.

Additional context https://wiki.facepunch.com/gmod/game.GetMap

Derpius commented 2 years ago

Added in c65e3b5bee566b319e94e9c4875dbb3b467165ad