Uploaded my old portal mod: https://github.com/kungfooman/cod2_portal/
Video:
https://github.com/kungfooman/cod2_p...portal.gsc#L47
Code:
bluePortal.angles = utils\math::orientToNormal(newPos["normal"]+(0.01,0.01,0.01));
Can't really remember why I added the 0.01, probably because wall vectors are mostly like 0,0,1 or 0,1,0 etc. and orientToNormal() didn't work with zero values.
Edit: Server is testable here: /connect root.killtube.org:29900
Server will run till root is restarted (aka screen session killed).