Remaking trigger_teleport entity

I have a need to “fix” the teleport entity ( it does not preserve velocity ), at this time I have been using a work around using a trigger_multiple that calls functions on a lua_run to implement my fix, but I read a while back that in the last update or so lua versions of brush entities would load instead of the default functionality. I tried making a script for it in /lua/entities/trigger_teleport/init.lua but it doesn’t seem to load. Am I not understanding how this should work? or just where to put it? Thanks in advance, any help is much appreciated.