Mikusch / MannVsMann

A plugin for Team Fortress 2 that brings Mann vs. Machine upgrades and mechanics to other gamemodes
https://forums.alliedmods.net/showthread.php?p=2773717
GNU General Public License v3.0
36 stars 7 forks source link

Hook func_regenerate instead of creating func_upgradestation entities #11

Closed Mikusch closed 3 years ago

Mikusch commented 3 years ago

We should be hooking func_regenerate and opening the upgrade menu on touching clients ourselves instead of creating additional upgrade stations.

This would fix some maps with weird brush model indexes not being able to create valid upgrade stations triggers, as well as allowing us to prevent the constant resupply noise while upgrading.

Note: I already tried this a while ago but had trouble closing the upgrade menu on upgrading players after a forced respawn (e.g. on round win)