Fully functioning 3D hudmessage script
Posted: Wed Jun 22, 2016 6:09 pm
HI, finally made this.
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:
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.
- Even though it mostly works under 2.0, there's no HUDMSG_NOWRAP in it and the text string will be wrapped once it's too close to the camera. 3.0 is advised.
- 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.