Converted for rtcw by sswolf and nihilist
Tested for rtcw by nosy