Converted for rtcw by sswolf