├── utils ├── qcsg │ ├── source.p0 │ ├── source.p1 │ ├── source.p2 │ ├── hulls.txt │ ├── qcsg.dsw │ └── hullfile.c ├── light │ ├── light.c │ ├── light.h │ ├── ltface.c │ ├── trace.c │ └── new │ │ └── light.h ├── qlumpy │ ├── qlumpy.doc │ ├── qlumpy.h │ └── qlumpy.dsw ├── procinfo │ ├── procinfo.h │ └── lib │ │ └── win32_vc6 │ │ └── procinfo.lib ├── smdlexp │ ├── smdlexp.rc │ ├── smdlexp.def │ ├── smexprc.h │ └── smdlexp.dsw ├── sprgen │ ├── s_bubble.spr │ ├── s_explod.spr │ ├── s_light.spr │ └── sprgen.dsw ├── vgui │ ├── include │ │ ├── VGUI.h │ │ ├── VGUI_App.h │ │ ├── VGUI_Dar.h │ │ ├── VGUI_Font.h │ │ ├── VGUI_Menu.h │ │ ├── VGUI_Bitmap.h │ │ ├── VGUI_Border.h │ │ ├── VGUI_Button.h │ │ ├── VGUI_Color.h │ │ ├── VGUI_Cursor.h │ │ ├── VGUI_Desktop.h │ │ ├── VGUI_Frame.h │ │ ├── VGUI_Image.h │ │ ├── VGUI_KeyCode.h │ │ ├── VGUI_Label.h │ │ ├── VGUI_Layout.h │ │ ├── VGUI_MiniApp.h │ │ ├── VGUI_Panel.h │ │ ├── VGUI_Point.h │ │ ├── VGUI_Scheme.h │ │ ├── VGUI_Slider.h │ │ ├── VGUI_String.h │ │ ├── VGUI_Surface.h │ │ ├── VGUI_TaskBar.h │ │ ├── VGUI_BitmapTGA.h │ │ ├── VGUI_ComboKey.h │ │ ├── VGUI_EditPanel.h │ │ ├── VGUI_IntLabel.h │ │ ├── VGUI_ListPanel.h │ │ ├── VGUI_MenuItem.h │ │ ├── VGUI_MouseCode.h │ │ ├── VGUI_PopupMenu.h │ │ ├── VGUI_ScrollBar.h │ │ ├── VGUI_SurfaceGL.h │ │ ├── VGUI_TabPanel.h │ │ ├── VGUI_TextEntry.h │ │ ├── VGUI_TextGrid.h │ │ ├── VGUI_TextImage.h │ │ ├── VGUI_TextPanel.h │ │ ├── VGUI_ActionSignal.h │ │ ├── VGUI_BorderLayout.h │ │ ├── VGUI_BorderPair.h │ │ ├── VGUI_BuildGroup.h │ │ ├── VGUI_ButtonGroup.h │ │ ├── VGUI_ChangeSignal.h │ │ ├── VGUI_CheckButton.h │ │ ├── VGUI_ConfigWizard.h │ │ ├── VGUI_DesktopIcon.h │ │ ├── VGUI_EtchedBorder.h │ │ ├── VGUI_FlowLayout.h │ │ ├── VGUI_FrameSignal.h │ │ ├── VGUI_GridLayout.h │ │ ├── VGUI_HeaderPanel.h │ │ ├── VGUI_ImagePanel.h │ │ ├── VGUI_InputSignal.h │ │ ├── VGUI_InputStream.h │ │ ├── VGUI_LayoutInfo.h │ │ ├── VGUI_LineBorder.h │ │ ├── VGUI_MessageBox.h │ │ ├── VGUI_ProgressBar.h │ │ ├── VGUI_RadioButton.h │ │ ├── VGUI_RaisedBorder.h │ │ ├── VGUI_ScrollPanel.h │ │ ├── VGUI_StackLayout.h │ │ ├── VGUI_SurfaceBase.h │ │ ├── VGUI_TablePanel.h │ │ ├── VGUI_TickSignal.h │ │ ├── VGUI_ToggleButton.h │ │ ├── VGUI_TreeFolder.h │ │ ├── VGUI_WizardPanel.h │ │ ├── VGUI_FocusNavGroup.h │ │ ├── VGUI_LoweredBorder.h │ │ ├── VGUI_MenuSeparator.h │ │ ├── VGUI_RepaintSignal.h │ │ ├── VGUI_ButtonController.h │ │ ├── VGUI_DataInputStream.h │ │ ├── VGUI_FileInputStream.h │ │ ├── VGUI_FocusChangeSignal.h │ │ └── VGUI_IntChangeSignal.h │ └── lib │ │ └── win32_vc6 │ │ └── vgui.lib ├── serverctrl │ ├── res │ │ ├── serverctrl.ico │ │ └── serverctrl.rc2 │ ├── StdAfx.cpp │ ├── resource.h │ ├── StdAfx.h │ ├── ServerCtrl.h │ └── ServerCtrl.cpp ├── common │ ├── l3dslib.h │ ├── meter.h │ ├── trilib.h │ ├── meter.c │ ├── movie.h │ ├── scriplib.h │ ├── threads.h │ ├── lbmlib.h │ ├── polylib.h │ └── wadlib.h ├── qbsp2 │ ├── cull.c │ ├── qbsp2.dsw │ └── nodraw.c ├── makefont │ └── makefont.dsw ├── mdlviewer │ └── mdlviewer.dsw ├── qrad │ └── qrad.dsw ├── visx2 │ └── vis.dsw ├── makels │ └── makels.dsw ├── bspinfo │ ├── bspinfo.dsw │ └── bspinfo.c └── studiomdl │ └── studiomdl.dsw ├── linux ├── libSDL2.so ├── libSDL2.dylib ├── vgui.so ├── libSDL2-2.0.so.0 ├── release │ ├── vgui.so │ └── vgui.dylib ├── libSDL2-2.0.0.dylib ├── libSDL2-2.0.so.0.dbg ├── libSDL2-2.0.0.dylib.dSYM │ └── Contents │ │ ├── Resources │ │ └── DWARF │ │ │ └── libsdl2-2.0.0.dylib │ │ └── Info.plist └── gendbg.sh ├── filecopy.bat ├── common ├── nowin.h ├── com_model.h ├── dll_state.h ├── interface.h ├── net_api.h ├── interface.cpp ├── ivoicetweak.h ├── screenfade.h ├── director_cmds.h ├── winsani_out.h ├── winsani_in.h ├── enums.h ├── studio_event.h ├── entity_types.h ├── demo_api.h ├── netadr.h ├── dlight.h ├── qfont.h ├── con_nprint.h ├── event_args.h ├── in_buttons.h ├── weaponinfo.h ├── usercmd.h ├── pmtrace.h ├── particledef.h ├── cvardef.h ├── event_flags.h ├── beamdef.h ├── ref_params.h ├── parsemsg.h └── crc.h ├── engine ├── edict.h ├── customentity.h └── shake.h ├── external └── SDL2 │ ├── SDL_revision.h │ ├── SDL_name.h │ ├── merge_sdl2.sh │ ├── SDL_copying.h │ ├── SDL_types.h │ ├── SDL_opengles.h │ ├── SDL_opengles2.h │ ├── close_code.h │ ├── SDL_config.h │ ├── SDL_blendmode.h │ ├── SDL_test_log.h │ ├── SDL_test_font.h │ ├── SDL_quit.h │ └── SDL_test.h ├── lib └── public │ ├── SDL2.lib │ └── game_controls.lib ├── ricochet ├── dlls │ ├── mp.def │ ├── maprules.h │ ├── talkmonster.h │ ├── disc_weapon.h │ ├── spectator.h │ ├── items.h │ ├── activitymap.h │ ├── monsterevent.h │ ├── doors.h │ ├── game.h │ ├── schedule.h │ ├── explode.h │ ├── globals.cpp │ ├── cdll_dll.h │ ├── extdll.h │ ├── skill.cpp │ ├── plane.h │ ├── scriptevent.h │ ├── h_export.cpp │ ├── nodes.h │ ├── plane.cpp │ ├── activity.h │ ├── decals.h │ └── animation.h ├── cl_dll │ ├── voice_status.h │ ├── Ricochet_JumpPads.h │ ├── ev_hldm.h │ ├── vgui_int.h │ ├── vgui_ConsolePanel.h │ ├── wrect.h │ ├── view.h │ ├── in_defs.h │ ├── kbutton.h │ ├── demo.h │ ├── hl │ │ ├── hl_objects.cpp │ │ └── hl_events.cpp │ ├── hud_iface.h │ ├── events.cpp │ ├── Ricochet_BSPFile.h │ ├── vgui_ServerBrowser.h │ ├── camera.h │ ├── hud_servers.h │ ├── studio_util.h │ ├── vgui_ControlConfigPanel.h │ ├── cl_dll.h │ ├── ammo.h │ ├── hud_update.cpp │ ├── GameStudioModelRenderer.h │ ├── com_weapons.h │ ├── vgui_SchemeManager.h │ ├── demo.cpp │ ├── battery.cpp │ ├── train.cpp │ ├── vgui_ConsolePanel.cpp │ └── util.cpp └── pm_shared │ ├── pm_info.h │ ├── pm_debug.h │ ├── pm_materials.h │ ├── pm_shared.h │ └── pm_movevars.h ├── game_shared ├── GameEvent.h ├── bot │ ├── bot.cpp │ ├── bot_util.cpp │ ├── bot_util.h │ ├── bot_manager.h │ ├── bot_profile.h │ ├── bot_constants.h │ ├── bot_manager.cpp │ └── bot_profile.cpp ├── vgui_grid.h ├── vgui_grid.cpp ├── vgui_helpers.cpp ├── vgui_helpers.h ├── vgui_listbox.cpp ├── vgui_listbox.h ├── vgui_loadtga.cpp ├── vgui_loadtga.h ├── vgui_slider2.cpp ├── vgui_slider2.h ├── voice_banmgr.cpp ├── voice_banmgr.h ├── voice_common.h ├── voice_gamemgr.h ├── voice_status.h ├── vgui_scrollbar2.h ├── voice_gamemgr.cpp ├── vgui_checkbutton2.cpp ├── vgui_checkbutton2.h ├── vgui_scrollbar2.cpp ├── voice_vgui_tweakdlg.h ├── voice_vgui_tweakdlg.cpp ├── vgui_defaultinputsignal.h ├── simple_checksum.h └── steam_util.h ├── projects ├── vs2019 │ ├── .gitignore │ ├── makels.vcxproj.filters │ ├── projects.sln │ ├── procinfo.vcxproj.filters │ └── mkmovie.vcxproj.filters └── readme.txt ├── network └── Delta.txt ├── public ├── cl_dll │ └── IGameClientExports.h └── archtypes.h ├── .gitattributes ├── game └── ricochet │ └── ricochet.fgd └── LICENSE /utils/qcsg/source.p0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/qcsg/source.p1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/qcsg/source.p2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /linux/libSDL2.so: -------------------------------------------------------------------------------- 1 | libSDL2-2.0.so.0 -------------------------------------------------------------------------------- /linux/libSDL2.dylib: -------------------------------------------------------------------------------- 1 | libSDL2-2.0.0.dylib -------------------------------------------------------------------------------- /filecopy.bat: -------------------------------------------------------------------------------- 1 | rem @echo off 2 | rem echo %~f2 3 | p4 edit %~f2 4 | @copy %1 %~f2 5 | -------------------------------------------------------------------------------- /linux/vgui.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/linux/vgui.so -------------------------------------------------------------------------------- /common/nowin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/common/nowin.h -------------------------------------------------------------------------------- /engine/edict.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/engine/edict.h -------------------------------------------------------------------------------- /common/com_model.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/common/com_model.h -------------------------------------------------------------------------------- /common/dll_state.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/common/dll_state.h -------------------------------------------------------------------------------- /common/interface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/common/interface.h -------------------------------------------------------------------------------- /common/net_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/common/net_api.h -------------------------------------------------------------------------------- /common/interface.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/common/interface.cpp -------------------------------------------------------------------------------- /common/ivoicetweak.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/common/ivoicetweak.h -------------------------------------------------------------------------------- /common/screenfade.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/common/screenfade.h -------------------------------------------------------------------------------- /external/SDL2/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-0:aaaaaaaaaaah" 2 | #define SDL_REVISION_NUMBER 0 3 | -------------------------------------------------------------------------------- /lib/public/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/lib/public/SDL2.lib -------------------------------------------------------------------------------- /ricochet/dlls/mp.def: -------------------------------------------------------------------------------- 1 | LIBRARY mp 2 | EXPORTS 3 | GiveFnptrsToDll @1 4 | SECTIONS 5 | .data READ WRITE 6 | -------------------------------------------------------------------------------- /utils/light/light.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/light/light.c -------------------------------------------------------------------------------- /utils/light/light.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/light/light.h -------------------------------------------------------------------------------- /utils/light/ltface.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/light/ltface.c -------------------------------------------------------------------------------- /utils/light/trace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/light/trace.c -------------------------------------------------------------------------------- /common/director_cmds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/common/director_cmds.h -------------------------------------------------------------------------------- /game_shared/GameEvent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/GameEvent.h -------------------------------------------------------------------------------- /game_shared/bot/bot.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/bot/bot.cpp -------------------------------------------------------------------------------- /game_shared/vgui_grid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_grid.h -------------------------------------------------------------------------------- /linux/libSDL2-2.0.so.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/linux/libSDL2-2.0.so.0 -------------------------------------------------------------------------------- /linux/release/vgui.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/linux/release/vgui.so -------------------------------------------------------------------------------- /utils/qlumpy/qlumpy.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/qlumpy/qlumpy.doc -------------------------------------------------------------------------------- /game_shared/vgui_grid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_grid.cpp -------------------------------------------------------------------------------- /linux/libSDL2-2.0.0.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/linux/libSDL2-2.0.0.dylib -------------------------------------------------------------------------------- /linux/release/vgui.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/linux/release/vgui.dylib -------------------------------------------------------------------------------- /utils/procinfo/procinfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/procinfo/procinfo.h -------------------------------------------------------------------------------- /utils/smdlexp/smdlexp.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/smdlexp/smdlexp.rc -------------------------------------------------------------------------------- /utils/sprgen/s_bubble.spr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/sprgen/s_bubble.spr -------------------------------------------------------------------------------- /utils/sprgen/s_explod.spr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/sprgen/s_explod.spr -------------------------------------------------------------------------------- /utils/sprgen/s_light.spr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/sprgen/s_light.spr -------------------------------------------------------------------------------- /utils/vgui/include/VGUI.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI.h -------------------------------------------------------------------------------- /game_shared/bot/bot_util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/bot/bot_util.cpp -------------------------------------------------------------------------------- /game_shared/bot/bot_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/bot/bot_util.h -------------------------------------------------------------------------------- /game_shared/vgui_helpers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_helpers.cpp -------------------------------------------------------------------------------- /game_shared/vgui_helpers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_helpers.h -------------------------------------------------------------------------------- /game_shared/vgui_listbox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_listbox.cpp -------------------------------------------------------------------------------- /game_shared/vgui_listbox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_listbox.h -------------------------------------------------------------------------------- /game_shared/vgui_loadtga.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_loadtga.cpp -------------------------------------------------------------------------------- /game_shared/vgui_loadtga.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_loadtga.h -------------------------------------------------------------------------------- /game_shared/vgui_slider2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_slider2.cpp -------------------------------------------------------------------------------- /game_shared/vgui_slider2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_slider2.h -------------------------------------------------------------------------------- /game_shared/voice_banmgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/voice_banmgr.cpp -------------------------------------------------------------------------------- /game_shared/voice_banmgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/voice_banmgr.h -------------------------------------------------------------------------------- /game_shared/voice_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/voice_common.h -------------------------------------------------------------------------------- /game_shared/voice_gamemgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/voice_gamemgr.h -------------------------------------------------------------------------------- /game_shared/voice_status.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/voice_status.h -------------------------------------------------------------------------------- /lib/public/game_controls.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/lib/public/game_controls.lib -------------------------------------------------------------------------------- /linux/libSDL2-2.0.so.0.dbg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/linux/libSDL2-2.0.so.0.dbg -------------------------------------------------------------------------------- /game_shared/bot/bot_manager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/bot/bot_manager.h -------------------------------------------------------------------------------- /game_shared/bot/bot_profile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/bot/bot_profile.h -------------------------------------------------------------------------------- /game_shared/vgui_scrollbar2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_scrollbar2.h -------------------------------------------------------------------------------- /game_shared/voice_gamemgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/voice_gamemgr.cpp -------------------------------------------------------------------------------- /ricochet/cl_dll/voice_status.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/ricochet/cl_dll/voice_status.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_App.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_App.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Dar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Dar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Font.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Font.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Menu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Menu.h -------------------------------------------------------------------------------- /game_shared/bot/bot_constants.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/bot/bot_constants.h -------------------------------------------------------------------------------- /game_shared/bot/bot_manager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/bot/bot_manager.cpp -------------------------------------------------------------------------------- /game_shared/bot/bot_profile.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/bot/bot_profile.cpp -------------------------------------------------------------------------------- /game_shared/vgui_checkbutton2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_checkbutton2.cpp -------------------------------------------------------------------------------- /game_shared/vgui_checkbutton2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_checkbutton2.h -------------------------------------------------------------------------------- /game_shared/vgui_scrollbar2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_scrollbar2.cpp -------------------------------------------------------------------------------- /game_shared/voice_vgui_tweakdlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/voice_vgui_tweakdlg.h -------------------------------------------------------------------------------- /projects/vs2019/.gitignore: -------------------------------------------------------------------------------- 1 | # ignore uneeded files and folders: 2 | Debug/ 3 | Release/ 4 | ipch/ 5 | *.sdf 6 | *.suo 7 | *.user 8 | -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Bitmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Bitmap.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Border.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Border.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Button.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Button.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Color.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Color.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Cursor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Cursor.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Desktop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Desktop.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Frame.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Frame.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Image.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Image.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_KeyCode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_KeyCode.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Label.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Label.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Layout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Layout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MiniApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_MiniApp.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Panel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Panel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Point.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Point.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Scheme.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Scheme.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Slider.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Slider.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_String.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_String.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Surface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_Surface.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TaskBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_TaskBar.h -------------------------------------------------------------------------------- /utils/vgui/lib/win32_vc6/vgui.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/lib/win32_vc6/vgui.lib -------------------------------------------------------------------------------- /game_shared/voice_vgui_tweakdlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/voice_vgui_tweakdlg.cpp -------------------------------------------------------------------------------- /network/Delta.txt: -------------------------------------------------------------------------------- 1 | Place delta.lst in the valve\ folder ( or a customized copy can be placed in your game directory's folder ) 2 | 3 | -------------------------------------------------------------------------------- /public/cl_dll/IGameClientExports.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/public/cl_dll/IGameClientExports.h -------------------------------------------------------------------------------- /utils/serverctrl/res/serverctrl.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/serverctrl/res/serverctrl.ico -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BitmapTGA.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_BitmapTGA.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ComboKey.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ComboKey.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_EditPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_EditPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_IntLabel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_IntLabel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ListPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ListPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MenuItem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_MenuItem.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MouseCode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_MouseCode.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_PopupMenu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_PopupMenu.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ScrollBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ScrollBar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_SurfaceGL.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_SurfaceGL.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TabPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_TabPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextEntry.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_TextEntry.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextGrid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_TextGrid.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextImage.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_TextImage.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_TextPanel.h -------------------------------------------------------------------------------- /game_shared/vgui_defaultinputsignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/game_shared/vgui_defaultinputsignal.h -------------------------------------------------------------------------------- /utils/qcsg/hulls.txt: -------------------------------------------------------------------------------- 1 | ( 0 0 0 ) ( 0 0 0 ) 2 | ( -16 -16 -24 ) ( 16 16 32 ) 3 | ( -32 -32 -32 ) ( 32 32 32 ) 4 | ( -16 -16 -24 ) ( 16 16 32 ) 5 | -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ActionSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ActionSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BorderLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_BorderLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BorderPair.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_BorderPair.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BuildGroup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_BuildGroup.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ButtonGroup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ButtonGroup.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ChangeSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ChangeSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_CheckButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_CheckButton.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ConfigWizard.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ConfigWizard.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_DesktopIcon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_DesktopIcon.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_EtchedBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_EtchedBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FlowLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_FlowLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FrameSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_FrameSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_GridLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_GridLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_HeaderPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_HeaderPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ImagePanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ImagePanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_InputSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_InputSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_InputStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_InputStream.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_LayoutInfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_LayoutInfo.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_LineBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_LineBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MessageBox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_MessageBox.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ProgressBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ProgressBar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_RadioButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_RadioButton.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_RaisedBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_RaisedBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ScrollPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ScrollPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_StackLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_StackLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_SurfaceBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_SurfaceBase.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TablePanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_TablePanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TickSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_TickSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ToggleButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ToggleButton.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TreeFolder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_TreeFolder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_WizardPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_WizardPanel.h -------------------------------------------------------------------------------- /common/winsani_out.h: -------------------------------------------------------------------------------- 1 | #if _MSC_VER >= 1500 // MSVC++ 9.0 (Visual Studio 2008) 2 | #undef HSPRITE 3 | #pragma pop_macro("ARRAYSIZE") 4 | #endif 5 | -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FocusNavGroup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_FocusNavGroup.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_LoweredBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_LoweredBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MenuSeparator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_MenuSeparator.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_RepaintSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_RepaintSignal.h -------------------------------------------------------------------------------- /utils/procinfo/lib/win32_vc6/procinfo.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/procinfo/lib/win32_vc6/procinfo.lib -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ButtonController.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_ButtonController.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_DataInputStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_DataInputStream.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FileInputStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_FileInputStream.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FocusChangeSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_FocusChangeSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_IntChangeSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/utils/vgui/include/VGUI_IntChangeSignal.h -------------------------------------------------------------------------------- /utils/smdlexp/smdlexp.def: -------------------------------------------------------------------------------- 1 | LIBRARY smdlexp 2 | EXPORTS 3 | LibDescription @1 4 | LibNumberClasses @2 5 | LibClassDesc @3 6 | LibVersion @4 7 | SECTIONS 8 | .data READ WRITE 9 | -------------------------------------------------------------------------------- /utils/common/l3dslib.h: -------------------------------------------------------------------------------- 1 | // 2 | // l3dslib.h: header file for loading triangles from a 3DS triangle file 3 | // 4 | void Load3DSTriangleList (char *filename, triangle_t **pptri, int *numtriangles); 5 | 6 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Force CRLF for Windows files: 2 | *.bat text eol=crlf 3 | *.dsp text eol=crlf 4 | *.dsw text eol=crlf 5 | *.sln text eol=crlf 6 | *.vcxproj text eol=crlf 7 | *.vcxproj.filters text eol=crlf 8 | -------------------------------------------------------------------------------- /common/winsani_in.h: -------------------------------------------------------------------------------- 1 | #if _MSC_VER >= 1500 // MSVC++ 9.0 (Visual Studio 2008) 2 | #pragma push_macro("ARRAYSIZE") 3 | #ifdef ARRAYSIZE 4 | #undef ARRAYSIZE 5 | #endif 6 | #define HSPRITE WINDOWS_HSPRITE 7 | #endif 8 | -------------------------------------------------------------------------------- /linux/libSDL2-2.0.0.dylib.dSYM/Contents/Resources/DWARF/libsdl2-2.0.0.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/ricochet-updated/HEAD/linux/libSDL2-2.0.0.dylib.dSYM/Contents/Resources/DWARF/libsdl2-2.0.0.dylib -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_info.h: -------------------------------------------------------------------------------- 1 | // Physics info string definition 2 | #if !defined( PM_INFOH ) 3 | #define PM_INFOH 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #define MAX_PHYSINFO_STRING 256 9 | 10 | #endif // PM_INFOH 11 | -------------------------------------------------------------------------------- /external/SDL2/SDL_name.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SDLname_h_ 3 | #define _SDLname_h_ 4 | 5 | #if defined(__STDC__) || defined(__cplusplus) 6 | #define NeedFunctionPrototypes 1 7 | #endif 8 | 9 | #define SDL_NAME(X) SDL_##X 10 | 11 | #endif /* _SDLname_h_ */ 12 | -------------------------------------------------------------------------------- /utils/serverctrl/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // serverctrl.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ricochet/cl_dll/Ricochet_JumpPads.h: -------------------------------------------------------------------------------- 1 | #if !defined( RICHOCHET_JUMPADS_H ) 2 | #define RICHOCHET_JUMPADS_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | void Ricochet_CheckJumpPads( struct local_state_s *from, struct local_state_s *to ); 8 | 9 | #endif // RICHOCHET_JUMPADS_H -------------------------------------------------------------------------------- /utils/common/meter.h: -------------------------------------------------------------------------------- 1 | #ifndef _METER_H_ 2 | #define _METER_H_ 3 | 4 | /* 5 | meter.h 6 | 7 | Dorky status bar stuff 8 | */ 9 | 10 | void MeterStart( int max ); 11 | void MeterAdvance( int amt ); 12 | void MeterEnd( void ); 13 | 14 | extern int showmeter; 15 | 16 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/ev_hldm.h: -------------------------------------------------------------------------------- 1 | #if !defined ( EV_HLDMH ) 2 | #define EV_HLDMH 3 | 4 | enum disc_e 5 | { 6 | DISC_IDLE = 0, 7 | DISC_FIDGET, 8 | DISC_PINPULL, 9 | DISC_THROW1, // toss 10 | DISC_THROW2, // medium 11 | DISC_THROW3, // hard 12 | DISC_HOLSTER, 13 | DISC_DRAW 14 | }; 15 | 16 | #endif // EV_HLDMH -------------------------------------------------------------------------------- /ricochet/cl_dll/vgui_int.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_INT_H 3 | #define VGUI_INT_H 4 | 5 | extern "C" 6 | { 7 | void VGui_Startup(); 8 | void VGui_Shutdown(); 9 | 10 | //Only safe to call from inside subclass of Panel::paintBackground 11 | void VGui_ViewportPaintBackground(int extents[4]); 12 | } 13 | 14 | 15 | #endif -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_debug.h: -------------------------------------------------------------------------------- 1 | #ifndef PM_DEBUG_H 2 | #define PM_DEBUG_H 3 | #pragma once 4 | 5 | void PM_ViewEntity( void ); 6 | void PM_DrawBBox(vec3_t mins, vec3_t maxs, vec3_t origin, int pcolor, float life); 7 | void PM_ParticleLine(vec3_t start, vec3_t end, int pcolor, float life, float vert); 8 | void PM_ShowClipBox( void ); 9 | 10 | #endif // PMOVEDBG_H -------------------------------------------------------------------------------- /projects/readme.txt: -------------------------------------------------------------------------------- 1 | Directory Contents 2 | ================== 3 | 4 | vs2010 5 | Contains Visual C++ 2010 Express project and solution files. 6 | Please read readme.txt included in that folder for further instructions. 7 | 8 | 9 | Other notes 10 | =========== 11 | 12 | MSVC++ 6.0 .dsp files can be found in the appropriate folders. 13 | 14 | Linux Makefiles can be found in ../linux/ 15 | -------------------------------------------------------------------------------- /public/archtypes.h: -------------------------------------------------------------------------------- 1 | // 2 | // Word size dependent definitions 3 | // DAL 1/03 4 | // 5 | #ifndef ARCHTYPES_H 6 | #define ARCHTYPES_H 7 | 8 | #include "steam/steamtypes.h" 9 | 10 | #ifndef _WIN32 11 | #define MAX_PATH PATH_MAX 12 | #include 13 | #include 14 | #include 15 | #include 16 | #define _S_IREAD S_IREAD 17 | #define _S_IWRITE S_IWRITE 18 | typedef long unsigned int ulong; 19 | #endif 20 | 21 | #endif // ARCHTYPES_H 22 | -------------------------------------------------------------------------------- /utils/serverctrl/res/serverctrl.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // SERVERCTRL.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /utils/qbsp2/cull.c: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | // cull.c 12 | 13 | #include "bsp5.h" 14 | 15 | /* 16 | 17 | removes unused planes and nodes 18 | 19 | */ 20 | 21 | /* 22 | ============= 23 | CullStuff 24 | ============= 25 | */ 26 | void CullStuff (void) 27 | { 28 | } 29 | -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_materials.h: -------------------------------------------------------------------------------- 1 | #if !defined( PM_MATERIALSH ) 2 | #define PM_MATERIALSH 3 | #pragma once 4 | 5 | #define CBTEXTURENAMEMAX 13 // only load first n chars of name 6 | 7 | #define CHAR_TEX_CONCRETE 'C' // texture types 8 | #define CHAR_TEX_METAL 'M' 9 | #define CHAR_TEX_DIRT 'D' 10 | #define CHAR_TEX_VENT 'V' 11 | #define CHAR_TEX_GRATE 'G' 12 | #define CHAR_TEX_TILE 'T' 13 | #define CHAR_TEX_SLOSH 'S' 14 | #define CHAR_TEX_WOOD 'W' 15 | #define CHAR_TEX_COMPUTER 'P' 16 | #define CHAR_TEX_GLASS 'Y' 17 | #define CHAR_TEX_FLESH 'F' 18 | 19 | #endif // !PM_MATERIALSH -------------------------------------------------------------------------------- /utils/common/trilib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | // 12 | // trilib.h: header file for loading triangles from an Alias triangle file 13 | // 14 | #define MAXTRIANGLES 2048 15 | 16 | typedef struct { 17 | vec3_t verts[3]; 18 | } triangle_t; 19 | 20 | void LoadTriangleList (char *filename, triangle_t **pptri, int *numtriangles); 21 | 22 | -------------------------------------------------------------------------------- /utils/common/meter.c: -------------------------------------------------------------------------------- 1 | /* 2 | meter.c 3 | 4 | Implements a dorky progess meter 5 | */ 6 | 7 | int showmeter = 0; 8 | static int meter_cur, meter_max; 9 | 10 | void MeterStart( int max ) 11 | { 12 | meter_cur = 0; 13 | meter_max = max; 14 | } 15 | 16 | 17 | void MeterAdvance( int amt ) 18 | { 19 | float pct; 20 | 21 | meter_cur += amt; 22 | 23 | if( showmeter ) 24 | { 25 | pct = ( (float) meter_cur / (float) meter_max ) * 100.0; 26 | printf( "\r%d/%d (%0.2f%%) ", meter_cur, meter_max, pct ); 27 | } 28 | } 29 | 30 | 31 | void MeterEnd( void ) 32 | { 33 | printf( "\n" ); 34 | } 35 | -------------------------------------------------------------------------------- /utils/qbsp2/qbsp2.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "qbsp2"=.\qbsp2.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /utils/qlumpy/qlumpy.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | #include "cmdlib.h" 12 | #include "scriplib.h" 13 | #include "lbmlib.h" 14 | #include "wadlib.h" 15 | 16 | 17 | extern byte *byteimage, *lbmpalette; 18 | extern int byteimagewidth, byteimageheight; 19 | 20 | #define SCRN(x,y) (*(byteimage+(y)*byteimagewidth+x)) 21 | 22 | extern byte *lump_p; 23 | extern byte *lumpbuffer; 24 | 25 | extern char lumpname[]; 26 | 27 | -------------------------------------------------------------------------------- /utils/makefont/makefont.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "makefont"=.\makefont.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /utils/mdlviewer/mdlviewer.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "mdlviewer"=".\mdlviewer.dsp" - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /ricochet/dlls/maprules.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef MAPRULES_H 17 | #define MAPRULES_H 18 | 19 | 20 | 21 | #endif // MAPRULES_H 22 | 23 | -------------------------------------------------------------------------------- /utils/common/movie.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | #ifndef _MOVIE_H_ 12 | #define _MOVIE_H_ 13 | 14 | /* 15 | movie.h 16 | 17 | definitions and such for dumping screen shots to make a movie 18 | */ 19 | 20 | typedef struct 21 | { 22 | unsigned long tag; 23 | unsigned long size; 24 | } movieblockheader_t; 25 | 26 | 27 | typedef struct 28 | { 29 | short width; 30 | short height; 31 | short depth; 32 | } movieframe_t; 33 | 34 | 35 | 36 | #endif _MOVIE_H_ -------------------------------------------------------------------------------- /ricochet/cl_dll/vgui_ConsolePanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef CONSOLEPANEL_H 3 | #define CONSOLEPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | class TextGrid; 11 | class TextEntry; 12 | } 13 | 14 | 15 | class ConsolePanel : public vgui::Panel 16 | { 17 | private: 18 | vgui::TextGrid* _textGrid; 19 | vgui::TextEntry* _textEntry; 20 | public: 21 | ConsolePanel(int x,int y,int wide,int tall); 22 | public: 23 | virtual void setSize(int wide,int tall); 24 | virtual int print(const char* text); 25 | virtual int vprintf(const char* format,va_list argList); 26 | virtual int printf(const char* format,...); 27 | virtual void doExecCommand(); 28 | }; 29 | 30 | 31 | 32 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/wrect.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( WRECTH ) 16 | #define WRECTH 17 | 18 | typedef struct rect_s 19 | { 20 | int left, right, top, bottom; 21 | } wrect_t; 22 | 23 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/view.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined ( VIEWH ) 16 | #define VIEWH 17 | #pragma once 18 | 19 | void V_StartPitchDrift( void ); 20 | void V_StopPitchDrift( void ); 21 | 22 | #endif // !VIEWH -------------------------------------------------------------------------------- /utils/smdlexp/smexprc.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by smdlexp.rc 4 | // 5 | #define IDD_SMDLEXP_UI 101 6 | #define IDD_EXPORTOPTIONS 101 7 | #define IDC_CHECK_SKELETAL 1000 8 | #define IDC_CHECK_DEFORM 1001 9 | #define IDC_CHECK_REFFRAME 1002 10 | #define IDC_CHECK_PHYSIQUE 1003 11 | 12 | // Next default values for new objects 13 | // 14 | #ifdef APSTUDIO_INVOKED 15 | #ifndef APSTUDIO_READONLY_SYMBOLS 16 | #define _APS_NEXT_RESOURCE_VALUE 102 17 | #define _APS_NEXT_COMMAND_VALUE 40001 18 | #define _APS_NEXT_CONTROL_VALUE 1006 19 | #define _APS_NEXT_SYMED_VALUE 101 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /game_shared/simple_checksum.h: -------------------------------------------------------------------------------- 1 | // simple_checksum.h 2 | // Functions to compute a simple checksum value for a file 3 | // Author: Michael S. Booth, Turtle Rock Studios (www.turtlerockstudios.com), September 2003 4 | 5 | #ifndef _SIMPLE_CHECKSUM_H_ 6 | #define _SIMPLE_CHECKSUM_H_ 7 | 8 | /** 9 | * Compute a simple checksum for the given data. 10 | * Each byte in the data is multiplied by its position to track re-ordering changes 11 | */ 12 | inline unsigned int ComputeSimpleChecksum( const unsigned char *dataPointer, int dataLength ) 13 | { 14 | unsigned int checksum = 0; 15 | 16 | for( int i=1; i<=dataLength; ++i ) 17 | { 18 | checksum += (*dataPointer) * i; 19 | ++dataPointer; 20 | } 21 | 22 | return checksum; 23 | } 24 | 25 | #endif // _SIMPLE_CHECKSUM_H_ 26 | -------------------------------------------------------------------------------- /linux/libSDL2-2.0.0.dylib.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.libSDL2-2.0.0.dylib 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /common/enums.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 2009, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef ENUMS_H 17 | #define ENUMS_H 18 | 19 | typedef enum netsrc_s 20 | { 21 | NS_CLIENT, 22 | NS_SERVER, 23 | NS_MULTICAST // xxxMO 24 | } netsrc_t; 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /ricochet/cl_dll/in_defs.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( IN_DEFSH ) 16 | #define IN_DEFSH 17 | #pragma once 18 | 19 | // up / down 20 | #define PITCH 0 21 | // left / right 22 | #define YAW 1 23 | // fall over 24 | #define ROLL 2 25 | 26 | 27 | #endif -------------------------------------------------------------------------------- /ricochet/dlls/talkmonster.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef TALKMONSTER_H 17 | #define TALKMONSTER_H 18 | 19 | class CTalkMonster : public CBaseMonster 20 | { 21 | public: 22 | static float g_talkWaitTime; 23 | 24 | }; 25 | 26 | #endif //TALKMONSTER_H 27 | -------------------------------------------------------------------------------- /utils/smdlexp/smdlexp.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "smdlexp"=.\smdlexp.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | begin source code control 11 | "$/SDKSrc/Tools/utils/smdlexp", GVGBAAAA 12 | . 13 | end source code control 14 | }}} 15 | 16 | Package=<4> 17 | {{{ 18 | }}} 19 | 20 | ############################################################################### 21 | 22 | Global: 23 | 24 | Package=<5> 25 | {{{ 26 | }}} 27 | 28 | Package=<3> 29 | {{{ 30 | }}} 31 | 32 | ############################################################################### 33 | 34 | -------------------------------------------------------------------------------- /utils/serverctrl/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by serverctrl.rc 4 | // 5 | #define IDD_SERVERCTRL_DIALOG 102 6 | #define IDR_MAINFRAME 128 7 | #define IDC_EDIT_COMMANDS 1000 8 | #define IDC_BTN_EXECUTE 1001 9 | #define IDC_BTN_START 1003 10 | #define IDC_BTN_GET 1004 11 | #define IDC_EDIT_CONSOLE 1005 12 | 13 | // Next default values for new objects 14 | // 15 | #ifdef APSTUDIO_INVOKED 16 | #ifndef APSTUDIO_READONLY_SYMBOLS 17 | #define _APS_NEXT_RESOURCE_VALUE 129 18 | #define _APS_NEXT_COMMAND_VALUE 32771 19 | #define _APS_NEXT_CONTROL_VALUE 1006 20 | #define _APS_NEXT_SYMED_VALUE 101 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /utils/common/scriplib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | // scriplib.h 12 | 13 | #ifndef __CMDLIB__ 14 | #include "cmdlib.h" 15 | #endif 16 | 17 | #define MAXTOKEN 512 18 | 19 | extern char token[MAXTOKEN]; 20 | extern char *scriptbuffer,*script_p,*scriptend_p; 21 | extern int grabbed; 22 | extern int scriptline; 23 | extern qboolean endofscript; 24 | 25 | 26 | void LoadScriptFile (char *filename); 27 | void ParseFromMemory (char *buffer, int size); 28 | 29 | qboolean GetToken (qboolean crossline); 30 | void UnGetToken (void); 31 | qboolean TokenAvailable (void); 32 | 33 | 34 | -------------------------------------------------------------------------------- /ricochet/cl_dll/kbutton.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( KBUTTONH ) 16 | #define KBUTTONH 17 | #pragma once 18 | 19 | typedef struct kbutton_s 20 | { 21 | int down[2]; // key nums holding it down 22 | int state; // low bit is down state 23 | } kbutton_t; 24 | 25 | #endif // !KBUTTONH -------------------------------------------------------------------------------- /ricochet/cl_dll/demo.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( DEMOH ) 16 | #define DEMOH 17 | #pragma once 18 | 19 | // Types of demo messages we can write/parse 20 | enum 21 | { 22 | TYPE_USER = 0, 23 | }; 24 | 25 | void Demo_WriteBuffer( int type, int size, unsigned char *buffer ); 26 | 27 | #endif -------------------------------------------------------------------------------- /ricochet/dlls/disc_weapon.h: -------------------------------------------------------------------------------- 1 | #if !defined( DISC_WEAPON_H ) 2 | #define DISC_WEAPON_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | class CDisc; 8 | class CDiscWeapon : public CBasePlayerWeapon 9 | { 10 | public: 11 | void Spawn( void ); 12 | void Precache( void ); 13 | int iItemSlot( void ) { return 5; } 14 | int GetItemInfo(ItemInfo *p); 15 | 16 | int AddDuplicate( CBasePlayerItem *pOriginal ); 17 | CDisc *FireDisc( bool bDecapitator ); 18 | void PrimaryAttack( void ); 19 | void SecondaryAttack( void ); 20 | BOOL Deploy( void ); 21 | BOOL CanHolster( void ); 22 | void Holster( int skiplocal = 0 ); 23 | void WeaponIdle( void ); 24 | 25 | BOOL UseDecrement( void ) { return TRUE; }; 26 | 27 | int m_iSpriteTexture; 28 | int m_iFastShotDiscs; 29 | private: 30 | unsigned short m_usFireDisc; 31 | }; 32 | 33 | #endif // DISC_WEAPON_H 34 | -------------------------------------------------------------------------------- /ricochet/cl_dll/hl/hl_objects.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #include "../hud.h" 16 | #include "../cl_util.h" 17 | #include "../demo.h" 18 | 19 | /* 20 | ===================== 21 | Game_AddObjects 22 | 23 | Add game specific, client-side objects here 24 | ===================== 25 | */ 26 | void Game_AddObjects( void ) 27 | { 28 | } -------------------------------------------------------------------------------- /ricochet/cl_dll/hud_iface.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( HUD_IFACEH ) 16 | #define HUD_IFACEH 17 | #pragma once 18 | 19 | typedef int (*pfnUserMsgHook)(const char *pszName, int iSize, void *pbuf); 20 | #include "wrect.h" 21 | #include "../engine/cdll_int.h" 22 | extern cl_enginefunc_t gEngfuncs; 23 | 24 | #endif -------------------------------------------------------------------------------- /utils/common/threads.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | extern int numthreads; 12 | 13 | void ThreadSetDefault (void); 14 | int GetThreadWork (void); 15 | void RunThreadsOnIndividual (int workcnt, qboolean showpacifier, void(*func)(int)); 16 | void RunThreadsOn (int workcnt, qboolean showpacifier, void(*func)(int)); 17 | void ThreadLock (void); 18 | void ThreadUnlock (void); 19 | 20 | #ifndef NO_THREAD_NAMES 21 | #define RunThreadsOn(n,p,f) { if (p) printf("%-20s ", #f ":"); RunThreadsOn(n,p,f); } 22 | #define RunThreadsOnIndividual(n,p,f) { if (p) printf("%-20s ", #f ":"); RunThreadsOnIndividual(n,p,f); } 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /ricochet/dlls/spectator.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // Spectator.h 16 | 17 | class CBaseSpectator : public CBaseEntity 18 | { 19 | public: 20 | void Spawn(); 21 | void SpectatorConnect(void); 22 | void SpectatorDisconnect(void); 23 | void SpectatorThink(void); 24 | 25 | private: 26 | void SpectatorImpulseCommand(void); 27 | }; 28 | -------------------------------------------------------------------------------- /common/studio_event.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( STUDIO_EVENTH ) 16 | #define STUDIO_EVENTH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef struct mstudioevent_s 22 | { 23 | int frame; 24 | int event; 25 | int type; 26 | char options[64]; 27 | } mstudioevent_t; 28 | 29 | #endif // STUDIO_EVENTH 30 | -------------------------------------------------------------------------------- /ricochet/cl_dll/events.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #include "hud.h" 16 | #include "cl_util.h" 17 | 18 | void Game_HookEvents( void ); 19 | 20 | /* 21 | =================== 22 | EV_HookEvents 23 | 24 | See if game specific code wants to hook any events. 25 | =================== 26 | */ 27 | void EV_HookEvents( void ) 28 | { 29 | Game_HookEvents(); 30 | } -------------------------------------------------------------------------------- /common/entity_types.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // entity_types.h 16 | #if !defined( ENTITY_TYPESH ) 17 | #define ENTITY_TYPESH 18 | 19 | #define ET_NORMAL 0 20 | #define ET_PLAYER 1 21 | #define ET_TEMPENTITY 2 22 | #define ET_BEAM 3 23 | // BMODEL or SPRITE that was split across BSP nodes 24 | #define ET_FRAGMENTED 4 25 | 26 | #endif // !ENTITY_TYPESH 27 | -------------------------------------------------------------------------------- /external/SDL2/merge_sdl2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | p4 integ -i -d -Dt //steam/rel/client/src/external/SDL2/... //ValveGames/main/GoldSrc/external/SDL2/... 4 | p4 integ -i -d -Dt //steam/rel/client/client/osx32/libsdl... //ValveGames/rel/goldsource/hl1/game/libsdl... 5 | p4 integ -i -d -Dt //steam/rel/client/client/osx32/libsdl... //ValveGames/main/GoldSrc/linux/libsdl... 6 | p4 integ -i -d -Dt //steam/rel/client/client/ubuntu12_32/libsdl... //ValveGames/rel/goldsource/hl1/game/libsdl... 7 | p4 integ -i -d -Dt //steam/rel/client/client/ubuntu12_32/libsdl... //ValveGames/main/GoldSrc/linux/libsdl... 8 | 9 | p4 integ -i -d -Dt //steam/rel/client/client/sdl... //ValveGames/rel/goldsource/hl1/game/sdl... 10 | p4 resolve -am //ValveGames/main/GoldSrc/external/SDL2/... 11 | p4 resolve -at //ValveGames/rel/goldsource/hl1/game/sdl... //ValveGames/rel/goldsource/hl1/game/libsdl... //ValveGames/main/GoldSrc/linux/libsdl... 12 | -------------------------------------------------------------------------------- /utils/qcsg/qcsg.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "qcsg"=.\qcsg.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | begin source code control 11 | "$/SDKSrc/Tools/utils/qcsg", XUGBAAAA 12 | . 13 | end source code control 14 | }}} 15 | 16 | Package=<4> 17 | {{{ 18 | }}} 19 | 20 | ############################################################################### 21 | 22 | Global: 23 | 24 | Package=<5> 25 | {{{ 26 | begin source code control 27 | "$/SDKSrc/Tools/utils/qcsg", XUGBAAAA 28 | . 29 | end source code control 30 | }}} 31 | 32 | Package=<3> 33 | {{{ 34 | }}} 35 | 36 | ############################################################################### 37 | 38 | -------------------------------------------------------------------------------- /utils/qrad/qrad.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "qrad"=.\qrad.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | begin source code control 11 | "$/SDKSrc/Tools/utils/qrad", FVGBAAAA 12 | . 13 | end source code control 14 | }}} 15 | 16 | Package=<4> 17 | {{{ 18 | }}} 19 | 20 | ############################################################################### 21 | 22 | Global: 23 | 24 | Package=<5> 25 | {{{ 26 | begin source code control 27 | "$/SDKSrc/Tools/utils/qrad", FVGBAAAA 28 | . 29 | end source code control 30 | }}} 31 | 32 | Package=<3> 33 | {{{ 34 | }}} 35 | 36 | ############################################################################### 37 | 38 | -------------------------------------------------------------------------------- /utils/visx2/vis.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "vis"=.\vis.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | begin source code control 11 | "$/SDKSrc/Tools/utils/visx2", KVGBAAAA 12 | . 13 | end source code control 14 | }}} 15 | 16 | Package=<4> 17 | {{{ 18 | }}} 19 | 20 | ############################################################################### 21 | 22 | Global: 23 | 24 | Package=<5> 25 | {{{ 26 | begin source code control 27 | "$/SDKSrc/Tools/utils/visx2", KVGBAAAA 28 | . 29 | end source code control 30 | }}} 31 | 32 | Package=<3> 33 | {{{ 34 | }}} 35 | 36 | ############################################################################### 37 | 38 | -------------------------------------------------------------------------------- /utils/makels/makels.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "makels"=.\makels.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | begin source code control 11 | "$/SDKSrc/Tools/utils/makels", OUGBAAAA 12 | . 13 | end source code control 14 | }}} 15 | 16 | Package=<4> 17 | {{{ 18 | }}} 19 | 20 | ############################################################################### 21 | 22 | Global: 23 | 24 | Package=<5> 25 | {{{ 26 | begin source code control 27 | "$/SDKSrc/Tools/utils/makels", OUGBAAAA 28 | . 29 | end source code control 30 | }}} 31 | 32 | Package=<3> 33 | {{{ 34 | }}} 35 | 36 | ############################################################################### 37 | 38 | -------------------------------------------------------------------------------- /utils/qlumpy/qlumpy.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "qlumpy"=.\qlumpy.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | begin source code control 11 | "$/SDKSrc/Tools/utils/qlumpy", BVGBAAAA 12 | . 13 | end source code control 14 | }}} 15 | 16 | Package=<4> 17 | {{{ 18 | }}} 19 | 20 | ############################################################################### 21 | 22 | Global: 23 | 24 | Package=<5> 25 | {{{ 26 | begin source code control 27 | "$/SDKSrc/Tools/utils/qlumpy", BVGBAAAA 28 | . 29 | end source code control 30 | }}} 31 | 32 | Package=<3> 33 | {{{ 34 | }}} 35 | 36 | ############################################################################### 37 | 38 | -------------------------------------------------------------------------------- /utils/sprgen/sprgen.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "sprgen"=.\sprgen.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | begin source code control 11 | "$/SDKSrc/Tools/utils/sprgen", HVGBAAAA 12 | . 13 | end source code control 14 | }}} 15 | 16 | Package=<4> 17 | {{{ 18 | }}} 19 | 20 | ############################################################################### 21 | 22 | Global: 23 | 24 | Package=<5> 25 | {{{ 26 | begin source code control 27 | "$/SDKSrc/Tools/utils/sprgen", HVGBAAAA 28 | . 29 | end source code control 30 | }}} 31 | 32 | Package=<3> 33 | {{{ 34 | }}} 35 | 36 | ############################################################################### 37 | 38 | -------------------------------------------------------------------------------- /utils/bspinfo/bspinfo.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "bspinfo"=.\bspinfo.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | begin source code control 11 | "$/SDKSrc/Tools/utils/bspinfo", HUGBAAAA 12 | . 13 | end source code control 14 | }}} 15 | 16 | Package=<4> 17 | {{{ 18 | }}} 19 | 20 | ############################################################################### 21 | 22 | Global: 23 | 24 | Package=<5> 25 | {{{ 26 | begin source code control 27 | "$/SDKSrc/Tools/utils/bspinfo", HUGBAAAA 28 | . 29 | end source code control 30 | }}} 31 | 32 | Package=<3> 33 | {{{ 34 | }}} 35 | 36 | ############################################################################### 37 | 38 | -------------------------------------------------------------------------------- /ricochet/cl_dll/Ricochet_BSPFile.h: -------------------------------------------------------------------------------- 1 | #if !defined( RICOCHET_BSPFILE_H ) 2 | #define RICOCHET_BSPFILE_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | // MINI-version of BSPFILE.H to support Ricochet entity lump extraction stuff. 8 | 9 | #define BSPVERSION 30 10 | 11 | typedef struct 12 | { 13 | int fileofs, filelen; 14 | } lump_t; 15 | 16 | #define LUMP_ENTITIES 0 17 | #define LUMP_PLANES 1 18 | #define LUMP_TEXTURES 2 19 | #define LUMP_VERTEXES 3 20 | #define LUMP_VISIBILITY 4 21 | #define LUMP_NODES 5 22 | #define LUMP_TEXINFO 6 23 | #define LUMP_FACES 7 24 | #define LUMP_LIGHTING 8 25 | #define LUMP_CLIPNODES 9 26 | #define LUMP_LEAFS 10 27 | #define LUMP_MARKSURFACES 11 28 | #define LUMP_EDGES 12 29 | #define LUMP_SURFEDGES 13 30 | #define LUMP_MODELS 14 31 | 32 | #define HEADER_LUMPS 15 33 | 34 | typedef struct 35 | { 36 | int version; 37 | lump_t lumps[HEADER_LUMPS]; 38 | } dheader_t; 39 | 40 | 41 | #endif // RICOCHET_BSPFILE_H -------------------------------------------------------------------------------- /ricochet/dlls/items.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef ITEMS_H 16 | #define ITEMS_H 17 | 18 | 19 | class CItem : public CBaseEntity 20 | { 21 | public: 22 | void Spawn( void ); 23 | CBaseEntity* Respawn( void ); 24 | void EXPORT ItemTouch( CBaseEntity *pOther ); 25 | void EXPORT Materialize( void ); 26 | virtual BOOL MyTouch( CBasePlayer *pPlayer ) { return FALSE; }; 27 | }; 28 | 29 | #endif // ITEMS_H 30 | -------------------------------------------------------------------------------- /utils/studiomdl/studiomdl.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "studiomdl"=.\studiomdl.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | begin source code control 11 | "$/SDKSrc/Tools/utils/studiomdl", IVGBAAAA 12 | . 13 | end source code control 14 | }}} 15 | 16 | Package=<4> 17 | {{{ 18 | }}} 19 | 20 | ############################################################################### 21 | 22 | Global: 23 | 24 | Package=<5> 25 | {{{ 26 | begin source code control 27 | "$/SDKSrc/Tools/utils/studiomdl", IVGBAAAA 28 | . 29 | end source code control 30 | }}} 31 | 32 | Package=<3> 33 | {{{ 34 | }}} 35 | 36 | ############################################################################### 37 | 38 | -------------------------------------------------------------------------------- /common/demo_api.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined ( DEMO_APIH ) 16 | #define DEMO_APIH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef struct demo_api_s 22 | { 23 | int ( *IsRecording ) ( void ); 24 | int ( *IsPlayingback ) ( void ); 25 | int ( *IsTimeDemo ) ( void ); 26 | void ( *WriteBuffer ) ( int size, unsigned char *buffer ); 27 | } demo_api_t; 28 | 29 | extern demo_api_t demoapi; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /utils/qbsp2/nodraw.c: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | #include "bsp5.h" 12 | 13 | void Draw_ClearBounds (void) 14 | { 15 | } 16 | 17 | void Draw_AddToBounds (vec3_t v) 18 | { 19 | } 20 | 21 | void Draw_DrawFace (face_t *f) 22 | { 23 | } 24 | 25 | void Draw_ClearWindow (void) 26 | { 27 | } 28 | 29 | void Draw_SetRed (void) 30 | { 31 | } 32 | 33 | void Draw_SetGrey (void) 34 | { 35 | } 36 | 37 | void Draw_SetBlack (void) 38 | { 39 | } 40 | 41 | void DrawPoint (vec3_t v) 42 | { 43 | } 44 | 45 | void DrawLeaf (node_t *l, int color) 46 | { 47 | } 48 | 49 | void DrawWinding (winding_t *w) 50 | { 51 | } 52 | 53 | void DrawTri (vec3_t p1, vec3_t p2, vec3_t p3) 54 | { 55 | } 56 | 57 | void DrawPortal (portal_t *portal) 58 | { 59 | } 60 | -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_shared.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | // 17 | // pm_shared.h 18 | // 19 | #if !defined( PM_SHAREDH ) 20 | #define PM_SHAREDH 21 | #pragma once 22 | 23 | void PM_Init( struct playermove_s *ppmove ); 24 | void PM_Move ( struct playermove_s *ppmove, int server ); 25 | char PM_FindTextureType( char *name ); 26 | 27 | // Spectator flags 28 | #define SPEC_IS_SPECTATOR (1<<0) 29 | #define SPEC_SMOOTH_ANGLES (1<<1) 30 | #define SPEC_SMOOTH_ORIGIN (1<<2) 31 | 32 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/vgui_ServerBrowser.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef ServerBrowser_H 3 | #define ServerBrowser_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | class Button; 10 | class TablePanel; 11 | class HeaderPanel; 12 | } 13 | 14 | class CTransparentPanel; 15 | class CommandButton; 16 | 17 | // Scoreboard positions 18 | #define SB_X_INDENT (20 * ((float)ScreenHeight / 640)) 19 | #define SB_Y_INDENT (20 * ((float)ScreenHeight / 480)) 20 | 21 | class ServerBrowser : public CTransparentPanel 22 | { 23 | private: 24 | HeaderPanel * _headerPanel; 25 | TablePanel* _tablePanel; 26 | 27 | CommandButton* _connectButton; 28 | CommandButton* _refreshButton; 29 | CommandButton* _broadcastRefreshButton; 30 | CommandButton* _stopButton; 31 | CommandButton* _sortButton; 32 | CommandButton* _cancelButton; 33 | 34 | CommandButton* _pingButton; 35 | 36 | public: 37 | ServerBrowser(int x,int y,int wide,int tall); 38 | public: 39 | virtual void setSize(int wide,int tall); 40 | }; 41 | 42 | 43 | 44 | #endif -------------------------------------------------------------------------------- /external/SDL2/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /common/netadr.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // netadr.h 16 | #ifndef NETADR_H 17 | #define NETADR_H 18 | #ifdef _WIN32 19 | #pragma once 20 | #endif 21 | 22 | typedef enum 23 | { 24 | NA_UNUSED, 25 | NA_LOOPBACK, 26 | NA_BROADCAST, 27 | NA_IP, 28 | NA_IPX, 29 | NA_BROADCAST_IPX, 30 | } netadrtype_t; 31 | 32 | typedef struct netadr_s 33 | { 34 | netadrtype_t type; 35 | unsigned char ip[4]; 36 | unsigned char ipx[10]; 37 | unsigned short port; 38 | } netadr_t; 39 | 40 | #endif // NETADR_H 41 | -------------------------------------------------------------------------------- /ricochet/cl_dll/camera.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // Camera.h -- defines and such for a 3rd person camera 16 | // NOTE: must include quakedef.h first 17 | 18 | #ifndef _CAMERA_H_ 19 | #define _CAMEA_H_ 20 | 21 | // pitch, yaw, dist 22 | extern vec3_t cam_ofs; 23 | // Using third person camera 24 | extern int cam_thirdperson; 25 | 26 | void CAM_Init( void ); 27 | void CAM_ClearStates( void ); 28 | void CAM_StartMouseMove(void); 29 | void CAM_EndMouseMove(void); 30 | 31 | #endif // _CAMERA_H_ 32 | -------------------------------------------------------------------------------- /common/dlight.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined ( DLIGHTH ) 16 | #define DLIGHTH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef struct dlight_s 22 | { 23 | vec3_t origin; 24 | float radius; 25 | color24 color; 26 | float die; // stop lighting after this time 27 | float decay; // drop this each second 28 | float minlight; // don't add when contributing less 29 | int key; 30 | qboolean dark; // subtracts light instead of adding 31 | } dlight_t; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /ricochet/dlls/activitymap.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #define _A( a ) { a, #a } 17 | 18 | activity_map_t activity_map[] = 19 | { 20 | _A( ACT_IDLE ), 21 | _A( ACT_HOP ), 22 | 23 | _A( ACT_FALL_FORWARD ), 24 | _A( ACT_FALL_BACKWARD ), 25 | _A( ACT_FALL_LEFT ), 26 | _A( ACT_FALL_RIGHT ), 27 | 28 | _A( ACT_FLINCH_BACK ), 29 | _A( ACT_FLINCH_LEFT ), 30 | _A( ACT_FLINCH_RIGHT ), 31 | _A( ACT_FLINCH_FORWARD ), 32 | 33 | _A( ACT_DIE_HEADSHOT ), 34 | _A( ACT_DIEFORWARD ), 35 | _A( ACT_DIEBACKWARD ), 36 | 0, NULL 37 | }; 38 | -------------------------------------------------------------------------------- /ricochet/dlls/monsterevent.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef MONSTEREVENT_H 16 | #define MONSTEREVENT_H 17 | 18 | typedef struct 19 | { 20 | int event; 21 | char *options; 22 | } MonsterEvent_t; 23 | 24 | #define EVENT_SPECIFIC 0 25 | #define EVENT_SCRIPTED 1000 26 | #define EVENT_SHARED 2000 27 | #define EVENT_CLIENT 5000 28 | 29 | #define MONSTER_EVENT_BODYDROP_LIGHT 2001 30 | #define MONSTER_EVENT_BODYDROP_HEAVY 2002 31 | 32 | #define MONSTER_EVENT_SWISHSOUND 2010 33 | 34 | #endif // MONSTEREVENT_H 35 | -------------------------------------------------------------------------------- /linux/gendbg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | UNAME=`uname` 4 | if [ "$UNAME" == "Darwin" ]; then 5 | p4 edit $1.dSYM/... 6 | dsymutil $1 7 | p4 revert -a $1.dSYM/... 8 | exit 0; 9 | fi 10 | 11 | OBJCOPY=/valve/bin/objcopy 12 | 13 | function usage { 14 | echo "$0 /path/to/input/file [-o /path/to/output/file ]" 15 | echo "" 16 | } 17 | 18 | if [ $# == 0 ]; then 19 | usage 20 | exit 2 21 | fi 22 | 23 | if [ $(basename $1) == $1 ]; then 24 | INFILEDIR=$PWD 25 | else 26 | INFILEDIR=$(cd ${1%/*} && echo $PWD) 27 | fi 28 | INFILE=$(basename $1) 29 | 30 | OUTFILEDIR=$INFILEDIR 31 | OUTFILE=$INFILE.dbg 32 | 33 | while getopts "o:" opt; do 34 | case $opt in 35 | o) 36 | OUTFILEDIR=$(cd ${OPTARG%/*} && echo $PWD) 37 | OUTFILE=$(basename $OPTARG) 38 | ;; 39 | esac 40 | done 41 | 42 | if [ "$OUTFILEDIR" != "$INFILEDIR" ]; then 43 | INFILE=${INFILEDIR}/${INFILE} 44 | OUTFILE=${OUTFILEDIR}/${OUTFILE} 45 | fi 46 | 47 | pushd "$INFILEDIR" 48 | p4 edit "$OUTFILE" 49 | $OBJCOPY "$INFILE" "$OUTFILE" 50 | $OBJCOPY --add-gnu-debuglink="$OUTFILE" "$INFILE" 51 | p4 revert -a "$OUTFILE" 52 | popd 53 | 54 | -------------------------------------------------------------------------------- /utils/serverctrl/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__E2974CAA_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_) 7 | #define AFX_STDAFX_H__E2974CAA_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 14 | 15 | #include // MFC core and standard components 16 | #include // MFC extensions 17 | #include // MFC support for Internet Explorer 4 Common Controls 18 | #ifndef _AFX_NO_AFXCMN_SUPPORT 19 | #include // MFC support for Windows Common Controls 20 | #endif // _AFX_NO_AFXCMN_SUPPORT 21 | 22 | 23 | //{{AFX_INSERT_LOCATION}} 24 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 25 | 26 | #endif // !defined(AFX_STDAFX_H__E2974CAA_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_) 27 | -------------------------------------------------------------------------------- /common/qfont.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( QFONTH ) 16 | #define QFONTH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | // Font stuff 22 | 23 | #define NUM_GLYPHS 256 24 | // does not exist: // #include "basetypes.h" 25 | 26 | typedef struct 27 | { 28 | short startoffset; 29 | short charwidth; 30 | } charinfo; 31 | 32 | typedef struct qfont_s 33 | { 34 | int width, height; 35 | int rowcount; 36 | int rowheight; 37 | charinfo fontinfo[ NUM_GLYPHS ]; 38 | unsigned char data[4]; 39 | } qfont_t; 40 | 41 | #endif // qfont.h 42 | -------------------------------------------------------------------------------- /ricochet/cl_dll/hud_servers.h: -------------------------------------------------------------------------------- 1 | #if !defined( HUD_SERVERSH ) 2 | #define HUD_SERVERSH 3 | #pragma once 4 | 5 | #define NET_CALLBACK /* */ 6 | 7 | // Dispatchers 8 | void NET_CALLBACK ListResponse( struct net_response_s *response ); 9 | void NET_CALLBACK ServerResponse( struct net_response_s *response ); 10 | void NET_CALLBACK PingResponse( struct net_response_s *response ); 11 | void NET_CALLBACK RulesResponse( struct net_response_s *response ); 12 | void NET_CALLBACK PlayersResponse( struct net_response_s *response ); 13 | 14 | void ServersInit( void ); 15 | void ServersShutdown( void ); 16 | void ServersThink( double time ); 17 | void ServersCancel( void ); 18 | 19 | // Get list and get server info from each 20 | void ServersList( void ); 21 | 22 | // Query for IP / IPX LAN servers 23 | void BroadcastServersList( int clearpending ); 24 | 25 | void ServerPing( int server ); 26 | void ServerRules( int server ); 27 | void ServerPlayers( int server ); 28 | 29 | int ServersGetCount( void ); 30 | const char *ServersGetInfo( int server ); 31 | int ServersIsQuerying( void ); 32 | void SortServers( const char *fieldname ); 33 | 34 | #endif // HUD_SERVERSH -------------------------------------------------------------------------------- /utils/bspinfo/bspinfo.c: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | #include "cmdlib.h" 12 | #include "mathlib.h" 13 | #include "bsplib.h" 14 | 15 | void main (int argc, char **argv) 16 | { 17 | int i; 18 | char source[1024]; 19 | int size; 20 | FILE *f; 21 | 22 | printf( "bspinfo.exe v2.1 (%s)\n", __DATE__ ); 23 | printf ("---- bspinfo ----\n" ); 24 | 25 | 26 | if (argc == 1) 27 | Error ("usage: bspinfo bspfile [bspfiles]"); 28 | 29 | for (i=1 ; i 1.0 scale ) 30 | } con_nprint_t; 31 | 32 | void Con_NPrintf( int idx, char *fmt, ... ); 33 | void Con_NXPrintf( struct con_nprint_s *info, char *fmt, ... ); 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /ricochet/cl_dll/studio_util.h: -------------------------------------------------------------------------------- 1 | #if !defined( STUDIO_UTIL_H ) 2 | #define STUDIO_UTIL_H 3 | #if defined( WIN32 ) 4 | #pragma once 5 | #endif 6 | 7 | #ifndef M_PI 8 | #define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h 9 | #endif 10 | 11 | #ifndef PITCH 12 | // MOVEMENT INFO 13 | // up / down 14 | #define PITCH 0 15 | // left / right 16 | #define YAW 1 17 | // fall over 18 | #define ROLL 2 19 | #endif 20 | 21 | #define FDotProduct( a, b ) (fabs((a[0])*(b[0])) + fabs((a[1])*(b[1])) + fabs((a[2])*(b[2]))) 22 | 23 | void AngleMatrix (const float *angles, float (*matrix)[4] ); 24 | int VectorCompare (const float *v1, const float *v2); 25 | void CrossProduct (const float *v1, const float *v2, float *cross); 26 | void VectorTransform (const float *in1, float in2[3][4], float *out); 27 | void ConcatTransforms (float in1[3][4], float in2[3][4], float out[3][4]); 28 | void MatrixCopy( float in[3][4], float out[3][4] ); 29 | void QuaternionMatrix( vec4_t quaternion, float (*matrix)[4] ); 30 | void QuaternionSlerp( vec4_t p, vec4_t q, float t, vec4_t qt ); 31 | void AngleQuaternion( float *angles, vec4_t quaternion ); 32 | 33 | #endif // STUDIO_UTIL_H -------------------------------------------------------------------------------- /ricochet/dlls/doors.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef DOORS_H 16 | #define DOORS_H 17 | 18 | // doors 19 | #define SF_DOOR_ROTATE_Y 0 20 | #define SF_DOOR_START_OPEN 1 21 | #define SF_DOOR_ROTATE_BACKWARDS 2 22 | #define SF_DOOR_PASSABLE 8 23 | #define SF_DOOR_ONEWAY 16 24 | #define SF_DOOR_NO_AUTO_RETURN 32 25 | #define SF_DOOR_ROTATE_Z 64 26 | #define SF_DOOR_ROTATE_X 128 27 | #define SF_DOOR_USE_ONLY 256 // door must be opened by player's use button. 28 | #define SF_DOOR_NOMONSTERS 512 // Monster can't open 29 | #define SF_DOOR_SILENT 0x80000000 30 | 31 | 32 | 33 | #endif //DOORS_H 34 | -------------------------------------------------------------------------------- /external/SDL2/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /engine/customentity.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef CUSTOMENTITY_H 16 | #define CUSTOMENTITY_H 17 | 18 | // Custom Entities 19 | 20 | // Start/End Entity is encoded as 12 bits of entity index, and 4 bits of attachment (4:12) 21 | #define BEAMENT_ENTITY(x) ((x)&0xFFF) 22 | #define BEAMENT_ATTACHMENT(x) (((x)>>12)&0xF) 23 | 24 | // Beam types, encoded as a byte 25 | enum 26 | { 27 | BEAM_POINTS = 0, 28 | BEAM_ENTPOINT, 29 | BEAM_ENTS, 30 | BEAM_HOSE, 31 | }; 32 | 33 | #define BEAM_FSINE 0x10 34 | #define BEAM_FSOLID 0x20 35 | #define BEAM_FSHADEIN 0x40 36 | #define BEAM_FSHADEOUT 0x80 37 | 38 | #endif //CUSTOMENTITY_H 39 | -------------------------------------------------------------------------------- /ricochet/cl_dll/vgui_ControlConfigPanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef CONTROLCONFIGPANEL_H 3 | #define CONTROLCONFIGPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | class HeaderPanel; 11 | class TablePanel; 12 | class ScrollPanel; 13 | class InputStream; 14 | class Label; 15 | } 16 | 17 | class ControlConfigPanel : public vgui::Panel 18 | { 19 | private: 20 | vgui::HeaderPanel* _headerPanel; 21 | vgui::TablePanel* _tablePanel; 22 | vgui::ScrollPanel* _scrollPanel; 23 | vgui::Dar _cvarDar; 24 | vgui::Dar _descDar; 25 | vgui::Label* _actionLabel; 26 | vgui::Label* _keyButtonLabel; 27 | vgui::Label* _alternateLabel; 28 | public: 29 | ControlConfigPanel(int x,int y,int wide,int tall); 30 | public: 31 | void AddCVar(const char* cvar,const char* desc); 32 | void AddCVarFromInputStream(vgui::InputStream* is); 33 | int GetCVarCount(); 34 | void GetCVar(int index,char* cvar,int cvarLen,char* desc,int descLen); 35 | void GetCVarBind(const char* cvar,char* bind,int bindLen,char* bindAlt,int bindAltLen); 36 | void SetCVarBind(const char* cvar,const char* bind,const char* bindAlt); 37 | }; 38 | 39 | 40 | 41 | #endif -------------------------------------------------------------------------------- /common/event_args.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( EVENT_ARGSH ) 16 | #define EVENT_ARGSH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | // Event was invoked with stated origin 22 | #define FEVENT_ORIGIN ( 1<<0 ) 23 | 24 | // Event was invoked with stated angles 25 | #define FEVENT_ANGLES ( 1<<1 ) 26 | 27 | typedef struct event_args_s 28 | { 29 | int flags; 30 | 31 | // Transmitted 32 | int entindex; 33 | 34 | float origin[3]; 35 | float angles[3]; 36 | float velocity[3]; 37 | 38 | int ducking; 39 | 40 | float fparam1; 41 | float fparam2; 42 | 43 | int iparam1; 44 | int iparam2; 45 | 46 | int bparam1; 47 | int bparam2; 48 | } event_args_t; 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /utils/light/new/light.h: -------------------------------------------------------------------------------- 1 | 2 | #include "cmdlib.h" 3 | #include "mathlib.h" 4 | #include "bspfile.h" 5 | #include "threads.h" 6 | 7 | 8 | #define DEFAULTLIGHTLEVEL 300 9 | 10 | typedef struct entity_s 11 | { 12 | char classname[64]; 13 | vec3_t origin; 14 | float angle; 15 | int light; 16 | int style; 17 | qboolean targetent; 18 | vec3_t targetorigin; 19 | } lightentity_t; 20 | 21 | extern lightentity_t lightentities[MAX_MAP_ENTITIES]; 22 | extern int numlightentities; 23 | 24 | #define ON_EPSILON 0.1 25 | 26 | #define MAXLIGHTS 1024 27 | 28 | void LoadNodes (char *file); 29 | qboolean TestLine (vec3_t start, vec3_t stop); 30 | 31 | void LightFace (int surfnum); 32 | void LightLeaf (dleaf_t *leaf); 33 | 34 | void MakeTnodes (dmodel_t *bm); 35 | 36 | extern float scaledist; 37 | extern float scalecos; 38 | extern float rangescale; 39 | 40 | extern int c_culldistplane, c_proper; 41 | 42 | byte *GetFileSpace (int size); 43 | extern byte *filebase; 44 | 45 | extern vec3_t bsp_origin; 46 | extern vec3_t bsp_xvector; 47 | extern vec3_t bsp_yvector; 48 | 49 | void TransformSample (vec3_t in, vec3_t out); 50 | void RotateSample (vec3_t in, vec3_t out); 51 | 52 | extern qboolean extrasamples; 53 | 54 | extern float minlights[MAX_MAP_FACES]; 55 | -------------------------------------------------------------------------------- /common/in_buttons.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef IN_BUTTONS_H 16 | #define IN_BUTTONS_H 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | #define IN_ATTACK (1 << 0) 22 | #define IN_JUMP (1 << 1) 23 | #define IN_DUCK (1 << 2) 24 | #define IN_FORWARD (1 << 3) 25 | #define IN_BACK (1 << 4) 26 | #define IN_USE (1 << 5) 27 | #define IN_CANCEL (1 << 6) 28 | #define IN_LEFT (1 << 7) 29 | #define IN_RIGHT (1 << 8) 30 | #define IN_MOVELEFT (1 << 9) 31 | #define IN_MOVERIGHT (1 << 10) 32 | #define IN_ATTACK2 (1 << 11) 33 | #define IN_RUN (1 << 12) 34 | #define IN_RELOAD (1 << 13) 35 | #define IN_ALT1 (1 << 14) 36 | #define IN_SCORE (1 << 15) // Used by client.dll for when scoreboard is held down 37 | 38 | #endif // IN_BUTTONS_H 39 | -------------------------------------------------------------------------------- /ricochet/cl_dll/cl_dll.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // cl_dll.h 17 | // 18 | 19 | // 4-23-98 JOHN 20 | 21 | // 22 | // This DLL is linked by the client when they first initialize. 23 | // This DLL is responsible for the following tasks: 24 | // - Loading the HUD graphics upon initialization 25 | // - Drawing the HUD graphics every frame 26 | // - Handling the custum HUD-update packets 27 | // 28 | 29 | #include "Platform.h" 30 | 31 | typedef unsigned char byte; 32 | typedef unsigned short word; 33 | typedef float vec_t; 34 | typedef int (*pfnUserMsgHook)(const char *pszName, int iSize, void *pbuf); 35 | 36 | #include "util_vector.h" 37 | #include "../engine/cdll_int.h" 38 | #include "../dlls/cdll_dll.h" 39 | 40 | extern cl_enginefunc_t gEngfuncs; 41 | -------------------------------------------------------------------------------- /utils/common/lbmlib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | // lbmlib.h 12 | 13 | typedef unsigned char UBYTE; 14 | 15 | #ifndef _WINDOWS_ 16 | typedef short WORD; 17 | #endif 18 | 19 | typedef unsigned short UWORD; 20 | typedef long LONG; 21 | 22 | typedef enum 23 | { 24 | ms_none, 25 | ms_mask, 26 | ms_transcolor, 27 | ms_lasso 28 | } mask_t; 29 | 30 | typedef enum 31 | { 32 | cm_none, 33 | cm_rle1 34 | } compress_t; 35 | 36 | typedef struct 37 | { 38 | UWORD w,h; 39 | WORD x,y; 40 | UBYTE nPlanes; 41 | UBYTE masking; 42 | UBYTE compression; 43 | UBYTE pad1; 44 | UWORD transparentColor; 45 | UBYTE xAspect,yAspect; 46 | WORD pageWidth,pageHeight; 47 | } bmhd_t; 48 | 49 | extern bmhd_t bmhd; // will be in native byte order 50 | 51 | 52 | void LoadLBM (char *filename, byte **picture, byte **palette); 53 | int LoadBMP (const char* szFile, byte** ppbBits, byte** ppbPalette); 54 | void WriteLBMfile (char *filename, byte *data, int width, int height 55 | , byte *palette); 56 | int WriteBMPfile (char *szFile, byte *pbBits, int width, int height, byte *pbPalette); 57 | 58 | -------------------------------------------------------------------------------- /ricochet/dlls/game.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef GAME_H 17 | #define GAME_H 18 | 19 | extern void GameDLLInit( void ); 20 | extern void GameDLLShutdown( void ); 21 | 22 | extern cvar_t displaysoundlist; 23 | 24 | // multiplayer server rules 25 | extern cvar_t fraglimit; 26 | extern cvar_t timelimit; 27 | extern cvar_t friendlyfir; 28 | extern cvar_t falldamage; 29 | extern cvar_t weaponstay; 30 | extern cvar_t forcerespaw; 31 | extern cvar_t flashlight; 32 | extern cvar_t aimcrosshair; 33 | extern cvar_t decalfrequency; 34 | extern cvar_t teamlist; 35 | extern cvar_t teamoverride; 36 | extern cvar_t defaultteam; 37 | extern cvar_t allow_spectators; 38 | 39 | // Engine Cvars 40 | extern cvar_t *g_psv_gravity; 41 | extern cvar_t *g_psv_aim; 42 | extern cvar_t *g_footsteps; 43 | 44 | #endif // GAME_H 45 | -------------------------------------------------------------------------------- /utils/common/polylib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | 12 | typedef struct 13 | { 14 | int numpoints; 15 | vec3_t p[8]; // variable sized 16 | } winding_t; 17 | 18 | #define MAX_POINTS_ON_WINDING 128 19 | 20 | winding_t *AllocWinding (int points); 21 | vec_t WindingArea (winding_t *w); 22 | void WindingCenter (winding_t *w, vec3_t center); 23 | void ClipWinding (winding_t *in, vec3_t normal, vec_t dist, 24 | winding_t **front, winding_t **back); 25 | void ClipWindingNoCopy (winding_t *in, vec3_t normal, vec_t dist, 26 | winding_t **front, winding_t **back); 27 | winding_t *ChopWinding (winding_t *in, vec3_t normal, vec_t dist); 28 | winding_t *ChopWindingNoFree (winding_t *in, vec3_t normal, vec_t dist); 29 | winding_t *CopyWinding (winding_t *w); 30 | winding_t *BaseWindingForPlane (vec3_t normal, float dist); 31 | void CheckWinding (winding_t *w); 32 | void WindingPlane (winding_t *w, vec3_t normal, vec_t *dist); 33 | void RemoveColinearPoints (winding_t *w); 34 | int WindingOnPlaneSide (winding_t *w, vec3_t normal, vec_t dist); 35 | void FreeWinding (winding_t *w); 36 | void WindingBounds (winding_t *w, vec3_t mins, vec3_t maxs); -------------------------------------------------------------------------------- /ricochet/dlls/schedule.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | //========================================================= 16 | // Scheduling 17 | //========================================================= 18 | #ifndef SCHEDULE_H 19 | #define SCHEDULE_H 20 | 21 | #define bits_COND_SEE_HATE ( 1 << 1 ) // see something that you hate 22 | #define bits_COND_SEE_FEAR ( 1 << 2 ) // see something that you are afraid of 23 | #define bits_COND_SEE_DISLIKE ( 1 << 3 ) // see something that you dislike 24 | #define bits_COND_SEE_ENEMY ( 1 << 4 ) // target entity is in full view. 25 | #define bits_COND_LIGHT_DAMAGE ( 1 << 8 ) // hurt a little 26 | #define bits_COND_HEAVY_DAMAGE ( 1 << 9 ) // hurt a lot 27 | #define bits_COND_SEE_CLIENT ( 1 << 21) // see a client 28 | #define bits_COND_SEE_NEMESIS ( 1 << 22) // see my nemesis 29 | 30 | 31 | #endif // SCHEDULE_H 32 | -------------------------------------------------------------------------------- /projects/vs2019/makels.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {d5586ccb-fc7d-4e19-8bde-8656f3036ed7} 18 | 19 | 20 | {63245e01-3884-4650-b2a4-90c672eb89e9} 21 | 22 | 23 | 24 | 25 | Source Files\utils\makels 26 | 27 | 28 | -------------------------------------------------------------------------------- /ricochet/dlls/explode.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef EXPLODE_H 16 | #define EXPLODE_H 17 | 18 | 19 | #define SF_ENVEXPLOSION_NODAMAGE ( 1 << 0 ) // when set, ENV_EXPLOSION will not actually inflict damage 20 | #define SF_ENVEXPLOSION_REPEATABLE ( 1 << 1 ) // can this entity be refired? 21 | #define SF_ENVEXPLOSION_NOFIREBALL ( 1 << 2 ) // don't draw the fireball 22 | #define SF_ENVEXPLOSION_NOSMOKE ( 1 << 3 ) // don't draw the smoke 23 | #define SF_ENVEXPLOSION_NODECAL ( 1 << 4 ) // don't make a scorch mark 24 | #define SF_ENVEXPLOSION_NOSPARKS ( 1 << 5 ) // don't make a scorch mark 25 | 26 | extern DLL_GLOBAL short g_sModelIndexFireball; 27 | extern DLL_GLOBAL short g_sModelIndexSmoke; 28 | 29 | 30 | extern void ExplosionCreate( const Vector ¢er, const Vector &angles, edict_t *pOwner, int magnitude, BOOL doDamage ); 31 | 32 | #endif //EXPLODE_H 33 | -------------------------------------------------------------------------------- /utils/serverctrl/ServerCtrl.h: -------------------------------------------------------------------------------- 1 | // ServerCtrl.h : main header file for the ServerCtrl application 2 | // 3 | 4 | #if !defined(AFX_ServerCtrl_H__E2974CA6_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_) 5 | #define AFX_ServerCtrl_H__E2974CA6_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_ 6 | 7 | #if _MSC_VER > 1000 8 | #pragma once 9 | #endif // _MSC_VER > 1000 10 | 11 | #ifndef __AFXWIN_H__ 12 | #error include 'stdafx.h' before including this file for PCH 13 | #endif 14 | 15 | #include "resource.h" // main symbols 16 | 17 | ///////////////////////////////////////////////////////////////////////////// 18 | // CServerCtrlApp: 19 | // See ServerCtrl.cpp for the implementation of this class 20 | // 21 | 22 | class CServerCtrlApp : public CWinApp 23 | { 24 | public: 25 | CServerCtrlApp(); 26 | 27 | // Overrides 28 | // ClassWizard generated virtual function overrides 29 | //{{AFX_VIRTUAL(CServerCtrlApp) 30 | public: 31 | virtual BOOL InitInstance(); 32 | //}}AFX_VIRTUAL 33 | 34 | // Implementation 35 | 36 | //{{AFX_MSG(CServerCtrlApp) 37 | //}}AFX_MSG 38 | DECLARE_MESSAGE_MAP() 39 | }; 40 | 41 | 42 | ///////////////////////////////////////////////////////////////////////////// 43 | 44 | //{{AFX_INSERT_LOCATION}} 45 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 46 | 47 | #endif // !defined(AFX_ServerCtrl_H__E2974CA6_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_) 48 | -------------------------------------------------------------------------------- /external/SDL2/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | 28 | #ifdef __IPHONEOS__ 29 | #include 30 | #include 31 | #else 32 | #include 33 | #include 34 | #endif 35 | 36 | #ifndef APIENTRY 37 | #define APIENTRY 38 | #endif 39 | -------------------------------------------------------------------------------- /ricochet/dlls/globals.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | /* 16 | 17 | ===== globals.cpp ======================================================== 18 | 19 | DLL-wide global variable definitions. 20 | They're all defined here, for convenient centralization. 21 | Source files that need them should "extern ..." declare each 22 | variable, to better document what globals they care about. 23 | 24 | */ 25 | 26 | #include "extdll.h" 27 | #include "util.h" 28 | #include "cbase.h" 29 | #include "soundent.h" 30 | 31 | DLL_GLOBAL ULONG g_ulFrameCount; 32 | DLL_GLOBAL ULONG g_ulModelIndexEyes; 33 | DLL_GLOBAL ULONG g_ulModelIndexPlayer; 34 | DLL_GLOBAL Vector g_vecAttackDir; 35 | DLL_GLOBAL int g_iSkillLevel; 36 | DLL_GLOBAL int gDisplayTitle; 37 | DLL_GLOBAL BOOL g_fGameOver; 38 | DLL_GLOBAL const Vector g_vecZero = Vector(0,0,0); 39 | DLL_GLOBAL int g_Language; 40 | -------------------------------------------------------------------------------- /common/weaponinfo.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined ( WEAPONINFOH ) 16 | #define WEAPONINFOH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | // Info about weapons player might have in his/her possession 22 | typedef struct weapon_data_s 23 | { 24 | int m_iId; 25 | int m_iClip; 26 | 27 | float m_flNextPrimaryAttack; 28 | float m_flNextSecondaryAttack; 29 | float m_flTimeWeaponIdle; 30 | 31 | int m_fInReload; 32 | int m_fInSpecialReload; 33 | float m_flNextReload; 34 | float m_flPumpTime; 35 | float m_fReloadTime; 36 | 37 | float m_fAimedDamage; 38 | float m_fNextAimBonus; 39 | int m_fInZoom; 40 | int m_iWeaponState; 41 | 42 | int iuser1; 43 | int iuser2; 44 | int iuser3; 45 | int iuser4; 46 | float fuser1; 47 | float fuser2; 48 | float fuser3; 49 | float fuser4; 50 | } weapon_data_t; 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /external/SDL2/SDL_opengles2.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 2.0 API headers. 26 | */ 27 | 28 | #ifdef __IPHONEOS__ 29 | #include 30 | #include 31 | #else 32 | #include 33 | #include 34 | #endif 35 | 36 | #ifndef APIENTRY 37 | #define APIENTRY 38 | #endif 39 | -------------------------------------------------------------------------------- /ricochet/dlls/cdll_dll.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // cdll_dll.h 17 | 18 | // this file is included by both the game-dll and the client-dll, 19 | 20 | #ifndef CDLL_DLL_H 21 | #define CDLL_DLL_H 22 | 23 | #define MAX_WEAPONS 32 // ??? 24 | 25 | #define MAX_WEAPON_SLOTS 5 // hud item selection slots 26 | #define MAX_ITEM_TYPES 6 // hud item selection slots 27 | 28 | #define MAX_ITEMS 5 // hard coded item types 29 | 30 | #define HIDEHUD_WEAPONS ( 1<<0 ) 31 | #define HIDEHUD_FLASHLIGHT ( 1<<1 ) 32 | #define HIDEHUD_ALL ( 1<<2 ) 33 | #define HIDEHUD_HEALTH ( 1<<3 ) 34 | 35 | #define MAX_AMMO_TYPES 32 // ??? 36 | #define MAX_AMMO_SLOTS 32 // not really slots 37 | 38 | #define HUD_PRINTNOTIFY 1 39 | #define HUD_PRINTCONSOLE 2 40 | #define HUD_PRINTTALK 3 41 | #define HUD_PRINTCENTER 4 42 | 43 | 44 | #define WEAPON_SUIT 31 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /common/usercmd.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef USERCMD_H 16 | #define USERCMD_H 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef struct usercmd_s 22 | { 23 | short lerp_msec; // Interpolation time on client 24 | byte msec; // Duration in ms of command 25 | vec3_t viewangles; // Command view angles. 26 | 27 | // intended velocities 28 | float forwardmove; // Forward velocity. 29 | float sidemove; // Sideways velocity. 30 | float upmove; // Upward velocity. 31 | byte lightlevel; // Light level at spot where we are standing. 32 | unsigned short buttons; // Attack buttons 33 | byte impulse; // Impulse command issued. 34 | byte weaponselect; // Current weapon id 35 | 36 | // Experimental player impact stuff. 37 | int impact_index; 38 | vec3_t impact_position; 39 | } usercmd_t; 40 | 41 | #endif // USERCMD_H 42 | -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_movevars.h: -------------------------------------------------------------------------------- 1 | // pm_movevars.h 2 | #if !defined( PM_MOVEVARSH ) 3 | #define PM_MOVEVARSH 4 | 5 | // movevars_t // Physics variables. 6 | typedef struct movevars_s movevars_t; 7 | 8 | struct movevars_s 9 | { 10 | float gravity; // Gravity for map 11 | float stopspeed; // Deceleration when not moving 12 | float maxspeed; // Max allowed speed 13 | float spectatormaxspeed; 14 | float accelerate; // Acceleration factor 15 | float airaccelerate; // Same for when in open air 16 | float wateraccelerate; // Same for when in water 17 | float friction; 18 | float edgefriction; // Extra friction near dropofs 19 | float waterfriction; // Less in water 20 | float entgravity; // 1.0 21 | float bounce; // Wall bounce value. 1.0 22 | float stepsize; // sv_stepsize; 23 | float maxvelocity; // maximum server velocity. 24 | float zmax; // Max z-buffer range (for GL) 25 | float waveHeight; // Water wave height (for GL) 26 | qboolean footsteps; // Play footstep sounds 27 | char skyName[32]; // Name of the sky map 28 | float rollangle; 29 | float rollspeed; 30 | float skycolor_r; // Sky color 31 | float skycolor_g; // 32 | float skycolor_b; // 33 | float skyvec_x; // Sky vector 34 | float skyvec_y; // 35 | float skyvec_z; // 36 | }; 37 | 38 | extern movevars_t movevars; 39 | 40 | #endif -------------------------------------------------------------------------------- /common/pmtrace.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( PMTRACEH ) 16 | #define PMTRACEH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef struct 22 | { 23 | vec3_t normal; 24 | float dist; 25 | } pmplane_t; 26 | 27 | typedef struct pmtrace_s pmtrace_t; 28 | 29 | struct pmtrace_s 30 | { 31 | qboolean allsolid; // if true, plane is not valid 32 | qboolean startsolid; // if true, the initial point was in a solid area 33 | qboolean inopen, inwater; // End point is in empty space or in water 34 | float fraction; // time completed, 1.0 = didn't hit anything 35 | vec3_t endpos; // final position 36 | pmplane_t plane; // surface normal at impact 37 | int ent; // entity at impact 38 | vec3_t deltavelocity; // Change in player's velocity caused by impact. 39 | // Only run on server. 40 | int hitgroup; 41 | }; 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /ricochet/dlls/extdll.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef EXTDLL_H 16 | #define EXTDLL_H 17 | 18 | 19 | // 20 | // Global header file for extension DLLs 21 | // 22 | 23 | #include "Platform.h" 24 | 25 | // Header file containing definition of globalvars_t and entvars_t 26 | typedef unsigned int func_t; // 27 | typedef unsigned int string_t; // from engine's pr_comp.h; 28 | typedef float vec_t; // needed before including progdefs.h 29 | 30 | // Vector class 31 | #include "vector.h" 32 | 33 | // Defining it as a (bogus) struct helps enforce type-checking 34 | #define vec3_t Vector 35 | 36 | // Shared engine/DLL constants 37 | #include "const.h" 38 | #include "progdefs.h" 39 | #include "edict.h" 40 | 41 | // Shared header describing protocol between engine and DLLs 42 | #include "eiface.h" 43 | 44 | // Shared header between the client DLL and the game DLLs 45 | #include "cdll_dll.h" 46 | 47 | #endif //EXTDLL_H 48 | -------------------------------------------------------------------------------- /ricochet/cl_dll/ammo.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef __AMMO_H__ 17 | #define __AMMO_H__ 18 | 19 | #define MAX_WEAPON_NAME 128 20 | 21 | 22 | #define WEAPON_FLAGS_SELECTONEMPTY 1 23 | 24 | #define WEAPON_IS_ONTARGET 0x40 25 | 26 | struct WEAPON 27 | { 28 | char szName[MAX_WEAPON_NAME]; 29 | int iAmmoType; 30 | int iAmmo2Type; 31 | int iMax1; 32 | int iMax2; 33 | int iSlot; 34 | int iSlotPos; 35 | int iFlags; 36 | int iId; 37 | int iClip; 38 | 39 | int iCount; // # of itesm in plist 40 | 41 | HSPRITE hActive; 42 | wrect_t rcActive; 43 | HSPRITE hInactive; 44 | wrect_t rcInactive; 45 | HSPRITE hAmmo; 46 | wrect_t rcAmmo; 47 | HSPRITE hAmmo2; 48 | wrect_t rcAmmo2; 49 | HSPRITE hCrosshair; 50 | wrect_t rcCrosshair; 51 | HSPRITE hAutoaim; 52 | wrect_t rcAutoaim; 53 | HSPRITE hZoomedCrosshair; 54 | wrect_t rcZoomedCrosshair; 55 | HSPRITE hZoomedAutoaim; 56 | wrect_t rcZoomedAutoaim; 57 | }; 58 | 59 | typedef int AMMO; 60 | 61 | 62 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/hud_update.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // hud_update.cpp 17 | // 18 | 19 | #include 20 | #include "hud.h" 21 | #include "cl_util.h" 22 | #include 23 | #include 24 | 25 | int CL_ButtonBits( int ); 26 | void CL_ResetButtonBits( int bits ); 27 | 28 | extern float v_idlescale; 29 | float in_fov; 30 | extern void HUD_SetCmdBits( int bits ); 31 | 32 | int CHud::UpdateClientData(client_data_t *cdata, float time) 33 | { 34 | memcpy(m_vecOrigin, cdata->origin, sizeof(vec3_t)); 35 | memcpy(m_vecAngles, cdata->viewangles, sizeof(vec3_t)); 36 | 37 | m_iKeyBits = CL_ButtonBits( 0 ); 38 | m_iWeaponBits = cdata->iWeaponBits; 39 | 40 | in_fov = cdata->fov; 41 | 42 | Think(); 43 | 44 | cdata->fov = m_iFOV; 45 | 46 | v_idlescale = m_iConcussionEffect; 47 | 48 | CL_ResetButtonBits( m_iKeyBits ); 49 | 50 | // return 1 if in anything in the client_data struct has been changed, 0 otherwise 51 | return 1; 52 | } 53 | 54 | 55 | -------------------------------------------------------------------------------- /ricochet/dlls/skill.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | //========================================================= 16 | // skill.cpp - code for skill level concerns 17 | //========================================================= 18 | #include "extdll.h" 19 | #include "util.h" 20 | #include "skill.h" 21 | 22 | 23 | skilldata_t gSkillData; 24 | 25 | 26 | //========================================================= 27 | // take the name of a cvar, tack a digit for the skill level 28 | // on, and return the value.of that Cvar 29 | //========================================================= 30 | float GetSkillCvar( char *pName ) 31 | { 32 | int iCount; 33 | float flValue; 34 | char szBuffer[ 64 ]; 35 | 36 | iCount = sprintf( szBuffer, "%s%d",pName, gSkillData.iSkillLevel ); 37 | 38 | flValue = CVAR_GET_FLOAT ( szBuffer ); 39 | 40 | if ( flValue <= 0 ) 41 | { 42 | ALERT ( at_console, "\n\n** GetSkillCVar Got a zero for %s **\n\n", szBuffer ); 43 | } 44 | 45 | return flValue; 46 | } 47 | 48 | -------------------------------------------------------------------------------- /ricochet/dlls/plane.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef PLANE_H 16 | #define PLANE_H 17 | 18 | //========================================================= 19 | // Plane 20 | //========================================================= 21 | class CPlane 22 | { 23 | public: 24 | CPlane ( void ); 25 | 26 | //========================================================= 27 | // InitializePlane - Takes a normal for the plane and a 28 | // point on the plane and 29 | //========================================================= 30 | void InitializePlane ( const Vector &vecNormal, const Vector &vecPoint ); 31 | 32 | //========================================================= 33 | // PointInFront - determines whether the given vector is 34 | // in front of the plane. 35 | //========================================================= 36 | BOOL PointInFront ( const Vector &vecPoint ); 37 | 38 | Vector m_vecNormal; 39 | float m_flDist; 40 | BOOL m_fInitialized; 41 | }; 42 | 43 | #endif // PLANE_H 44 | -------------------------------------------------------------------------------- /ricochet/dlls/scriptevent.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef SCRIPTEVENT_H 16 | #define SCRIPTEVENT_H 17 | 18 | #define SCRIPT_EVENT_DEAD 1000 // character is now dead 19 | #define SCRIPT_EVENT_NOINTERRUPT 1001 // does not allow interrupt 20 | #define SCRIPT_EVENT_CANINTERRUPT 1002 // will allow interrupt 21 | #define SCRIPT_EVENT_FIREEVENT 1003 // event now fires 22 | #define SCRIPT_EVENT_SOUND 1004 // Play named wave file (on CHAN_BODY) 23 | #define SCRIPT_EVENT_SENTENCE 1005 // Play named sentence 24 | #define SCRIPT_EVENT_INAIR 1006 // Leave the character in air at the end of the sequence (don't find the floor) 25 | #define SCRIPT_EVENT_ENDANIMATION 1007 // Set the animation by name after the sequence completes 26 | #define SCRIPT_EVENT_SOUND_VOICE 1008 // Play named wave file (on CHAN_VOICE) 27 | #define SCRIPT_EVENT_SENTENCE_RND1 1009 // Play sentence group 25% of the time 28 | #define SCRIPT_EVENT_NOT_DEAD 1010 // Bring back to life (for life/death sequences) 29 | #endif //SCRIPTEVENT_H 30 | -------------------------------------------------------------------------------- /ricochet/cl_dll/GameStudioModelRenderer.h: -------------------------------------------------------------------------------- 1 | #if !defined( GAMESTUDIOMODELRENDERER_H ) 2 | #define GAMESTUDIOMODELRENDERER_H 3 | #if defined( _WIN32 ) 4 | #pragma once 5 | #endif 6 | 7 | /* 8 | ==================== 9 | CGameStudioModelRenderer 10 | 11 | ==================== 12 | */ 13 | class CGameStudioModelRenderer : public CStudioModelRenderer 14 | { 15 | public: 16 | CGameStudioModelRenderer( void ); 17 | 18 | // Set up model bone positions 19 | virtual void StudioSetupBones ( void ); 20 | 21 | // Estimate gait frame for player 22 | virtual void StudioEstimateGait ( entity_state_t *pplayer ); 23 | 24 | // Process movement of player 25 | virtual void StudioProcessGait ( entity_state_t *pplayer ); 26 | 27 | // Player drawing code 28 | virtual int StudioDrawPlayer( int flags, entity_state_t *pplayer ); 29 | virtual int _StudioDrawPlayer( int flags, entity_state_t *pplayer ); 30 | 31 | // Apply special effects to transform matrix 32 | virtual void StudioFxTransform( cl_entity_t *ent, float transform[3][4] ); 33 | 34 | private: 35 | // For local player, in third person, we need to store real render data and then 36 | // setup for with fake/client side animation data 37 | void SavePlayerState( entity_state_t *pplayer ); 38 | // Called to set up local player's animation values 39 | void SetupClientAnimation( entity_state_t *pplayer ); 40 | // Called to restore original player state information 41 | void RestorePlayerState( entity_state_t *pplayer ); 42 | 43 | private: 44 | // Private data 45 | bool m_bLocal; 46 | }; 47 | 48 | #endif // GAMESTUDIOMODELRENDERER_H -------------------------------------------------------------------------------- /external/SDL2/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #undef _begin_code_h 30 | 31 | /* Reset structure packing at previous byte alignment */ 32 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__) 33 | #ifdef __BORLANDC__ 34 | #pragma nopackwarning 35 | #endif 36 | #pragma pack(pop) 37 | #endif /* Compiler needs structure packing set */ 38 | -------------------------------------------------------------------------------- /ricochet/cl_dll/com_weapons.h: -------------------------------------------------------------------------------- 1 | // com_weapons.h 2 | // Shared weapons common function prototypes 3 | #if !defined( COM_WEAPONSH ) 4 | #define COM_WEAPONSH 5 | #ifdef _WIN32 6 | #pragma once 7 | #endif 8 | 9 | #include "hud_iface.h" 10 | 11 | extern "C" 12 | { 13 | void DLLEXPORT HUD_PostRunCmd( struct local_state_s *from, struct local_state_s *to, struct usercmd_s *cmd, int runfuncs, double time, unsigned int random_seed ); 14 | } 15 | 16 | void COM_Log( char *pszFile, char *fmt, ...); 17 | int CL_IsDead( void ); 18 | 19 | float UTIL_SharedRandomFloat( unsigned int seed, float low, float high ); 20 | int UTIL_SharedRandomLong( unsigned int seed, int low, int high ); 21 | 22 | int HUD_GetWeaponAnim( void ); 23 | void HUD_SendWeaponAnim( int iAnim, int body, int force ); 24 | void HUD_PlaySound( char *sound, float volume ); 25 | void HUD_PlaybackEvent( int flags, const struct edict_s *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2 ); 26 | void HUD_SetMaxSpeed( const struct edict_s *ed, float speed ); 27 | int stub_PrecacheModel( char* s ); 28 | int stub_PrecacheSound( char* s ); 29 | unsigned short stub_PrecacheEvent( int type, const char *s ); 30 | const char *stub_NameForFunction ( uint32 function ); 31 | void stub_SetModel ( struct edict_s *e, const char *m ); 32 | 33 | 34 | extern cvar_t *cl_lw; 35 | 36 | extern int g_runfuncs; 37 | extern vec3_t v_angles; 38 | extern float g_lastFOV; 39 | extern struct local_state_s *g_finalstate; 40 | 41 | #endif -------------------------------------------------------------------------------- /utils/common/wadlib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | // wadlib.h 12 | 13 | // 14 | // wad reading 15 | // 16 | 17 | #define CMP_NONE 0 18 | #define CMP_LZSS 1 19 | 20 | #define TYP_NONE 0 21 | #define TYP_LABEL 1 22 | #define TYP_LUMPY 64 // 64 + grab command number 23 | 24 | typedef struct 25 | { 26 | char identification[4]; // should be WAD2 or 2DAW 27 | int numlumps; 28 | int infotableofs; 29 | } wadinfo_t; 30 | 31 | 32 | typedef struct 33 | { 34 | int filepos; 35 | int disksize; 36 | int size; // uncompressed 37 | char type; 38 | char compression; 39 | char pad1, pad2; 40 | char name[16]; // must be null terminated 41 | } lumpinfo_t; 42 | 43 | extern lumpinfo_t *lumpinfo; // location of each lump on disk 44 | extern int numlumps; 45 | extern wadinfo_t header; 46 | 47 | void W_OpenWad (char *filename); 48 | int W_CheckNumForName (char *name); 49 | int W_GetNumForName (char *name); 50 | int W_LumpLength (int lump); 51 | void W_ReadLumpNum (int lump, void *dest); 52 | void *W_LoadLumpNum (int lump); 53 | void *W_LoadLumpName (char *name); 54 | 55 | void CleanupName (char *in, char *out); 56 | 57 | // 58 | // wad creation 59 | // 60 | void NewWad (char *pathname, qboolean bigendien); 61 | void AddLump (char *name, void *buffer, int length, int type, int compress); 62 | void WriteWad (int wad3); 63 | 64 | -------------------------------------------------------------------------------- /common/particledef.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( PARTICLEDEFH ) 16 | #define PARTICLEDEFH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef enum { 22 | pt_static, 23 | pt_grav, 24 | pt_slowgrav, 25 | pt_fire, 26 | pt_explode, 27 | pt_explode2, 28 | pt_blob, 29 | pt_blob2, 30 | pt_vox_slowgrav, 31 | pt_vox_grav, 32 | pt_clientcustom // Must have callback function specified 33 | } ptype_t; 34 | 35 | // !!! if this is changed, it must be changed in d_ifacea.h too !!! 36 | typedef struct particle_s 37 | { 38 | // driver-usable fields 39 | vec3_t org; 40 | short color; 41 | short packedColor; 42 | // drivers never touch the following fields 43 | struct particle_s *next; 44 | vec3_t vel; 45 | float ramp; 46 | float die; 47 | ptype_t type; 48 | void (*deathfunc)( struct particle_s *particle ); 49 | 50 | // for pt_clientcusttom, we'll call this function each frame 51 | void (*callback)( struct particle_s *particle, float frametime ); 52 | 53 | // For deathfunc, etc. 54 | unsigned char context; 55 | } particle_t; 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /ricochet/dlls/h_export.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | /* 16 | 17 | ===== h_export.cpp ======================================================== 18 | 19 | Entity classes exported by Halflife. 20 | 21 | */ 22 | 23 | #include "extdll.h" 24 | #include "util.h" 25 | 26 | #include "cbase.h" 27 | 28 | // Holds engine functionality callbacks 29 | enginefuncs_t g_engfuncs; 30 | globalvars_t *gpGlobals; 31 | 32 | #undef DLLEXPORT 33 | #ifdef _WIN32 34 | #define DLLEXPORT __stdcall 35 | #else 36 | #define DLLEXPORT __attribute__ ((visibility("default"))) 37 | #endif 38 | 39 | #ifdef _WIN32 40 | 41 | // Required DLL entry point 42 | BOOL WINAPI DllMain( 43 | HINSTANCE hinstDLL, 44 | DWORD fdwReason, 45 | LPVOID lpvReserved) 46 | { 47 | if (fdwReason == DLL_PROCESS_ATTACH) 48 | { 49 | } 50 | else if (fdwReason == DLL_PROCESS_DETACH) 51 | { 52 | } 53 | return TRUE; 54 | } 55 | #endif 56 | 57 | extern "C" void DLLEXPORT GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals ) 58 | { 59 | memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t)); 60 | gpGlobals = pGlobals; 61 | } 62 | -------------------------------------------------------------------------------- /projects/vs2019/projects.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.31205.134 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ricochetdll", "ricochetdll.vcxproj", "{CE8DCBE4-D8DB-46E5-8607-8FCC5FA667FB}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ricochet_cdll", "ricochet_cdll.vcxproj", "{EA7DE935-F997-4EA8-9135-E2FE5E5D2C1B}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Win32 = Debug|Win32 13 | Release|Win32 = Release|Win32 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {CE8DCBE4-D8DB-46E5-8607-8FCC5FA667FB}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {CE8DCBE4-D8DB-46E5-8607-8FCC5FA667FB}.Debug|Win32.Build.0 = Debug|Win32 18 | {CE8DCBE4-D8DB-46E5-8607-8FCC5FA667FB}.Release|Win32.ActiveCfg = Release|Win32 19 | {CE8DCBE4-D8DB-46E5-8607-8FCC5FA667FB}.Release|Win32.Build.0 = Release|Win32 20 | {EA7DE935-F997-4EA8-9135-E2FE5E5D2C1B}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {EA7DE935-F997-4EA8-9135-E2FE5E5D2C1B}.Debug|Win32.Build.0 = Debug|Win32 22 | {EA7DE935-F997-4EA8-9135-E2FE5E5D2C1B}.Release|Win32.ActiveCfg = Release|Win32 23 | {EA7DE935-F997-4EA8-9135-E2FE5E5D2C1B}.Release|Win32.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {F7E52B0F-5C26-4CE1-BFF5-300B954535D6} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /ricochet/dlls/nodes.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | //========================================================= 16 | // nodes.h 17 | //========================================================= 18 | 19 | #ifndef NODES_H 20 | #define NODES_H 21 | 22 | #define bits_NODE_GROUP_REALM 1 23 | 24 | class CLink 25 | { 26 | public: 27 | entvars_t *m_pLinkEnt;// the entity that blocks this connection (doors, etc) 28 | }; 29 | 30 | 31 | class CGraph 32 | { 33 | public: 34 | BOOL m_fGraphPresent;// is the graph in memory? 35 | BOOL m_fGraphPointersSet;// are the entity pointers for the graph all set? 36 | 37 | int m_cLinks;// total number of links 38 | CLink *m_pLinkPool;// big list of all node connections 39 | 40 | void InitGraph( void ); 41 | int AllocNodes ( void ); 42 | 43 | int CheckNODFile(char *szMapName); 44 | int FLoadGraph(char *szMapName); 45 | int FSetGraphPointers(void); 46 | void ShowNodeConnections ( int iNode ); 47 | int FindNearestNode ( const Vector &vecOrigin, CBaseEntity *pEntity ); 48 | int FindNearestNode ( const Vector &vecOrigin, int afNodeTypes ); 49 | 50 | }; 51 | 52 | extern CGraph WorldGraph; 53 | 54 | #endif // NODES_H 55 | -------------------------------------------------------------------------------- /utils/serverctrl/ServerCtrl.cpp: -------------------------------------------------------------------------------- 1 | // ServerCtrl.cpp : Defines the class behaviors for the application. 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "ServerCtrl.h" 6 | #include "ServerCtrlDlg.h" 7 | 8 | #ifdef _DEBUG 9 | #define new DEBUG_NEW 10 | #undef THIS_FILE 11 | static char THIS_FILE[] = __FILE__; 12 | #endif 13 | 14 | ///////////////////////////////////////////////////////////////////////////// 15 | // CServerCtrlApp 16 | 17 | BEGIN_MESSAGE_MAP(CServerCtrlApp, CWinApp) 18 | //{{AFX_MSG_MAP(CServerCtrlApp) 19 | //}}AFX_MSG 20 | ON_COMMAND(ID_HELP, CWinApp::OnHelp) 21 | END_MESSAGE_MAP() 22 | 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // CServerCtrlApp construction 25 | 26 | CServerCtrlApp::CServerCtrlApp() 27 | { 28 | } 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | // The one and only CServerCtrlApp object 32 | 33 | CServerCtrlApp theApp; 34 | 35 | ///////////////////////////////////////////////////////////////////////////// 36 | // CServerCtrlApp initialization 37 | 38 | BOOL CServerCtrlApp::InitInstance() 39 | { 40 | // Standard initialization 41 | 42 | #ifdef _AFXDLL 43 | Enable3dControls(); // Call this when using MFC in a shared DLL 44 | #else 45 | Enable3dControlsStatic(); // Call this when linking to MFC statically 46 | #endif 47 | 48 | CServerCtrlDlg dlg; 49 | m_pMainWnd = &dlg; 50 | int nResponse = dlg.DoModal(); 51 | if (nResponse == IDOK) 52 | { 53 | } 54 | else if (nResponse == IDCANCEL) 55 | { 56 | } 57 | 58 | // Since the dialog has been closed, return FALSE so that we exit the 59 | // application, rather than start the application's message pump. 60 | return FALSE; 61 | } 62 | -------------------------------------------------------------------------------- /ricochet/cl_dll/hl/hl_events.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #include "../hud.h" 16 | #include "../cl_util.h" 17 | #include "event_api.h" 18 | 19 | extern "C" 20 | { 21 | // RICOCHET 22 | void EV_TriggerJump( struct event_args_s *args ); 23 | void EV_FireDisc( struct event_args_s *args ); 24 | void EV_TrainPitchAdjust( struct event_args_s *args ); 25 | } 26 | 27 | /* 28 | ====================== 29 | Game_HookEvents 30 | 31 | Associate script file name with callback functions. Callback's must be extern "C" so 32 | the engine doesn't get confused about name mangling stuff. Note that the format is 33 | always the same. Of course, a clever mod team could actually embed parameters, behavior 34 | into the actual .sc files and create a .sc file parser and hook their functionality through 35 | that.. i.e., a scripting system. 36 | 37 | That was what we were going to do, but we ran out of time...oh well. 38 | ====================== 39 | */ 40 | void Game_HookEvents( void ) 41 | { 42 | gEngfuncs.pfnHookEvent( "events/train.sc", EV_TrainPitchAdjust ); 43 | gEngfuncs.pfnHookEvent( "events/firedisc.sc", EV_FireDisc ); 44 | gEngfuncs.pfnHookEvent( "events/jump.sc", EV_TriggerJump ); 45 | } -------------------------------------------------------------------------------- /game_shared/steam_util.h: -------------------------------------------------------------------------------- 1 | // steam_util.h 2 | // Steam utility classes 3 | // Author: Michael S. Booth (mike@turtlerockstudios.com), April 2003 4 | 5 | #ifndef _STEAM_UTIL_H_ 6 | #define _STEAM_UTIL_H_ 7 | 8 | //-------------------------------------------------------------------------------------------------------------- 9 | /** 10 | * Used to load a file via Steam 11 | */ 12 | class SteamFile 13 | { 14 | public: 15 | SteamFile( const char *filename ); 16 | ~SteamFile(); 17 | 18 | bool IsValid( void ) const { return (m_fileData) ? true : false; } ///< returns true if this file object is attached to a file 19 | bool Read( void *data, int length ); ///< read 'length' bytes from the file 20 | 21 | private: 22 | byte *m_fileData; ///< the file read into memory 23 | int m_fileDataLength; ///< the length of the file 24 | 25 | byte *m_cursor; ///< where we are in the file 26 | int m_bytesLeft; ///< the number of bytes left in the file 27 | }; 28 | 29 | inline SteamFile::SteamFile( const char *filename ) 30 | { 31 | m_fileData = (byte *)LOAD_FILE_FOR_ME( const_cast( filename ), &m_fileDataLength ); 32 | m_cursor = m_fileData; 33 | m_bytesLeft = m_fileDataLength; 34 | } 35 | 36 | inline SteamFile::~SteamFile() 37 | { 38 | if (m_fileData) 39 | FREE_FILE( m_fileData ); 40 | } 41 | 42 | inline bool SteamFile::Read( void *data, int length ) 43 | { 44 | if (length > m_bytesLeft || m_cursor == NULL || m_bytesLeft <= 0) 45 | return false; 46 | 47 | byte *readCursor = static_cast( data ); 48 | 49 | for( int i=0; i 2 | 3 | 4 | // handle to an individual scheme 5 | typedef int SchemeHandle_t; 6 | 7 | 8 | // Register console variables, etc.. 9 | void Scheme_Init(); 10 | 11 | 12 | //----------------------------------------------------------------------------- 13 | // Purpose: Handles the loading of text scheme description from disk 14 | // supports different font/color/size schemes at different resolutions 15 | //----------------------------------------------------------------------------- 16 | class CSchemeManager 17 | { 18 | public: 19 | // initialization 20 | CSchemeManager( int xRes, int yRes ); 21 | virtual ~CSchemeManager(); 22 | 23 | // scheme handling 24 | SchemeHandle_t getSchemeHandle( const char *schemeName ); 25 | 26 | // getting info from schemes 27 | vgui::Font *getFont( SchemeHandle_t schemeHandle ); 28 | void getFgColor( SchemeHandle_t schemeHandle, int &r, int &g, int &b, int &a ); 29 | void getBgColor( SchemeHandle_t schemeHandle, int &r, int &g, int &b, int &a ); 30 | void getFgArmedColor( SchemeHandle_t schemeHandle, int &r, int &g, int &b, int &a ); 31 | void getBgArmedColor( SchemeHandle_t schemeHandle, int &r, int &g, int &b, int &a ); 32 | void getFgMousedownColor( SchemeHandle_t schemeHandle, int &r, int &g, int &b, int &a ); 33 | void getBgMousedownColor( SchemeHandle_t schemeHandle, int &r, int &g, int &b, int &a ); 34 | void getBorderColor( SchemeHandle_t schemeHandle, int &r, int &g, int &b, int &a ); 35 | 36 | private: 37 | class CScheme; 38 | CScheme *m_pSchemeList; 39 | int m_iNumSchemes; 40 | 41 | // Resolution we were initted at. 42 | int m_xRes; 43 | 44 | CScheme *getSafeScheme( SchemeHandle_t schemeHandle ); 45 | }; 46 | 47 | 48 | -------------------------------------------------------------------------------- /common/cvardef.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef CVARDEF_H 16 | #define CVARDEF_H 17 | 18 | #define FCVAR_ARCHIVE (1<<0) // set to cause it to be saved to vars.rc 19 | #define FCVAR_USERINFO (1<<1) // changes the client's info string 20 | #define FCVAR_SERVER (1<<2) // notifies players when changed 21 | #define FCVAR_EXTDLL (1<<3) // defined by external DLL 22 | #define FCVAR_CLIENTDLL (1<<4) // defined by the client dll 23 | #define FCVAR_PROTECTED (1<<5) // It's a server cvar, but we don't send the data since it's a password, etc. Sends 1 if it's not bland/zero, 0 otherwise as value 24 | #define FCVAR_SPONLY (1<<6) // This cvar cannot be changed by clients connected to a multiplayer server. 25 | #define FCVAR_PRINTABLEONLY (1<<7) // This cvar's string cannot contain unprintable characters ( e.g., used for player name etc ). 26 | #define FCVAR_UNLOGGED (1<<8) // If this is a FCVAR_SERVER, don't log changes to the log file / console if we are creating a log 27 | #define FCVAR_NOEXTRAWHITEPACE (1<<9) // strip trailing/leading white space from this cvar 28 | 29 | typedef struct cvar_s 30 | { 31 | char *name; 32 | char *string; 33 | int flags; 34 | float value; 35 | struct cvar_s *next; 36 | } cvar_t; 37 | #endif 38 | -------------------------------------------------------------------------------- /ricochet/cl_dll/demo.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #include "hud.h" 16 | #include "cl_util.h" 17 | #include "demo.h" 18 | #include "demo_api.h" 19 | #include 20 | 21 | extern "C" 22 | { 23 | void DLLEXPORT Demo_ReadBuffer( int size, unsigned char *buffer ); 24 | } 25 | 26 | /* 27 | ===================== 28 | Demo_WriteBuffer 29 | 30 | Write some data to the demo stream 31 | ===================== 32 | */ 33 | void Demo_WriteBuffer( int type, int size, unsigned char *buffer ) 34 | { 35 | int pos = 0; 36 | unsigned char buf[ 32 * 1024 ]; 37 | *( int * )&buf[pos] = type; 38 | pos+=sizeof( int ); 39 | 40 | memcpy( &buf[pos], buffer, size ); 41 | 42 | // Write full buffer out 43 | gEngfuncs.pDemoAPI->WriteBuffer( size + sizeof( int ), buf ); 44 | } 45 | 46 | /* 47 | ===================== 48 | Demo_ReadBuffer 49 | 50 | Engine wants us to parse some data from the demo stream 51 | ===================== 52 | */ 53 | void DLLEXPORT Demo_ReadBuffer( int size, unsigned char *buffer ) 54 | { 55 | int type; 56 | int i = 0; 57 | 58 | type = *( int * )buffer; 59 | i += sizeof( int ); 60 | switch ( type ) 61 | { 62 | case TYPE_USER: 63 | break; 64 | default: 65 | gEngfuncs.Con_DPrintf( "Unknown demo buffer type, skipping.\n" ); 66 | break; 67 | } 68 | } -------------------------------------------------------------------------------- /common/event_flags.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( EVENT_FLAGSH ) 16 | #define EVENT_FLAGSH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | // Skip local host for event send. 22 | #define FEV_NOTHOST (1<<0) 23 | 24 | // Send the event reliably. You must specify the origin and angles and use 25 | // PLAYBACK_EVENT_FULL for this to work correctly on the server for anything 26 | // that depends on the event origin/angles. I.e., the origin/angles are not 27 | // taken from the invoking edict for reliable events. 28 | #define FEV_RELIABLE (1<<1) 29 | 30 | // Don't restrict to PAS/PVS, send this event to _everybody_ on the server ( useful for stopping CHAN_STATIC 31 | // sounds started by client event when client is not in PVS anymore ( hwguy in TFC e.g. ). 32 | #define FEV_GLOBAL (1<<2) 33 | 34 | // If this client already has one of these events in its queue, just update the event instead of sending it as a duplicate 35 | // 36 | #define FEV_UPDATE (1<<3) 37 | 38 | // Only send to entity specified as the invoker 39 | #define FEV_HOSTONLY (1<<4) 40 | 41 | // Only send if the event was created on the server. 42 | #define FEV_SERVER (1<<5) 43 | 44 | // Only issue event client side ( from shared code ) 45 | #define FEV_CLIENT (1<<6) 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /ricochet/dlls/plane.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #include "extdll.h" 16 | #include "plane.h" 17 | 18 | //========================================================= 19 | // Plane 20 | //========================================================= 21 | CPlane :: CPlane ( void ) 22 | { 23 | m_fInitialized = FALSE; 24 | } 25 | 26 | //========================================================= 27 | // InitializePlane - Takes a normal for the plane and a 28 | // point on the plane and 29 | //========================================================= 30 | void CPlane :: InitializePlane ( const Vector &vecNormal, const Vector &vecPoint ) 31 | { 32 | m_vecNormal = vecNormal; 33 | m_flDist = DotProduct ( m_vecNormal, vecPoint ); 34 | m_fInitialized = TRUE; 35 | } 36 | 37 | 38 | //========================================================= 39 | // PointInFront - determines whether the given vector is 40 | // in front of the plane. 41 | //========================================================= 42 | BOOL CPlane :: PointInFront ( const Vector &vecPoint ) 43 | { 44 | float flFace; 45 | 46 | if ( !m_fInitialized ) 47 | { 48 | return FALSE; 49 | } 50 | 51 | flFace = DotProduct ( m_vecNormal, vecPoint ) - m_flDist; 52 | 53 | if ( flFace >= 0 ) 54 | { 55 | return TRUE; 56 | } 57 | 58 | return FALSE; 59 | } 60 | 61 | -------------------------------------------------------------------------------- /external/SDL2/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_config_h 23 | #define _SDL_config_h 24 | 25 | #include "SDL_platform.h" 26 | 27 | /** 28 | * \file SDL_config.h 29 | */ 30 | 31 | /* Add any platform that doesn't build using the configure system. */ 32 | #if defined(__WIN32__) 33 | #include "SDL_config_windows.h" 34 | #elif defined(__MACOSX__) 35 | #include "SDL_config_macosx.h" 36 | #elif defined(__IPHONEOS__) 37 | #include "SDL_config_iphoneos.h" 38 | #elif defined(__ANDROID__) 39 | #include "SDL_config_android.h" 40 | #elif defined(__PSP__) 41 | #include "SDL_config_psp.h" 42 | #else 43 | /* This is a minimal configuration just to get SDL running on new platforms */ 44 | #include "SDL_config_minimal.h" 45 | #endif /* platform config */ 46 | 47 | #ifdef USING_GENERATED_CONFIG_H 48 | #error Wrong SDL_config.h, check your include path? 49 | #endif 50 | 51 | #endif /* _SDL_config_h */ 52 | -------------------------------------------------------------------------------- /ricochet/dlls/activity.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef ACTIVITY_H 17 | #define ACTIVITY_H 18 | 19 | 20 | typedef enum { 21 | ACT_RESET = 0, // Set m_Activity to this invalid value to force a reset to m_IdealActivity 22 | ACT_IDLE, 23 | ACT_HOP, 24 | ACT_HOP_LEFT_FOOT, 25 | ACT_LEAP, 26 | 27 | ACT_TURN_LEFT, 28 | ACT_TURN_RIGHT, 29 | 30 | ACT_BASE_STAND, 31 | ACT_BASE_STAND_THROW, 32 | ACT_FREEZE_STAND, 33 | ACT_FREEZE_STAND_THROW, 34 | ACT_HARD_STAND, 35 | ACT_HARD_STAND_THROW, 36 | ACT_TRIPLE_STAND, 37 | ACT_TRIPLE_STAND_THROW, 38 | 39 | ACT_UNARMED_WALK, 40 | ACT_UNARMED_RUN, 41 | ACT_UNARMED_BACKPEDAL, 42 | 43 | ACT_BASE_WALK, 44 | ACT_BASE_RUN, 45 | ACT_BASE_THROW, 46 | ACT_BASE_BACKUP, 47 | ACT_BASE_BACKUP_THROW, 48 | 49 | ACT_BASE_REVERSE, 50 | ACT_BASE_REVERSE_THROW, 51 | 52 | ACT_FALL, 53 | ACT_FALL_FORWARD, 54 | ACT_FALL_BACKWARD, 55 | ACT_FALL_LEFT, 56 | ACT_FALL_RIGHT, 57 | 58 | ACT_FLINCH_CLOCKWISE, 59 | ACT_FLINCH_COUNTERCLOCKWISE, 60 | ACT_FLINCH_BACK, 61 | ACT_FLINCH_LEFT, 62 | ACT_FLINCH_RIGHT, 63 | ACT_FLINCH_FORWARD, 64 | 65 | ACT_DIE_HEADSHOT, 66 | ACT_DIEFORWARD, 67 | ACT_DIEBACKWARD, 68 | } Activity; 69 | 70 | 71 | typedef struct { 72 | int type; 73 | char *name; 74 | } activity_map_t; 75 | 76 | extern activity_map_t activity_map[]; 77 | 78 | 79 | #endif //ACTIVITY_H 80 | -------------------------------------------------------------------------------- /projects/vs2019/procinfo.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {3d07af82-de85-47cb-bd87-125a9043c5ad} 18 | 19 | 20 | {b8aff63a-415c-4e31-ad22-ba822090e8a2} 21 | 22 | 23 | {acb9edd8-ccf7-4221-8893-0cd5a3368fbc} 24 | 25 | 26 | {93d4c035-5f6d-4ffd-83c0-af849ad01f21} 27 | 28 | 29 | 30 | 31 | Source Files\utils\procinfo 32 | 33 | 34 | 35 | 36 | Header Files\utils\procinfo 37 | 38 | 39 | -------------------------------------------------------------------------------- /common/beamdef.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined ( BEAMDEFH ) 16 | #define BEAMDEFH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | #define FBEAM_STARTENTITY 0x00000001 22 | #define FBEAM_ENDENTITY 0x00000002 23 | #define FBEAM_FADEIN 0x00000004 24 | #define FBEAM_FADEOUT 0x00000008 25 | #define FBEAM_SINENOISE 0x00000010 26 | #define FBEAM_SOLID 0x00000020 27 | #define FBEAM_SHADEIN 0x00000040 28 | #define FBEAM_SHADEOUT 0x00000080 29 | #define FBEAM_STARTVISIBLE 0x10000000 // Has this client actually seen this beam's start entity yet? 30 | #define FBEAM_ENDVISIBLE 0x20000000 // Has this client actually seen this beam's end entity yet? 31 | #define FBEAM_ISACTIVE 0x40000000 32 | #define FBEAM_FOREVER 0x80000000 33 | 34 | typedef struct beam_s BEAM; 35 | struct beam_s 36 | { 37 | BEAM *next; 38 | int type; 39 | int flags; 40 | vec3_t source; 41 | vec3_t target; 42 | vec3_t delta; 43 | float t; // 0 .. 1 over lifetime of beam 44 | float freq; 45 | float die; 46 | float width; 47 | float amplitude; 48 | float r, g, b; 49 | float brightness; 50 | float speed; 51 | float frameRate; 52 | float frame; 53 | int segments; 54 | int startEntity; 55 | int endEntity; 56 | int modelIndex; 57 | int frameCount; 58 | struct model_s *pFollowModel; 59 | struct particle_s *particles; 60 | }; 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /ricochet/dlls/decals.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef DECALS_H 16 | #define DECALS_H 17 | 18 | // 19 | // Dynamic Decals 20 | // 21 | enum decal_e 22 | { 23 | DECAL_GUNSHOT1 = 0, 24 | DECAL_GUNSHOT2, 25 | DECAL_GUNSHOT3, 26 | DECAL_GUNSHOT4, 27 | DECAL_GUNSHOT5, 28 | DECAL_LAMBDA1, 29 | DECAL_LAMBDA2, 30 | DECAL_LAMBDA3, 31 | DECAL_LAMBDA4, 32 | DECAL_LAMBDA5, 33 | DECAL_LAMBDA6, 34 | DECAL_SCORCH1, 35 | DECAL_SCORCH2, 36 | DECAL_BLOOD1, 37 | DECAL_BLOOD2, 38 | DECAL_BLOOD3, 39 | DECAL_BLOOD4, 40 | DECAL_BLOOD5, 41 | DECAL_BLOOD6, 42 | DECAL_YBLOOD1, 43 | DECAL_YBLOOD2, 44 | DECAL_YBLOOD3, 45 | DECAL_YBLOOD4, 46 | DECAL_YBLOOD5, 47 | DECAL_YBLOOD6, 48 | DECAL_GLASSBREAK1, 49 | DECAL_GLASSBREAK2, 50 | DECAL_GLASSBREAK3, 51 | DECAL_BIGSHOT1, 52 | DECAL_BIGSHOT2, 53 | DECAL_BIGSHOT3, 54 | DECAL_BIGSHOT4, 55 | DECAL_BIGSHOT5, 56 | DECAL_SPIT1, 57 | DECAL_SPIT2, 58 | DECAL_BPROOF1, // Bulletproof glass decal 59 | DECAL_GARGSTOMP1, // Gargantua stomp crack 60 | DECAL_SMALLSCORCH1, // Small scorch mark 61 | DECAL_SMALLSCORCH2, // Small scorch mark 62 | DECAL_SMALLSCORCH3, // Small scorch mark 63 | DECAL_MOMMABIRTH, // Big momma birth splatter 64 | DECAL_MOMMASPLAT, 65 | }; 66 | 67 | typedef struct 68 | { 69 | char *name; 70 | int index; 71 | } DLL_DECALLIST; 72 | 73 | extern DLL_DECALLIST gDecals[]; 74 | 75 | #endif // DECALS_H 76 | -------------------------------------------------------------------------------- /ricochet/cl_dll/battery.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // battery.cpp 17 | // 18 | // implementation of CHudBattery class 19 | // 20 | 21 | #include "hud.h" 22 | #include "cl_util.h" 23 | #include "parsemsg.h" 24 | 25 | #include 26 | #include 27 | 28 | DECLARE_MESSAGE(m_Battery, Battery) 29 | 30 | int CHudBattery::Init(void) 31 | { 32 | m_iBat = 0; 33 | m_fFade = 0; 34 | m_iFlags = 0; 35 | 36 | HOOK_MESSAGE(Battery); 37 | 38 | gHUD.AddHudElem(this); 39 | 40 | return 1; 41 | }; 42 | 43 | 44 | int CHudBattery::VidInit(void) 45 | { 46 | int HUD_suit_empty = gHUD.GetSpriteIndex( "suit_empty" ); 47 | int HUD_suit_full = gHUD.GetSpriteIndex( "suit_full" ); 48 | 49 | m_hSprite1 = m_hSprite2 = 0; // delaying get sprite handles until we know the sprites are loaded 50 | m_prc1 = &gHUD.GetSpriteRect( HUD_suit_empty ); 51 | m_prc2 = &gHUD.GetSpriteRect( HUD_suit_full ); 52 | m_iHeight = m_prc2->bottom - m_prc1->top; 53 | m_fFade = 0; 54 | return 1; 55 | }; 56 | 57 | int CHudBattery:: MsgFunc_Battery(const char *pszName, int iSize, void *pbuf ) 58 | { 59 | m_iFlags |= HUD_ACTIVE; 60 | 61 | 62 | BEGIN_READ( pbuf, iSize ); 63 | int x = READ_SHORT(); 64 | 65 | if (x != m_iBat) 66 | { 67 | m_fFade = FADE_TIME; 68 | m_iBat = x; 69 | } 70 | 71 | return 1; 72 | } 73 | 74 | 75 | int CHudBattery::Draw(float flTime) 76 | { 77 | // No Armor in Discwar 78 | return 1; 79 | } -------------------------------------------------------------------------------- /common/ref_params.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( REF_PARAMSH ) 16 | #define REF_PARAMSH 17 | 18 | typedef struct ref_params_s 19 | { 20 | // Output 21 | float vieworg[3]; 22 | float viewangles[3]; 23 | 24 | float forward[3]; 25 | float right[3]; 26 | float up[3]; 27 | 28 | // Client frametime; 29 | float frametime; 30 | // Client time 31 | float time; 32 | 33 | // Misc 34 | int intermission; 35 | int paused; 36 | int spectator; 37 | int onground; 38 | int waterlevel; 39 | 40 | float simvel[3]; 41 | float simorg[3]; 42 | 43 | float viewheight[3]; 44 | float idealpitch; 45 | 46 | float cl_viewangles[3]; 47 | 48 | int health; 49 | float crosshairangle[3]; 50 | float viewsize; 51 | 52 | float punchangle[3]; 53 | int maxclients; 54 | int viewentity; 55 | int playernum; 56 | int max_entities; 57 | int demoplayback; 58 | int hardware; 59 | 60 | int smoothing; 61 | 62 | // Last issued usercmd 63 | struct usercmd_s *cmd; 64 | 65 | // Movevars 66 | struct movevars_s *movevars; 67 | 68 | int viewport[4]; // the viewport coordinates x ,y , width, height 69 | 70 | int nextView; // the renderer calls ClientDLL_CalcRefdef() and Renderview 71 | // so long in cycles until this value is 0 (multiple views) 72 | int onlyClientDraw; // if !=0 nothing is drawn by the engine except clientDraw functions 73 | } ref_params_t; 74 | 75 | #endif // !REF_PARAMSH 76 | -------------------------------------------------------------------------------- /ricochet/cl_dll/train.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // Train.cpp 17 | // 18 | // implementation of CHudAmmo class 19 | // 20 | 21 | #include "hud.h" 22 | #include "cl_util.h" 23 | #include 24 | #include 25 | #include "parsemsg.h" 26 | 27 | DECLARE_MESSAGE(m_Train, Train ) 28 | 29 | 30 | int CHudTrain::Init(void) 31 | { 32 | HOOK_MESSAGE( Train ); 33 | 34 | m_iPos = 0; 35 | m_iFlags = 0; 36 | gHUD.AddHudElem(this); 37 | 38 | return 1; 39 | }; 40 | 41 | int CHudTrain::VidInit(void) 42 | { 43 | m_hSprite = 0; 44 | 45 | return 1; 46 | }; 47 | 48 | int CHudTrain::Draw(float fTime) 49 | { 50 | if ( !m_hSprite ) 51 | m_hSprite = LoadSprite("sprites/%d_train.spr"); 52 | 53 | if (m_iPos) 54 | { 55 | int r, g, b, x, y; 56 | 57 | UnpackRGB(r,g,b, RGB_YELLOWISH); 58 | SPR_Set(m_hSprite, r, g, b ); 59 | 60 | // This should show up to the right and part way up the armor number 61 | y = ScreenHeight - SPR_Height(m_hSprite,0) - gHUD.m_iFontHeight; 62 | x = ScreenWidth/3 + SPR_Width(m_hSprite,0)/4; 63 | 64 | SPR_DrawAdditive( m_iPos - 1, x, y, NULL); 65 | 66 | } 67 | 68 | return 1; 69 | } 70 | 71 | 72 | int CHudTrain::MsgFunc_Train(const char *pszName, int iSize, void *pbuf) 73 | { 74 | BEGIN_READ( pbuf, iSize ); 75 | 76 | // update Train data 77 | m_iPos = READ_BYTE(); 78 | 79 | if (m_iPos) 80 | m_iFlags |= HUD_ACTIVE; 81 | else 82 | m_iFlags &= ~HUD_ACTIVE; 83 | 84 | return 1; 85 | } 86 | -------------------------------------------------------------------------------- /ricochet/cl_dll/vgui_ConsolePanel.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include"vgui_ConsolePanel.h" 3 | #include"hud.h" 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | using namespace vgui; 11 | 12 | 13 | namespace 14 | { 15 | 16 | class Handler : public ActionSignal 17 | { 18 | private: 19 | 20 | ConsolePanel* _consolePanel; 21 | 22 | public: 23 | 24 | Handler(ConsolePanel* consolePanel) 25 | { 26 | _consolePanel=consolePanel; 27 | } 28 | 29 | public: 30 | 31 | virtual void actionPerformed(Panel* panel) 32 | { 33 | _consolePanel->doExecCommand(); 34 | } 35 | 36 | }; 37 | 38 | } 39 | 40 | 41 | 42 | ConsolePanel::ConsolePanel(int x,int y,int wide,int tall) : Panel(x,y,wide,tall) 43 | { 44 | setBorder(new EtchedBorder()); 45 | 46 | _textGrid=new TextGrid(80,21,5,5,200,100); 47 | _textGrid->setBorder(new LoweredBorder()); 48 | _textGrid->setParent(this); 49 | 50 | _textEntry=new TextEntry("",5,5,200,20); 51 | _textEntry->setParent(this); 52 | _textEntry->addActionSignal(new Handler(this)); 53 | } 54 | 55 | int ConsolePanel::print(const char* text) 56 | { 57 | return _textGrid->printf("%s",text); 58 | } 59 | 60 | int ConsolePanel::vprintf(const char* format,va_list argList) 61 | { 62 | return _textGrid->vprintf(format,argList); 63 | } 64 | 65 | int ConsolePanel::printf(const char* format,...) 66 | { 67 | va_list argList; 68 | va_start(argList,format); 69 | int ret=vprintf(format,argList); 70 | va_end(argList); 71 | return ret; 72 | } 73 | 74 | void ConsolePanel::doExecCommand() 75 | { 76 | char buf[2048]; 77 | _textEntry->getText(0,buf,2048); 78 | _textEntry->setText(null,0); 79 | gEngfuncs.pfnClientCmd(buf); 80 | } 81 | 82 | void ConsolePanel::setSize(int wide,int tall) 83 | { 84 | Panel::setSize(wide,tall); 85 | 86 | getPaintSize(wide,tall); 87 | 88 | _textGrid->setBounds(5,5,wide-10,tall-35); 89 | _textEntry->setBounds(5,tall-25,wide-10,20); 90 | } 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /projects/vs2019/mkmovie.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {d5586ccb-fc7d-4e19-8bde-8656f3036ed7} 18 | 19 | 20 | {23430839-825c-42f8-87f8-5ae8dbcbb612} 21 | 22 | 23 | {b9529791-81ac-4e1b-86b7-e3ae05d40193} 24 | 25 | 26 | {62158a60-3771-4525-8b2c-953f323849d8} 27 | 28 | 29 | 30 | 31 | Source Files\utils\mkmovie 32 | 33 | 34 | 35 | 36 | Header Files\utils\common 37 | 38 | 39 | Header Files\utils\common 40 | 41 | 42 | -------------------------------------------------------------------------------- /common/parsemsg.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // parsemsg.h 17 | // MDC - copying from cstrike\cl_dll so career-mode stuff can catch messages 18 | // in this dll. (and C++ifying it) 19 | // 20 | 21 | #ifndef PARSEMSG_H 22 | #define PARSEMSG_H 23 | 24 | #define ASSERT( x ) 25 | //-------------------------------------------------------------------------------------------------------------- 26 | void BEGIN_READ( void *buf, int size ); 27 | int READ_CHAR( void ); 28 | int READ_BYTE( void ); 29 | int READ_SHORT( void ); 30 | int READ_WORD( void ); 31 | int READ_LONG( void ); 32 | float READ_FLOAT( void ); 33 | char* READ_STRING( void ); 34 | float READ_COORD( void ); 35 | float READ_ANGLE( void ); 36 | float READ_HIRESANGLE( void ); 37 | int READ_OK( void ); 38 | 39 | //-------------------------------------------------------------------------------------------------------------- 40 | class BufferWriter 41 | { 42 | public: 43 | BufferWriter(); 44 | BufferWriter( unsigned char *buffer, int bufferLen ); 45 | void Init( unsigned char *buffer, int bufferLen ); 46 | 47 | void WriteByte( unsigned char data ); 48 | void WriteLong( int data ); 49 | void WriteString( const char *str ); 50 | 51 | bool HasOverflowed(); 52 | int GetSpaceUsed(); 53 | 54 | protected: 55 | unsigned char *m_buffer; 56 | int m_remaining; 57 | bool m_overflow; 58 | int m_overallLength; 59 | }; 60 | 61 | //-------------------------------------------------------------------------------------------------------------- 62 | 63 | #endif // PARSEMSG_H 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /utils/qcsg/hullfile.c: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | #include "csg.h" 12 | 13 | extern vec3_t hull_size[NUM_HULLS][2]; 14 | /* 15 | ============ 16 | CheckHullFile 17 | ============ 18 | */ 19 | void CheckHullFile( qboolean hullfile, char *filename ) 20 | { 21 | FILE *f; 22 | char scan[ 128 ]; 23 | vec3_t new_hulls[NUM_HULLS][2]; 24 | qboolean read_error = false; 25 | int i; 26 | 27 | if ( !hullfile ) 28 | return; 29 | 30 | // Open up hull file 31 | f = fopen (filename, "r"); 32 | if ( !f ) 33 | { 34 | printf ("WARNING: Couldn't open hullfile %s, using default hulls", filename ); 35 | return; 36 | } 37 | else 38 | { 39 | printf("[Reading hulls from '%s']\n", filename); 40 | } 41 | 42 | for ( i = 0 ; i < NUM_HULLS; i++ ) 43 | { 44 | float x1, y1, z1, x2, y2, z2; 45 | 46 | vec3_t mins, maxs; 47 | int argCnt; 48 | 49 | if ( !fgets(scan, sizeof(scan), f ) ) 50 | { 51 | printf ("WARNING: Error parsing %s, couln't read hull line %i, using default hulls", filename, i ); 52 | read_error = true; 53 | break; 54 | } 55 | 56 | argCnt = sscanf (scan, "( %f %f %f ) ( %f %f %f ) ", &x1, &y1, &z1, &x2, &y2, &z2 ); 57 | if ( argCnt != 6 ) 58 | { 59 | printf ("WARNING: Error parsing %s, expeciting '( x y z ) ( x y z )' using default hulls", filename ); 60 | read_error = true; 61 | break; 62 | } 63 | else 64 | { 65 | mins[0] = x1; 66 | mins[1] = y1; 67 | mins[2] = z1; 68 | maxs[0] = x2; 69 | maxs[1] = y2; 70 | maxs[2] = z2; 71 | } 72 | 73 | VectorCopy( mins, new_hulls[ i ][ 0 ] ); 74 | VectorCopy( maxs, new_hulls[ i ][ 1 ] ); 75 | } 76 | 77 | if ( read_error ) 78 | { 79 | printf ("WARNING: Error parsing %s, using default hulls", filename ); 80 | } 81 | else 82 | { 83 | memcpy( hull_size, new_hulls, 2 * NUM_HULLS * sizeof( vec3_t ) ); 84 | } 85 | 86 | fclose( f ); 87 | } -------------------------------------------------------------------------------- /common/crc.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | /* crc.h */ 16 | #ifndef CRC_H 17 | #define CRC_H 18 | #ifdef _WIN32 19 | #pragma once 20 | #endif 21 | 22 | #include "archtypes.h" // DAL 23 | 24 | // MD5 Hash 25 | typedef struct 26 | { 27 | unsigned int buf[4]; 28 | unsigned int bits[2]; 29 | unsigned char in[64]; 30 | } MD5Context_t; 31 | 32 | 33 | #ifdef _WIN32 34 | typedef uint32 CRC32_t; 35 | #else 36 | typedef uint32 CRC32_t; 37 | #endif 38 | 39 | #ifdef __cplusplus 40 | extern "C" 41 | { 42 | #endif 43 | void CRC32_Init(CRC32_t *pulCRC); 44 | CRC32_t CRC32_Final(CRC32_t pulCRC); 45 | void CRC32_ProcessBuffer(CRC32_t *pulCRC, void *p, int len); 46 | void CRC32_ProcessByte(CRC32_t *pulCRC, unsigned char ch); 47 | int CRC_File(CRC32_t *crcvalue, char *pszFileName); 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | unsigned char COM_BlockSequenceCRCByte (unsigned char *base, int length, int sequence); 52 | 53 | void MD5Init(MD5Context_t *context); 54 | void MD5Update(MD5Context_t *context, unsigned char const *buf, 55 | unsigned int len); 56 | void MD5Final(unsigned char digest[16], MD5Context_t *context); 57 | void Transform(unsigned int buf[4], unsigned int const in[16]); 58 | 59 | int MD5_Hash_File(unsigned char digest[16], char *pszFileName, int bUsefopen, int bSeed, unsigned int seed[4]); 60 | char *MD5_Print(unsigned char hash[16]); 61 | int MD5_Hash_CachedFile(unsigned char digest[16], unsigned char *pCache, int nFileSize, int bSeed, unsigned int seed[4]); 62 | 63 | int CRC_MapFile(CRC32_t *crcvalue, char *pszFileName); 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /external/SDL2/SDL_blendmode.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_blendmode.h 24 | * 25 | * Header file declaring the SDL_BlendMode enumeration 26 | */ 27 | 28 | #ifndef _SDL_blendmode_h 29 | #define _SDL_blendmode_h 30 | 31 | #include "begin_code.h" 32 | /* Set up for C function definitions, even when using C++ */ 33 | #ifdef __cplusplus 34 | /* *INDENT-OFF* */ 35 | extern "C" { 36 | /* *INDENT-ON* */ 37 | #endif 38 | 39 | /** 40 | * \brief The blend mode used in SDL_RenderCopy() and drawing operations. 41 | */ 42 | typedef enum 43 | { 44 | SDL_BLENDMODE_NONE = 0x00000000, /**< No blending */ 45 | SDL_BLENDMODE_BLEND = 0x00000001, /**< dst = (src * A) + (dst * (1-A)) */ 46 | SDL_BLENDMODE_ADD = 0x00000002, /**< dst = (src * A) + dst */ 47 | SDL_BLENDMODE_MOD = 0x00000004 /**< dst = src * dst */ 48 | } SDL_BlendMode; 49 | 50 | /* Ends C function definitions when using C++ */ 51 | #ifdef __cplusplus 52 | /* *INDENT-OFF* */ 53 | } 54 | /* *INDENT-ON* */ 55 | #endif 56 | #include "close_code.h" 57 | 58 | #endif /* _SDL_video_h */ 59 | 60 | /* vi: set ts=4 sw=4 expandtab: */ 61 | -------------------------------------------------------------------------------- /game/ricochet/ricochet.fgd: -------------------------------------------------------------------------------- 1 | // Ricochet FGD file 2 | // By SiPlus 3 | // April 4, 2012 revision 4 | // For Hammer 3.5 5 | // http://developer.valvesoftware.com/wiki/Ricochet_Level_Creation 6 | // Requires Half-Life FGD 7 | @SolidClass = worldspawn : "World entity" 8 | [ 9 | message(string) : "Map Description / Title" 10 | skyname(string) : "environment map (cl_skyname)" : "disc" 11 | sounds(integer) : "CD track to play" : 1 12 | light(integer) : "Default light level" 13 | WaveHeight(string) : "Default Wave Height" 14 | MaxRange(string) : "Max viewable distance" : "4096" 15 | chaptertitle(string) : "Chapter Title Message" 16 | startdark(choices) : "Level Fade In" : 0 = 17 | [ 18 | 0 : "No" 19 | 1 : "Yes" 20 | ] 21 | gametitle(choices) : "Display game title" : 0 = 22 | [ 23 | 0 : "No" 24 | 1 : "Yes" 25 | ] 26 | newunit(choices) : "New Level Unit" : 0 = 27 | [ 28 | 0 : "No, keep current" 29 | 1 : "Yes, clear previous levels" 30 | ] 31 | mapteams(string) : "Map Team List" 32 | defaultteam(choices) : "Default Team" : 0 = 33 | [ 34 | 0 : "Fewest Players" 35 | 1 : "First Team" 36 | ] 37 | no_arena(choices) : "Game mode" : 1 = 38 | [ 39 | 0 : "Arena" 40 | 1 : "Deathmatch" 41 | ] 42 | ] 43 | @PointClass base(PlayerClass) = info_player_start [] 44 | @PointClass base(PlayerClass) studio("models/ricochet/male.mdl") = info_player_deathmatch 45 | [ 46 | target(target_destination) : "Target" 47 | master(string) : "Master" 48 | ] 49 | 50 | @PointClass base(Angles) = info_ricochet [] 51 | @PointClass base(PlayerClass) studio("models/ricochet/head.mdl") = info_player_spectator 52 | [ 53 | target(target_destination) : "Target" 54 | master(string) : "Master" 55 | ] 56 | @PointClass size(-16 16 0,16 16 16) base(PlayerClass, Targetname) studio("models/ricochet/head.mdl") = info_teleport_destination [] 57 | @PointClass size(-16 -16 -16, 16 16 32) base(Weapon, Targetx) studio("models/ricochet/pow_visual.mdl") = item_powerup [] 58 | @SolidClass = trigger_discreturn [] 59 | @SolidClass = trigger_fall [] 60 | @SolidClass base(Target) = trigger_jump 61 | [ 62 | height(integer) : "Height" : 128 63 | ] 64 | -------------------------------------------------------------------------------- /ricochet/dlls/animation.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef ANIMATION_H 16 | #define ANIMATION_H 17 | 18 | #define ACTIVITY_NOT_AVAILABLE -1 19 | 20 | #ifndef MONSTEREVENT_H 21 | #include "monsterevent.h" 22 | #endif 23 | 24 | extern int IsSoundEvent( int eventNumber ); 25 | 26 | int LookupActivity( void *pmodel, entvars_t *pev, int activity ); 27 | int LookupActivityHeaviest( void *pmodel, entvars_t *pev, int activity ); 28 | int LookupSequence( void *pmodel, const char *label ); 29 | void GetSequenceInfo( void *pmodel, entvars_t *pev, float *pflFrameRate, float *pflGroundSpeed ); 30 | int GetSequenceFlags( void *pmodel, entvars_t *pev ); 31 | int LookupAnimationEvents( void *pmodel, entvars_t *pev, float flStart, float flEnd ); 32 | float SetController( void *pmodel, entvars_t *pev, int iController, float flValue ); 33 | float SetBlending( void *pmodel, entvars_t *pev, int iBlender, float flValue ); 34 | void GetEyePosition( void *pmodel, float *vecEyePosition ); 35 | void SequencePrecache( void *pmodel, const char *pSequenceName ); 36 | int FindTransition( void *pmodel, int iEndingAnim, int iGoalAnim, int *piDir ); 37 | void SetBodygroup( void *pmodel, entvars_t *pev, int iGroup, int iValue ); 38 | int GetBodygroup( void *pmodel, entvars_t *pev, int iGroup ); 39 | 40 | int GetAnimationEvent( void *pmodel, entvars_t *pev, MonsterEvent_t *pMonsterEvent, float flStart, float flEnd, int index ); 41 | int ExtractBbox( void *pmodel, int sequence, float *mins, float *maxs ); 42 | 43 | // From /engine/studio.h 44 | #define STUDIO_LOOPING 0x0001 45 | 46 | 47 | #endif //ANIMATION_H 48 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Half Life 1 SDK LICENSE 2 | ====================== 3 | 4 | Half Life 1 SDK Copyright(c) Valve Corp. 5 | 6 | THIS DOCUMENT DESCRIBES A CONTRACT BETWEEN YOU AND VALVE CORPORATION ("Valve"). 7 | PLEASE READ IT BEFORE DOWNLOADING OR USING THE HALF LIFE 1 SDK ("SDK"). BY 8 | DOWNLOADING AND/OR USING THE HALF LIFE 1 SDK YOU ACCEPT THIS LICENSE. IF YOU DO 9 | NOT AGREE TO THE TERMS OF THIS LICENSE PLEASE DON'T DOWNLOAD OR USE THE SDK. 10 | 11 | You may, free of charge, download and use the SDK to develop a modified Valve 12 | game running on the Half-Life 1 engine. You may distribute your modified Valve 13 | game in source and object code form, but only for free. Terms of use for Valve 14 | games are found in the Steam Subscriber Agreement located here: 15 | http://store.steampowered.com/subscriber_agreement/ 16 | 17 | You may copy, modify, and distribute the SDK and any modifications you make to 18 | the SDK in source and object code form, but only for free. Any distribution of 19 | this SDK must include this LICENSE file. 20 | 21 | Any distribution of the SDK or a substantial portion of the SDK must include 22 | the above copyright notice and the following: 23 | 24 | DISCLAIMER OF WARRANTIES. THE HALF LIFE 1 SDK AND ANY OTHER MATERIAL 25 | DOWNLOADED BY LICENSEE IS PROVIDED "AS IS". VALVE AND ITS SUPPLIERS 26 | DISCLAIM ALL WARRANTIES WITH RESPECT TO THE SDK, EITHER EXPRESS OR IMPLIED, 27 | INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, 28 | NON-INFRINGEMENT, TITLE AND FITNESS FOR A PARTICULAR PURPOSE. 29 | 30 | LIMITATION OF LIABILITY. IN NO EVENT SHALL VALVE OR ITS SUPPLIERS BE LIABLE 31 | FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER 32 | (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, 33 | BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY 34 | LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE ENGINE AND/OR THE 35 | SDK, EVEN IF VALVE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 36 | 37 | 38 | If you would like to use the SDK for a commercial purpose, please contact Valve 39 | at sourceengine@valvesoftware.com. 40 | -------------------------------------------------------------------------------- /engine/shake.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2002, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef SHAKE_H 16 | #define SHAKE_H 17 | 18 | // Screen / View effects 19 | 20 | // screen shake 21 | extern int gmsgShake; 22 | 23 | // This structure is sent over the net to describe a screen shake event 24 | typedef struct 25 | { 26 | unsigned short amplitude; // FIXED 4.12 amount of shake 27 | unsigned short duration; // FIXED 4.12 seconds duration 28 | unsigned short frequency; // FIXED 8.8 noise frequency (low frequency is a jerk,high frequency is a rumble) 29 | } ScreenShake; 30 | 31 | extern void V_ApplyShake( float *origin, float *angles, float factor ); 32 | extern void V_CalcShake( void ); 33 | extern int V_ScreenShake( const char *pszName, int iSize, void *pbuf ); 34 | extern int V_ScreenFade( const char *pszName, int iSize, void *pbuf ); 35 | 36 | // Fade in/out 37 | extern int gmsgFade; 38 | 39 | #define FFADE_IN 0x0000 // Just here so we don't pass 0 into the function 40 | #define FFADE_OUT 0x0001 // Fade out (not in) 41 | #define FFADE_MODULATE 0x0002 // Modulate (don't blend) 42 | #define FFADE_STAYOUT 0x0004 // ignores the duration, stays faded out until new ScreenFade message received 43 | #define FFADE_LONGFADE 0x0008 // used to indicate the fade can be longer than 16 seconds (added for czero) 44 | 45 | 46 | // This structure is sent over the net to describe a screen fade event 47 | typedef struct 48 | { 49 | unsigned short duration; // FIXED 4.12 seconds duration 50 | unsigned short holdTime; // FIXED 4.12 seconds duration until reset (fade & hold) 51 | short fadeFlags; // flags 52 | byte r, g, b, a; // fade to color ( max alpha ) 53 | } ScreenFade; 54 | 55 | #endif // SHAKE_H 56 | 57 | -------------------------------------------------------------------------------- /external/SDL2/SDL_test_log.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_log.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | * 32 | * Wrapper to log in the TEST category 33 | * 34 | */ 35 | 36 | #ifndef _SDL_test_log_h 37 | #define _SDL_test_log_h 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | /* *INDENT-OFF* */ 43 | extern "C" { 44 | /* *INDENT-ON* */ 45 | #endif 46 | 47 | /** 48 | * \brief Prints given message with a timestamp in the TEST category and INFO priority. 49 | * 50 | * \param fmt Message to be logged 51 | */ 52 | void SDLTest_Log(const char *fmt, ...); 53 | 54 | /** 55 | * \brief Prints given message with a timestamp in the TEST category and the ERROR priority. 56 | * 57 | * \param fmt Message to be logged 58 | */ 59 | void SDLTest_LogError(const char *fmt, ...); 60 | 61 | /* Ends C function definitions when using C++ */ 62 | #ifdef __cplusplus 63 | /* *INDENT-OFF* */ 64 | } 65 | /* *INDENT-ON* */ 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* _SDL_test_log_h */ 70 | 71 | /* vi: set ts=4 sw=4 expandtab: */ 72 | -------------------------------------------------------------------------------- /external/SDL2/SDL_test_font.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_font.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef _SDL_test_font_h 31 | #define _SDL_test_font_h 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | /* *INDENT-OFF* */ 37 | extern "C" { 38 | /* *INDENT-ON* */ 39 | #endif 40 | 41 | /* Function prototypes */ 42 | 43 | /** 44 | * \brief Draw a string in the currently set font. 45 | * 46 | * \param renderer The renderer to draw on. 47 | * \param x The X coordinate of the upper left corner of the string. 48 | * \param y The Y coordinate of the upper left corner of the string. 49 | * \param s The string to draw. 50 | * 51 | * \returns Returns 0 on success, -1 on failure. 52 | */ 53 | int SDLTest_DrawString(SDL_Renderer * renderer, int x, int y, const char *s); 54 | 55 | 56 | /* Ends C function definitions when using C++ */ 57 | #ifdef __cplusplus 58 | /* *INDENT-OFF* */ 59 | } 60 | /* *INDENT-ON* */ 61 | #endif 62 | #include "close_code.h" 63 | 64 | #endif /* _SDL_test_font_h */ 65 | 66 | /* vi: set ts=4 sw=4 expandtab: */ 67 | -------------------------------------------------------------------------------- /ricochet/cl_dll/util.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // util.cpp 17 | // 18 | // implementation of class-less helper functions 19 | // 20 | 21 | #include "stdio.h" 22 | #include "stdlib.h" 23 | #include "math.h" 24 | 25 | #include "hud.h" 26 | #include "cl_util.h" 27 | #include 28 | 29 | vec3_t vec3_origin( 0, 0, 0 ); 30 | 31 | double sqrt(double x); 32 | 33 | float Length(const float *v) 34 | { 35 | int i; 36 | float length; 37 | 38 | length = 0; 39 | for (i=0 ; i< 3 ; i++) 40 | length += v[i]*v[i]; 41 | length = sqrt (length); // FIXME 42 | 43 | return length; 44 | } 45 | 46 | float VectorNormalize (float *v) 47 | { 48 | float length, ilength; 49 | 50 | length = v[0]*v[0] + v[1]*v[1] + v[2]*v[2]; 51 | length = sqrt (length); // FIXME 52 | 53 | if (length) 54 | { 55 | ilength = 1/length; 56 | v[0] *= ilength; 57 | v[1] *= ilength; 58 | v[2] *= ilength; 59 | } 60 | 61 | return length; 62 | 63 | } 64 | 65 | void VectorInverse ( float *v ) 66 | { 67 | v[0] = -v[0]; 68 | v[1] = -v[1]; 69 | v[2] = -v[2]; 70 | } 71 | 72 | void VectorScale (const float *in, float scale, float *out) 73 | { 74 | out[0] = in[0]*scale; 75 | out[1] = in[1]*scale; 76 | out[2] = in[2]*scale; 77 | } 78 | 79 | void VectorMA (const float *veca, float scale, const float *vecb, float *vecc) 80 | { 81 | vecc[0] = veca[0] + scale*vecb[0]; 82 | vecc[1] = veca[1] + scale*vecb[1]; 83 | vecc[2] = veca[2] + scale*vecb[2]; 84 | } 85 | 86 | 87 | HSPRITE LoadSprite(const char *pszName) 88 | { 89 | int i; 90 | char sz[256]; 91 | 92 | if (ScreenWidth < 640) 93 | i = 320; 94 | else 95 | i = 640; 96 | 97 | sprintf(sz, pszName, i); 98 | 99 | return SPR_Load(sz); 100 | } 101 | 102 | -------------------------------------------------------------------------------- /external/SDL2/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef _SDL_quit_h 29 | #define _SDL_quit_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* _SDL_quit_h */ 59 | -------------------------------------------------------------------------------- /external/SDL2/SDL_test.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2013 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef _SDL_test_h 31 | #define _SDL_test_h 32 | 33 | #include "SDL.h" 34 | #include "SDL_test_common.h" 35 | #include "SDL_test_font.h" 36 | #include "SDL_test_random.h" 37 | #include "SDL_test_fuzzer.h" 38 | #include "SDL_test_crc32.h" 39 | #include "SDL_test_md5.h" 40 | #include "SDL_test_log.h" 41 | #include "SDL_test_assert.h" 42 | #include "SDL_test_harness.h" 43 | #include "SDL_test_images.h" 44 | #include "SDL_test_compare.h" 45 | 46 | #include "begin_code.h" 47 | /* Set up for C function definitions, even when using C++ */ 48 | #ifdef __cplusplus 49 | /* *INDENT-OFF* */ 50 | extern "C" { 51 | /* *INDENT-ON* */ 52 | #endif 53 | 54 | /* Global definitions */ 55 | 56 | /* 57 | * Note: Maximum size of SDLTest log message is less than SDLs limit 58 | * to ensure we can fit additional information such as the timestamp. 59 | */ 60 | #define SDLTEST_MAX_LOGMESSAGE_LENGTH 3584 61 | 62 | /* Ends C function definitions when using C++ */ 63 | #ifdef __cplusplus 64 | /* *INDENT-OFF* */ 65 | } 66 | /* *INDENT-ON* */ 67 | #endif 68 | #include "close_code.h" 69 | 70 | #endif /* _SDL_test_h */ 71 | 72 | /* vi: set ts=4 sw=4 expandtab: */ 73 | --------------------------------------------------------------------------------