Woolen has a similar script for the eureka effect
// Eureka Effect
// Press R to go to spawn
// Crouch and Press R to go to teleporter exit
bind "r" "eureka"
alias "eureka" "slot3; eureka_teleport"
alias "eureka2" "slot3; eureka_teleport 1"
alias +crouch "+duck; bind r eureka2"
alias -crouch "-duck; bind r eureka"
Hopefully this helps