MSRevive / MasterSwordRebirth

Continuation of Master Sword Classic/Continued.
https://msrebirth.net/
Other
9 stars 8 forks source link

feat: update func monsterclip for blocking player #211

Closed thesupersoup closed 1 year ago

thesupersoup commented 1 year ago

Changed CFuncMonsterClip to be a CFuncWallToggle (to mask it in case any engine level code is looking for FuncWallToggles) and overrode all class methods. Now checks for the SF_MONSTERCLIP_PLAYER spawnflag when TurnOn() is called to determine whether it's SOLID_BSP (thereby blocking player) or just SOLID_TRIGGER (shouldn't block player, but has a Touch event so Monsters should still be blocked). Should always be invisible if the "showtriggers" CVar is 0.

Still needs FGD edited for new spawnflag

thesupersoup commented 1 year ago

I completely misread the prompt for issue https://github.com/MSRevive/MasterSwordRebirth/issues/207, closing and will take another crack at it