The script separately: http://pastebin.com/9hqEzjR2
Example map: http://www.mediafire.com/download/u48iq ... 3/MEOW.wad
Use it by calling DrawText3D with the following arguments:
string — the text string to be drawn.
id — identifier of the hudmessage.
color — CR_ constant.
x, y, z — coordinates (in world space) of the hudmessage.
px, py, pz — coordinates of the camera.
fang — angle of the camera.
YAng — pitch of the camera.
People are free to use the script in whatever ways possible, I don't care.
Notes:
- This is actually 3D, and as such only works for OpenGL renderer, for software version see HudMessageOnActor in the wiki.
- Movebob/stillbob aren't implemented. An example on how to implement movebob is here (function CalculateBob, note that it's unfinished too).
- FOV isn't implemented, only 90.

Also "I don't know how it works" isn't a joke, the code is basically a piece of ancient DOS software rasterizer and a weird compensatory crutch for 1.2 vertical scale on top of it, that somehow works.
People who actually understand how it works are welcome too.