├── .gitattributes ├── LICENSE ├── README.md ├── common ├── Platform.h ├── Sequence.h ├── beamdef.h ├── cl_entity.h ├── com_model.h ├── con_nprint.h ├── const.h ├── crc.h ├── cvardef.h ├── demo_api.h ├── director_cmds.h ├── dlight.h ├── dll_state.h ├── entity_state.h ├── entity_types.h ├── enums.h ├── event_api.h ├── event_args.h ├── event_flags.h ├── hltv.h ├── in_buttons.h ├── interface.cpp ├── interface.h ├── ivoicetweak.h ├── mathlib.h ├── net_api.h ├── netadr.h ├── nowin.h ├── parsemsg.cpp ├── parsemsg.h ├── particledef.h ├── pmtrace.h ├── port.h ├── qfont.h ├── r_efx.h ├── r_studioint.h ├── ref_params.h ├── screenfade.h ├── studio_event.h ├── triangleapi.h ├── usercmd.h ├── weaponinfo.h ├── winsani_in.h └── winsani_out.h ├── dmc ├── cl_dll │ ├── CTF_FlagStatus.cpp │ ├── CTF_HudMessage.cpp │ ├── DMC_BSPFile.h │ ├── DMC_Teleporters.cpp │ ├── DMC_Teleporters.h │ ├── Exports.h │ ├── GameStudioModelRenderer.cpp │ ├── GameStudioModelRenderer.h │ ├── MOTD.cpp │ ├── StudioModelRenderer.cpp │ ├── StudioModelRenderer.h │ ├── ammo.cpp │ ├── ammo.h │ ├── ammo_secondary.cpp │ ├── ammohistory.cpp │ ├── ammohistory.h │ ├── battery.cpp │ ├── camera.h │ ├── cdll_int.cpp │ ├── cl_dll.dsp │ ├── cl_dll.h │ ├── cl_util.h │ ├── com_model.h │ ├── com_weapons.cpp │ ├── com_weapons.h │ ├── death.cpp │ ├── demo.cpp │ ├── demo.h │ ├── entity.cpp │ ├── ev_common.cpp │ ├── ev_hldm.cpp │ ├── ev_hldm.h │ ├── events.cpp │ ├── eventscripts.h │ ├── flashlight.cpp │ ├── geiger.cpp │ ├── health.cpp │ ├── health.h │ ├── hud.cpp │ ├── hud.h │ ├── hud_iface.h │ ├── hud_msg.cpp │ ├── hud_redraw.cpp │ ├── hud_servers.cpp │ ├── hud_servers.h │ ├── hud_servers_priv.h │ ├── hud_spectator.cpp │ ├── hud_spectator.h │ ├── hud_update.cpp │ ├── in_camera.cpp │ ├── in_defs.h │ ├── input.cpp │ ├── inputw32.cpp │ ├── kbutton.h │ ├── menu.cpp │ ├── message.cpp │ ├── quake │ │ ├── quake_baseentity.cpp │ │ ├── quake_events.cpp │ │ ├── quake_objects.cpp │ │ └── quake_weapons.cpp │ ├── readme.txt │ ├── saytext.cpp │ ├── scoreboard.cpp │ ├── status_icons.cpp │ ├── statusbar.cpp │ ├── studio_util.cpp │ ├── studio_util.h │ ├── text_message.cpp │ ├── train.cpp │ ├── tri.cpp │ ├── util.cpp │ ├── util.h │ ├── util_vector.h │ ├── vgui_ControlConfigPanel.h │ ├── vgui_CustomObjects.cpp │ ├── vgui_MOTDWindow.cpp │ ├── vgui_SchemeManager.cpp │ ├── vgui_SchemeManager.h │ ├── vgui_ScorePanel.cpp │ ├── vgui_ScorePanel.h │ ├── vgui_ServerBrowser.cpp │ ├── vgui_ServerBrowser.h │ ├── vgui_SpectatorPanel.cpp │ ├── vgui_SpectatorPanel.h │ ├── vgui_int.cpp │ ├── vgui_int.h │ ├── vgui_viewport.cpp │ ├── vgui_viewport.h │ ├── view.cpp │ ├── view.h │ ├── voice_status.cpp │ ├── voice_status.h │ └── wrect.h ├── dlls │ ├── Makefile │ ├── activity.h │ ├── activitymap.h │ ├── animating.cpp │ ├── animation.cpp │ ├── animation.h │ ├── basemonster.h │ ├── bmodels.cpp │ ├── buttons.cpp │ ├── cbase.cpp │ ├── cbase.h │ ├── cdll_dll.h │ ├── client.cpp │ ├── client.h │ ├── combat.cpp │ ├── decals.h │ ├── defaultai.cpp │ ├── defaultai.h │ ├── dmc.def │ ├── dmcgl.def │ ├── doors.cpp │ ├── doors.h │ ├── effects.cpp │ ├── effects.h │ ├── enginecallback.h │ ├── explode.cpp │ ├── explode.h │ ├── extdll.h │ ├── func_break.cpp │ ├── func_break.h │ ├── func_tank.cpp │ ├── game.cpp │ ├── game.h │ ├── gamerules.cpp │ ├── gamerules.h │ ├── globals.cpp │ ├── h_ai.cpp │ ├── h_export.cpp │ ├── hl.def │ ├── hl.dsp │ ├── hlgl.def │ ├── items.cpp │ ├── items.h │ ├── lights.cpp │ ├── maprules.cpp │ ├── maprules.h │ ├── monsterevent.h │ ├── monsters.cpp │ ├── monsters.h │ ├── monsterstate.cpp │ ├── multiplay_gamerules.cpp │ ├── nodes.cpp │ ├── nodes.h │ ├── observer.cpp │ ├── pathcorner.cpp │ ├── plane.cpp │ ├── plane.h │ ├── plats.cpp │ ├── player.cpp │ ├── player.h │ ├── quake_gun.cpp │ ├── quake_gun.h │ ├── quake_items.cpp │ ├── quake_nail.cpp │ ├── quake_player.cpp │ ├── quake_rocket.cpp │ ├── quake_weapons_all.cpp │ ├── saverestore.h │ ├── schedule.cpp │ ├── schedule.h │ ├── scripted.cpp │ ├── scripted.h │ ├── scriptevent.h │ ├── singleplay_gamerules.cpp │ ├── skill.cpp │ ├── skill.h │ ├── sound.cpp │ ├── soundent.cpp │ ├── soundent.h │ ├── spectator.cpp │ ├── spectator.h │ ├── subs.cpp │ ├── teamplay_gamerules.cpp │ ├── teamplay_gamerules.h │ ├── threewave_gamerules.cpp │ ├── threewave_gamerules.h │ ├── trains.h │ ├── triggers.cpp │ ├── util.cpp │ ├── util.h │ ├── vector.h │ ├── weapons.cpp │ ├── weapons.h │ └── world.cpp └── pm_shared │ ├── pm_debug.c │ ├── pm_debug.h │ ├── pm_defs.h │ ├── pm_info.h │ ├── pm_materials.h │ ├── pm_math.c │ ├── pm_movevars.h │ ├── pm_shared.c │ └── pm_shared.h ├── engine ├── APIProxy.h ├── anorms.h ├── cdll_int.h ├── custom.h ├── customentity.h ├── edict.h ├── eiface.h ├── progdefs.h ├── progs.h ├── shake.h └── studio.h ├── external └── SDL2 │ ├── SDL.h │ ├── SDL_assert.h │ ├── SDL_atomic.h │ ├── SDL_audio.h │ ├── SDL_bits.h │ ├── SDL_blendmode.h │ ├── SDL_clipboard.h │ ├── SDL_config.h │ ├── SDL_config_android.h │ ├── SDL_config_iphoneos.h │ ├── SDL_config_macosx.h │ ├── SDL_config_minimal.h │ ├── SDL_config_nintendods.h │ ├── SDL_config_pandora.h │ ├── SDL_config_windows.h │ ├── SDL_config_wiz.h │ ├── SDL_copying.h │ ├── SDL_cpuinfo.h │ ├── SDL_endian.h │ ├── SDL_error.h │ ├── SDL_events.h │ ├── SDL_gamecontroller.h │ ├── SDL_gesture.h │ ├── SDL_haptic.h │ ├── SDL_hints.h │ ├── SDL_input.h │ ├── SDL_joystick.h │ ├── SDL_keyboard.h │ ├── SDL_keycode.h │ ├── SDL_loadso.h │ ├── SDL_log.h │ ├── SDL_main.h │ ├── SDL_messagebox.h │ ├── SDL_mouse.h │ ├── SDL_mutex.h │ ├── SDL_name.h │ ├── SDL_opengl.h │ ├── SDL_opengles.h │ ├── SDL_opengles2.h │ ├── SDL_pixels.h │ ├── SDL_platform.h │ ├── SDL_power.h │ ├── SDL_quit.h │ ├── SDL_rect.h │ ├── SDL_render.h │ ├── SDL_revision.h │ ├── SDL_rwops.h │ ├── SDL_scancode.h │ ├── SDL_shape.h │ ├── SDL_stdinc.h │ ├── SDL_surface.h │ ├── SDL_system.h │ ├── SDL_syswm.h │ ├── SDL_test.h │ ├── SDL_test_assert.h │ ├── SDL_test_common.h │ ├── SDL_test_compare.h │ ├── SDL_test_crc32.h │ ├── SDL_test_font.h │ ├── SDL_test_fuzzer.h │ ├── SDL_test_harness.h │ ├── SDL_test_images.h │ ├── SDL_test_log.h │ ├── SDL_test_md5.h │ ├── SDL_test_random.h │ ├── SDL_thread.h │ ├── SDL_timer.h │ ├── SDL_touch.h │ ├── SDL_types.h │ ├── SDL_version.h │ ├── SDL_video.h │ ├── begin_code.h │ ├── close_code.h │ └── merge_sdl2.sh ├── filecopy.bat ├── game ├── dmc │ └── dmc.fgd └── ricochet │ └── ricochet.fgd ├── game_shared ├── GameEvent.h ├── bitvec.h ├── bot │ ├── bot.cpp │ ├── bot.h │ ├── bot_constants.h │ ├── bot_manager.cpp │ ├── bot_manager.h │ ├── bot_profile.cpp │ ├── bot_profile.h │ ├── bot_util.cpp │ ├── bot_util.h │ ├── improv.h │ ├── nav.h │ ├── nav_area.cpp │ ├── nav_area.h │ ├── nav_file.cpp │ ├── nav_node.cpp │ ├── nav_node.h │ ├── nav_path.cpp │ ├── nav_path.h │ └── simple_state_machine.h ├── perf_counter.h ├── shared_util.cpp ├── shared_util.h ├── simple_checksum.h ├── steam_util.h ├── vgui_checkbutton2.cpp ├── vgui_checkbutton2.h ├── vgui_defaultinputsignal.h ├── vgui_grid.cpp ├── vgui_grid.h ├── vgui_helpers.cpp ├── vgui_helpers.h ├── vgui_listbox.cpp ├── vgui_listbox.h ├── vgui_loadtga.cpp ├── vgui_loadtga.h ├── vgui_scrollbar2.cpp ├── vgui_scrollbar2.h ├── vgui_slider2.cpp ├── vgui_slider2.h ├── voice_banmgr.cpp ├── voice_banmgr.h ├── voice_common.h ├── voice_gamemgr.cpp ├── voice_gamemgr.h ├── voice_status.cpp ├── voice_status.h ├── voice_status_hud.cpp ├── voice_status_hud.h ├── voice_vgui_tweakdlg.cpp └── voice_vgui_tweakdlg.h ├── lib └── public │ ├── SDL2.lib │ └── game_controls.lib ├── linux ├── Makefile ├── Makefile.dmc_cdll ├── Makefile.dmcdll ├── Makefile.hl_cdll ├── Makefile.hldll ├── Makefile.ricochet_cdll ├── Makefile.ricochetdll ├── gendbg.sh ├── libSDL2-2.0.0.dylib ├── libSDL2-2.0.0.dylib.dSYM │ └── Contents │ │ ├── Info.plist │ │ └── Resources │ │ └── DWARF │ │ └── libsdl2-2.0.0.dylib ├── libSDL2-2.0.so.0 ├── libSDL2-2.0.so.0.dbg ├── libSDL2.dylib ├── libSDL2.so ├── release │ ├── vgui.dylib │ └── vgui.so └── vgui.so ├── network ├── Delta.txt └── delta.lst ├── projects ├── .gitignore ├── readme.txt └── vs2019 │ ├── .gitignore │ ├── bspinfo.vcxproj │ ├── bspinfo.vcxproj.filters │ ├── dmc_cdll.vcxproj │ ├── dmc_cdll.vcxproj.filters │ ├── dmcdll.vcxproj │ ├── dmcdll.vcxproj.filters │ ├── light.vcxproj │ ├── light.vcxproj.filters │ ├── makefont.vcxproj │ ├── makefont.vcxproj.filters │ ├── makels.vcxproj │ ├── makels.vcxproj.filters │ ├── mdlviewer.vcxproj │ ├── mdlviewer.vcxproj.filters │ ├── mkmovie.vcxproj │ ├── mkmovie.vcxproj.filters │ ├── procinfo.vcxproj │ ├── procinfo.vcxproj.filters │ ├── projects.sln │ ├── qbsp2.vcxproj │ ├── qbsp2.vcxproj.filters │ ├── qcsg.vcxproj │ ├── qcsg.vcxproj.filters │ ├── qlumpy.vcxproj │ ├── qlumpy.vcxproj.filters │ ├── qrad.vcxproj │ ├── qrad.vcxproj.filters │ ├── readme.txt │ ├── serverctrl.vcxproj │ ├── serverctrl.vcxproj.filters │ ├── smdlexp.vcxproj │ ├── smdlexp.vcxproj.filters │ ├── sprgen.vcxproj │ ├── sprgen.vcxproj.filters │ ├── studiomdl.vcxproj │ ├── studiomdl.vcxproj.filters │ ├── utils.sln │ ├── vis.vcxproj │ ├── vis.vcxproj.filters │ ├── xwad.vcxproj │ └── xwad.vcxproj.filters ├── public ├── FileSystem.h ├── archtypes.h ├── cl_dll │ └── IGameClientExports.h ├── interface.cpp ├── interface.h ├── keydefs.h ├── particleman.h ├── pman_particlemem.h ├── pman_triangleffect.h └── steam │ └── steamtypes.h └── utils ├── bspinfo ├── bspinfo.c ├── bspinfo.dsp └── bspinfo.dsw ├── common ├── bspfile.c ├── bspfile.h ├── bsplib.c ├── bsplib.h ├── cmdlib.c ├── cmdlib.h ├── l3dslib.c ├── l3dslib.h ├── lbmlib.c ├── lbmlib.h ├── mathlib.c ├── mathlib.h ├── meter.c ├── meter.h ├── movie.h ├── polylib.c ├── polylib.h ├── scriplib.c ├── scriplib.h ├── threads.c ├── threads.h ├── trilib.c ├── trilib.h ├── wadlib.c └── wadlib.h ├── light ├── light.c ├── light.dsp ├── light.h ├── ltface.c ├── new │ ├── light.c │ ├── light.h │ ├── ltface.c │ └── trace.c └── trace.c ├── makefont ├── makefont.cpp ├── makefont.dsp └── makefont.dsw ├── makels ├── makels.cpp ├── makels.dsp ├── makels.dsw └── makels.mak ├── mdlviewer ├── mdlviewer.cpp ├── mdlviewer.dsp ├── mdlviewer.dsw ├── mdlviewer.h ├── studio_render.cpp └── studio_utils.cpp ├── mkmovie ├── mkmovie.c └── mkmovie.dsp ├── procinfo ├── lib │ └── win32_vc6 │ │ └── procinfo.lib ├── procinfo.cpp ├── procinfo.dsp └── procinfo.h ├── qbsp2 ├── bsp5.h ├── cull.c ├── gldraw.c ├── makefile ├── merge.c ├── nodraw.c ├── outside.c ├── portals.c ├── qbsp.c ├── qbsp2.dsp ├── qbsp2.dsw ├── solidbsp.c ├── surfaces.c ├── tjunc.c └── writebsp.c ├── qcsg ├── brush.c ├── csg.h ├── gldraw.c ├── hullfile.c ├── hulls.txt ├── map.c ├── qcsg.c ├── qcsg.dsp ├── qcsg.dsw ├── source.p0 ├── source.p1 ├── source.p2 └── textures.c ├── qlumpy ├── qlumpy.c ├── qlumpy.doc ├── qlumpy.dsp ├── qlumpy.dsw ├── qlumpy.h └── quakegrb.c ├── qrad ├── lightmap.c ├── qrad.c ├── qrad.dsp ├── qrad.dsw ├── qrad.h ├── qrad.txt ├── trace.c └── vismat.c ├── serverctrl ├── ServerCtrl.cpp ├── ServerCtrl.h ├── ServerCtrl.rc ├── ServerCtrlDlg.cpp ├── ServerCtrlDlg.h ├── StdAfx.cpp ├── StdAfx.h ├── res │ ├── serverctrl.ico │ └── serverctrl.rc2 ├── resource.h └── serverctrl.dsp ├── smdlexp ├── smdlexp.cpp ├── smdlexp.def ├── smdlexp.dsp ├── smdlexp.dsw ├── smdlexp.rc ├── smedefs.h └── smexprc.h ├── sprgen ├── s_bubble.spr ├── s_explod.spr ├── s_light.spr ├── sprgen.c ├── sprgen.dsp ├── sprgen.dsw └── spritegn.h ├── studiomdl ├── bmpread.c ├── studiomdl.c ├── studiomdl.dsp ├── studiomdl.dsw ├── studiomdl.h ├── tristrip.c └── write.c ├── vgui ├── include │ ├── VGUI.h │ ├── VGUI_ActionSignal.h │ ├── VGUI_App.h │ ├── VGUI_Bitmap.h │ ├── VGUI_BitmapTGA.h │ ├── VGUI_Border.h │ ├── VGUI_BorderLayout.h │ ├── VGUI_BorderPair.h │ ├── VGUI_BuildGroup.h │ ├── VGUI_Button.h │ ├── VGUI_ButtonController.h │ ├── VGUI_ButtonGroup.h │ ├── VGUI_ChangeSignal.h │ ├── VGUI_CheckButton.h │ ├── VGUI_Color.h │ ├── VGUI_ComboKey.h │ ├── VGUI_ConfigWizard.h │ ├── VGUI_Cursor.h │ ├── VGUI_Dar.h │ ├── VGUI_DataInputStream.h │ ├── VGUI_Desktop.h │ ├── VGUI_DesktopIcon.h │ ├── VGUI_EditPanel.h │ ├── VGUI_EtchedBorder.h │ ├── VGUI_FileInputStream.h │ ├── VGUI_FlowLayout.h │ ├── VGUI_FocusChangeSignal.h │ ├── VGUI_FocusNavGroup.h │ ├── VGUI_Font.h │ ├── VGUI_Frame.h │ ├── VGUI_FrameSignal.h │ ├── VGUI_GridLayout.h │ ├── VGUI_HeaderPanel.h │ ├── VGUI_Image.h │ ├── VGUI_ImagePanel.h │ ├── VGUI_InputSignal.h │ ├── VGUI_InputStream.h │ ├── VGUI_IntChangeSignal.h │ ├── VGUI_IntLabel.h │ ├── VGUI_KeyCode.h │ ├── VGUI_Label.h │ ├── VGUI_Layout.h │ ├── VGUI_LayoutInfo.h │ ├── VGUI_LineBorder.h │ ├── VGUI_ListPanel.h │ ├── VGUI_LoweredBorder.h │ ├── VGUI_Menu.h │ ├── VGUI_MenuItem.h │ ├── VGUI_MenuSeparator.h │ ├── VGUI_MessageBox.h │ ├── VGUI_MiniApp.h │ ├── VGUI_MouseCode.h │ ├── VGUI_Panel.h │ ├── VGUI_Point.h │ ├── VGUI_PopupMenu.h │ ├── VGUI_ProgressBar.h │ ├── VGUI_RadioButton.h │ ├── VGUI_RaisedBorder.h │ ├── VGUI_RepaintSignal.h │ ├── VGUI_Scheme.h │ ├── VGUI_ScrollBar.h │ ├── VGUI_ScrollPanel.h │ ├── VGUI_Slider.h │ ├── VGUI_StackLayout.h │ ├── VGUI_String.h │ ├── VGUI_Surface.h │ ├── VGUI_SurfaceBase.h │ ├── VGUI_SurfaceGL.h │ ├── VGUI_TabPanel.h │ ├── VGUI_TablePanel.h │ ├── VGUI_TaskBar.h │ ├── VGUI_TextEntry.h │ ├── VGUI_TextGrid.h │ ├── VGUI_TextImage.h │ ├── VGUI_TextPanel.h │ ├── VGUI_TickSignal.h │ ├── VGUI_ToggleButton.h │ ├── VGUI_TreeFolder.h │ └── VGUI_WizardPanel.h └── lib │ └── win32_vc6 │ └── vgui.lib ├── visx2 ├── flow.c ├── soundpvs.c ├── vis.c ├── vis.dsp ├── vis.dsw └── vis.h └── xwad ├── xwad.c └── xwad.dsp /.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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /common/com_model.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/common/com_model.h -------------------------------------------------------------------------------- /common/con_nprint.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( CON_NPRINTH ) 16 | #define CON_NPRINTH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | typedef struct con_nprint_s 26 | { 27 | int index; // Row # 28 | float time_to_live; // # of seconds before it dissappears 29 | float color[ 3 ]; // RGB colors ( 0.0 -> 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /common/director_cmds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/common/director_cmds.h -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /common/dll_state.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/common/dll_state.h -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /common/event_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 ( EVENT_APIH ) 16 | #define EVENT_APIH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | #define EVENT_API_VERSION 1 22 | 23 | typedef struct event_api_s 24 | { 25 | int version; 26 | void ( *EV_PlaySound ) ( int ent, float *origin, int channel, const char *sample, float volume, float attenuation, int fFlags, int pitch ); 27 | void ( *EV_StopSound ) ( int ent, int channel, const char *sample ); 28 | int ( *EV_FindModelIndex )( const char *pmodel ); 29 | int ( *EV_IsLocal ) ( int playernum ); 30 | int ( *EV_LocalPlayerDucking ) ( void ); 31 | void ( *EV_LocalPlayerViewheight ) ( float * ); 32 | void ( *EV_LocalPlayerBounds ) ( int hull, float *mins, float *maxs ); 33 | int ( *EV_IndexFromTrace) ( struct pmtrace_s *pTrace ); 34 | struct physent_s *( *EV_GetPhysent ) ( int idx ); 35 | void ( *EV_SetUpPlayerPrediction ) ( int dopred, int bIncludeLocalClient ); 36 | void ( *EV_PushPMStates ) ( void ); 37 | void ( *EV_PopPMStates ) ( void ); 38 | void ( *EV_SetSolidPlayers ) (int playernum); 39 | void ( *EV_SetTraceHull ) ( int hull ); 40 | void ( *EV_PlayerTrace ) ( float *start, float *end, int traceFlags, int ignore_pe, struct pmtrace_s *tr ); 41 | void ( *EV_WeaponAnimation ) ( int sequence, int body ); 42 | unsigned short ( *EV_PrecacheEvent ) ( int type, const char* psz ); 43 | void ( *EV_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 ); 44 | const char *( *EV_TraceTexture ) ( int ground, float *vstart, float *vend ); 45 | void ( *EV_StopAllSounds ) ( int entnum, int entchannel ); 46 | void ( *EV_KillEvents ) ( int entnum, const char *eventname ); 47 | } event_api_t; 48 | 49 | extern event_api_t eventapi; 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /common/interface.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/common/interface.cpp -------------------------------------------------------------------------------- /common/interface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/common/interface.h -------------------------------------------------------------------------------- /common/ivoicetweak.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/common/ivoicetweak.h -------------------------------------------------------------------------------- /common/net_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/common/net_api.h -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /common/nowin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/common/nowin.h -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /common/screenfade.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/common/screenfade.h -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /dmc/cl_dll/DMC_BSPFile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/DMC_BSPFile.h -------------------------------------------------------------------------------- /dmc/cl_dll/DMC_Teleporters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/DMC_Teleporters.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/DMC_Teleporters.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/DMC_Teleporters.h -------------------------------------------------------------------------------- /dmc/cl_dll/GameStudioModelRenderer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/GameStudioModelRenderer.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/GameStudioModelRenderer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/GameStudioModelRenderer.h -------------------------------------------------------------------------------- /dmc/cl_dll/StudioModelRenderer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/StudioModelRenderer.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/StudioModelRenderer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/StudioModelRenderer.h -------------------------------------------------------------------------------- /dmc/cl_dll/ammo.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 | 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 -------------------------------------------------------------------------------- /dmc/cl_dll/camera.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/camera.h -------------------------------------------------------------------------------- /dmc/cl_dll/cl_dll.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 | // 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 | -------------------------------------------------------------------------------- /dmc/cl_dll/com_weapons.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/com_weapons.h -------------------------------------------------------------------------------- /dmc/cl_dll/demo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/demo.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/demo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/demo.h -------------------------------------------------------------------------------- /dmc/cl_dll/ev_hldm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/ev_hldm.h -------------------------------------------------------------------------------- /dmc/cl_dll/events.cpp: -------------------------------------------------------------------------------- 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 | #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 | } 31 | -------------------------------------------------------------------------------- /dmc/cl_dll/eventscripts.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/eventscripts.h -------------------------------------------------------------------------------- /dmc/cl_dll/hud_iface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/hud_iface.h -------------------------------------------------------------------------------- /dmc/cl_dll/hud_servers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/hud_servers.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/hud_servers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/hud_servers.h -------------------------------------------------------------------------------- /dmc/cl_dll/hud_servers_priv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/hud_servers_priv.h -------------------------------------------------------------------------------- /dmc/cl_dll/hud_spectator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/hud_spectator.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/hud_spectator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/hud_spectator.h -------------------------------------------------------------------------------- /dmc/cl_dll/hud_update.cpp: -------------------------------------------------------------------------------- 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 | // 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 | int iCarriedWeapons; 32 | 33 | int CHud::UpdateClientData(client_data_t *cdata, float time) 34 | { 35 | memcpy(m_vecOrigin, cdata->origin, sizeof(vec3_t)); 36 | memcpy(m_vecAngles, cdata->viewangles, sizeof(vec3_t)); 37 | 38 | m_iKeyBits = CL_ButtonBits( 0 ); 39 | m_iWeaponBits = cdata->iWeaponBits; 40 | 41 | in_fov = cdata->fov; 42 | 43 | Think(); 44 | 45 | cdata->fov = m_iFOV; 46 | 47 | v_idlescale = m_iConcussionEffect; 48 | 49 | CL_ResetButtonBits( m_iKeyBits ); 50 | 51 | // return 1 if in anything in the client_data struct has been changed, 0 otherwise 52 | return 1; 53 | } 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /dmc/cl_dll/in_camera.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/in_camera.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/in_defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/in_defs.h -------------------------------------------------------------------------------- /dmc/cl_dll/input.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/input.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/inputw32.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/inputw32.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/kbutton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/kbutton.h -------------------------------------------------------------------------------- /dmc/cl_dll/quake/quake_objects.cpp: -------------------------------------------------------------------------------- 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 | #include "../hud.h" 16 | #include "../cl_util.h" 17 | #include "../demo.h" 18 | 19 | #include "demo_api.h" 20 | #include "const.h" 21 | #include "entity_state.h" 22 | #include "cl_entity.h" 23 | 24 | #include "pm_defs.h" 25 | #include "event_api.h" 26 | #include "entity_types.h" 27 | #include "r_efx.h" 28 | 29 | 30 | extern BEAM *pBeam; 31 | void HUD_GetLastOrg( float *org ); 32 | 33 | void UpdateBeams ( void ) 34 | { 35 | vec3_t forward, vecSrc, vecEnd, origin, angles, right, up; 36 | vec3_t view_ofs; 37 | pmtrace_t tr; 38 | cl_entity_t *pthisplayer = gEngfuncs.GetLocalPlayer(); 39 | int idx = pthisplayer->index; 40 | 41 | // Get our exact viewangles from engine 42 | gEngfuncs.GetViewAngles( (float *)angles ); 43 | 44 | // Determine our last predicted origin 45 | HUD_GetLastOrg( (float *)&origin ); 46 | 47 | AngleVectors( angles, forward, right, up ); 48 | 49 | VectorCopy( origin, vecSrc ); 50 | 51 | VectorMA( vecSrc, 2048, forward, vecEnd ); 52 | 53 | gEngfuncs.pEventAPI->EV_SetUpPlayerPrediction( false, true ); 54 | 55 | // Store off the old count 56 | gEngfuncs.pEventAPI->EV_PushPMStates(); 57 | 58 | // Now add in all of the players. 59 | gEngfuncs.pEventAPI->EV_SetSolidPlayers ( idx - 1 ); 60 | 61 | gEngfuncs.pEventAPI->EV_SetTraceHull( 2 ); 62 | gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecEnd, PM_STUDIO_BOX, -1, &tr ); 63 | 64 | gEngfuncs.pEventAPI->EV_PopPMStates(); 65 | 66 | pBeam->target = tr.endpos; 67 | pBeam->die = gEngfuncs.GetClientTime() + 0.1; // We keep it alive just a little bit forward in the future, just in case. 68 | } 69 | 70 | /* 71 | ===================== 72 | Game_AddObjects 73 | 74 | Add game specific, client-side objects here 75 | ===================== 76 | */ 77 | void Game_AddObjects( void ) 78 | { 79 | if ( pBeam ) 80 | UpdateBeams(); 81 | } -------------------------------------------------------------------------------- /dmc/cl_dll/studio_util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/studio_util.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/studio_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/studio_util.h -------------------------------------------------------------------------------- /dmc/cl_dll/train.cpp: -------------------------------------------------------------------------------- 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 | // 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 | -------------------------------------------------------------------------------- /dmc/cl_dll/tri.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/tri.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_ControlConfigPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_ControlConfigPanel.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_SchemeManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_SchemeManager.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_ScorePanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_ScorePanel.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_ServerBrowser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_ServerBrowser.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_ServerBrowser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_ServerBrowser.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_SpectatorPanel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_SpectatorPanel.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_SpectatorPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_SpectatorPanel.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_int.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_int.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_int.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_viewport.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/vgui_viewport.h -------------------------------------------------------------------------------- /dmc/cl_dll/view.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/view.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/view.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/view.h -------------------------------------------------------------------------------- /dmc/cl_dll/voice_status.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/voice_status.h -------------------------------------------------------------------------------- /dmc/cl_dll/wrect.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/cl_dll/wrect.h -------------------------------------------------------------------------------- /dmc/dlls/animation.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 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 | -------------------------------------------------------------------------------- /dmc/dlls/cdll_dll.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 | // 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 257 // ??? 24 | 25 | #define MAX_WEAPON_SLOTS 9 // 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 | -------------------------------------------------------------------------------- /dmc/dlls/decals.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 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 | -------------------------------------------------------------------------------- /dmc/dlls/dmc.def: -------------------------------------------------------------------------------- 1 | LIBRARY dmc 2 | EXPORTS 3 | GiveFnptrsToDll @1 4 | SECTIONS 5 | .data READ WRITE 6 | -------------------------------------------------------------------------------- /dmc/dlls/dmcgl.def: -------------------------------------------------------------------------------- 1 | LIBRARY dmcgl 2 | EXPORTS 3 | GiveFnptrsToDll @1 4 | GetEntityInterfaces @2 5 | SetChangeParms @3 6 | SetNewParms @4 7 | ClientKill @5 8 | PutClientInServer @6 9 | PlayerPreThink @7 10 | PlayerPostThink @8 11 | ClientConnect @9 12 | ClientDisconnect @10 13 | StartFrame @11 14 | SECTIONS 15 | .data READ WRITE 16 | -------------------------------------------------------------------------------- /dmc/dlls/doors.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 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 | -------------------------------------------------------------------------------- /dmc/dlls/explode.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 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 | -------------------------------------------------------------------------------- /dmc/dlls/extdll.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 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 | -------------------------------------------------------------------------------- /dmc/dlls/game.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 | 16 | #ifndef GAME_H 17 | #define GAME_H 18 | 19 | extern void GameDLLInit( void ); 20 | 21 | 22 | extern cvar_t displaysoundlist; 23 | extern cvar_t mapcyclefile; 24 | extern cvar_t servercfgfile; 25 | extern cvar_t lservercfgfile; 26 | 27 | // multiplayer server rules 28 | extern cvar_t fraglimit; 29 | extern cvar_t timelimit; 30 | extern cvar_t friendlyfir; 31 | extern cvar_t falldamage; 32 | extern cvar_t weaponstay; 33 | extern cvar_t forcerespaw; 34 | extern cvar_t flashlight; 35 | extern cvar_t aimcrosshair; 36 | extern cvar_t decalfrequency; 37 | extern cvar_t teamlist; 38 | extern cvar_t teamoverride; 39 | extern cvar_t defaultteam; 40 | 41 | // Engine Cvars 42 | extern cvar_t *g_psv_gravity; 43 | extern cvar_t *g_psv_aim; 44 | extern cvar_t *g_footsteps; 45 | 46 | #endif // GAME_H 47 | -------------------------------------------------------------------------------- /dmc/dlls/globals.cpp: -------------------------------------------------------------------------------- 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 | /* 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 | -------------------------------------------------------------------------------- /dmc/dlls/h_export.cpp: -------------------------------------------------------------------------------- 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 | /* 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 | #undef DLLEXPORT 28 | 29 | #ifdef _WIN32 30 | #define DLLEXPORT __stdcall 31 | #else 32 | #define DLLEXPORT __attribute__ ((visibility("default"))) 33 | #endif 34 | 35 | // Holds engine functionality callbacks 36 | enginefuncs_t g_engfuncs; 37 | globalvars_t *gpGlobals; 38 | 39 | 40 | #ifdef _WIN32 41 | 42 | // Required DLL entry point 43 | BOOL WINAPI DllMain( 44 | HINSTANCE hinstDLL, 45 | DWORD fdwReason, 46 | LPVOID lpvReserved) 47 | { 48 | if (fdwReason == DLL_PROCESS_ATTACH) 49 | { 50 | } 51 | else if (fdwReason == DLL_PROCESS_DETACH) 52 | { 53 | } 54 | return TRUE; 55 | } 56 | #endif 57 | 58 | extern "C" void DLLEXPORT GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals ) 59 | { 60 | memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t)); 61 | gpGlobals = pGlobals; 62 | } 63 | 64 | -------------------------------------------------------------------------------- /dmc/dlls/hl.def: -------------------------------------------------------------------------------- 1 | LIBRARY hl 2 | EXPORTS 3 | GiveFnptrsToDll @1 4 | SECTIONS 5 | .data READ WRITE 6 | -------------------------------------------------------------------------------- /dmc/dlls/hlgl.def: -------------------------------------------------------------------------------- 1 | LIBRARY hlgl 2 | EXPORTS 3 | GiveFnptrsToDll @1 4 | GetEntityInterfaces @2 5 | SetChangeParms @3 6 | SetNewParms @4 7 | ClientKill @5 8 | PutClientInServer @6 9 | PlayerPreThink @7 10 | PlayerPostThink @8 11 | ClientConnect @9 12 | ClientDisconnect @10 13 | StartFrame @11 14 | SECTIONS 15 | .data READ WRITE 16 | -------------------------------------------------------------------------------- /dmc/dlls/items.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 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 | -------------------------------------------------------------------------------- /dmc/dlls/maprules.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 | 16 | #ifndef MAPRULES_H 17 | #define MAPRULES_H 18 | 19 | 20 | 21 | #endif // MAPRULES_H 22 | 23 | -------------------------------------------------------------------------------- /dmc/dlls/monsterevent.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 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 | -------------------------------------------------------------------------------- /dmc/dlls/monsterstate.cpp: -------------------------------------------------------------------------------- 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 | * This source code contains proprietary and confidential information of 10 | * Valve LLC and its suppliers. Access to this code is restricted to 11 | * persons who have executed a written SDK license with Valve. Any access, 12 | * use or distribution of this code by or to any unlicensed person is illegal. 13 | * 14 | ****/ 15 | //========================================================= 16 | // monsterstate.cpp - base class monster functions for 17 | // controlling core AI. 18 | //========================================================= 19 | 20 | #include "extdll.h" 21 | #include "util.h" 22 | #include "cbase.h" 23 | #include "nodes.h" 24 | #include "monsters.h" 25 | #include "animation.h" 26 | #include "saverestore.h" 27 | 28 | void CBaseMonster :: SetState ( MONSTERSTATE State ) { }; 29 | -------------------------------------------------------------------------------- /dmc/dlls/plane.cpp: -------------------------------------------------------------------------------- 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 | #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 | -------------------------------------------------------------------------------- /dmc/dlls/plane.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 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 | -------------------------------------------------------------------------------- /dmc/dlls/quake_gun.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 | /* 16 | 17 | ===== quake_gun.h ======================================================== 18 | 19 | This is a half-life weapon that fires every one of the quake weapons. 20 | It's automatically given to all players. 21 | 22 | */ 23 | #include "effects.h" 24 | 25 | class CQuakeGun : public CBasePlayerWeapon 26 | { 27 | public: 28 | void Spawn( void ); 29 | void Precache( void ); 30 | int iItemSlot( void ) { return 1; } 31 | int GetItemInfo(ItemInfo *p); 32 | 33 | int SuperDamageSound( void ); 34 | 35 | void PrimaryAttack( void ); 36 | BOOL Deploy( void ); 37 | 38 | void UpdateEffect( void ); 39 | 40 | void CreateEffect ( void ); 41 | void DestroyEffect ( void ); 42 | 43 | CBeam *m_pBeam; 44 | }; 45 | -------------------------------------------------------------------------------- /dmc/dlls/schedule.cpp: -------------------------------------------------------------------------------- 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 | * This source code contains proprietary and confidential information of 10 | * Valve LLC and its suppliers. Access to this code is restricted to 11 | * persons who have executed a written SDK license with Valve. Any access, 12 | * use or distribution of this code by or to any unlicensed person is illegal. 13 | * 14 | ****/ 15 | //========================================================= 16 | // schedule.cpp - functions and data pertaining to the 17 | // monsters' AI scheduling system. 18 | //========================================================= 19 | #include "extdll.h" 20 | #include "util.h" 21 | #include "cbase.h" 22 | #include "monsters.h" 23 | #include "animation.h" 24 | #include "scripted.h" 25 | #include "nodes.h" 26 | #include "defaultai.h" 27 | 28 | extern CGraph WorldGraph; 29 | 30 | BOOL CBaseMonster :: FHaveSchedule( void ) { return FALSE; }; 31 | void CBaseMonster :: ClearSchedule( void ) { }; 32 | BOOL CBaseMonster :: FScheduleDone ( void ) { return FALSE; }; 33 | void CBaseMonster :: ChangeSchedule ( Schedule_t *pNewSchedule ) { }; 34 | void CBaseMonster :: NextScheduledTask ( void ) { }; 35 | int CBaseMonster :: IScheduleFlags ( void ) { return 0; }; 36 | BOOL CBaseMonster :: FScheduleValid ( void ) { return FALSE; }; 37 | void CBaseMonster :: MaintainSchedule ( void ) { }; 38 | void CBaseMonster :: SetTurnActivity ( void ) { }; 39 | Task_t *CBaseMonster :: GetTask ( void ) { return NULL; }; 40 | -------------------------------------------------------------------------------- /dmc/dlls/scriptevent.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 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 | -------------------------------------------------------------------------------- /dmc/dlls/skill.cpp: -------------------------------------------------------------------------------- 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 | //========================================================= 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 | -------------------------------------------------------------------------------- /dmc/dlls/spectator.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 | // 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 | -------------------------------------------------------------------------------- /dmc/pm_shared/pm_debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/pm_shared/pm_debug.c -------------------------------------------------------------------------------- /dmc/pm_shared/pm_debug.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/pm_shared/pm_debug.h -------------------------------------------------------------------------------- /dmc/pm_shared/pm_defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/pm_shared/pm_defs.h -------------------------------------------------------------------------------- /dmc/pm_shared/pm_info.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/pm_shared/pm_info.h -------------------------------------------------------------------------------- /dmc/pm_shared/pm_materials.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/pm_shared/pm_materials.h -------------------------------------------------------------------------------- /dmc/pm_shared/pm_math.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/pm_shared/pm_math.c -------------------------------------------------------------------------------- /dmc/pm_shared/pm_movevars.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/dmc/pm_shared/pm_movevars.h -------------------------------------------------------------------------------- /dmc/pm_shared/pm_shared.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 | 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 Movement modes (stored in pev->iuser1, so the physics code can get at them) 28 | #define OBS_NONE 0 29 | #define OBS_CHASE_LOCKED 1 30 | #define OBS_CHASE_FREE 2 31 | #define OBS_ROAMING 3 32 | #define OBS_IN_EYE 4 33 | #define OBS_MAP_FREE 5 34 | #define OBS_MAP_CHASE 6 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /engine/edict.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/engine/edict.h -------------------------------------------------------------------------------- /engine/progs.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 PROGS_H 16 | #define PROGS_H 17 | 18 | #include "progdefs.h" 19 | 20 | // 16 simultaneous events, max 21 | #define MAX_EVENT_QUEUE 64 22 | 23 | #define DEFAULT_EVENT_RESENDS 1 24 | 25 | #include "event_flags.h" 26 | 27 | typedef struct event_info_s event_info_t; 28 | 29 | #include "event_args.h" 30 | 31 | struct event_info_s 32 | { 33 | unsigned short index; // 0 implies not in use 34 | 35 | short packet_index; // Use data from state info for entity in delta_packet . -1 implies separate info based on event 36 | // parameter signature 37 | short entity_index; // The edict this event is associated with 38 | 39 | float fire_time; // if non-zero, the time when the event should be fired ( fixed up on the client ) 40 | 41 | event_args_t args; 42 | 43 | // CLIENT ONLY 44 | int flags; // Reliable or not, etc. 45 | 46 | }; 47 | 48 | typedef struct event_state_s event_state_t; 49 | 50 | struct event_state_s 51 | { 52 | struct event_info_s ei[ MAX_EVENT_QUEUE ]; 53 | }; 54 | 55 | #if !defined( ENTITY_STATEH ) 56 | #include "entity_state.h" 57 | #endif 58 | 59 | #if !defined( EDICT_H ) 60 | #include "edict.h" 61 | #endif 62 | 63 | #define STRUCT_FROM_LINK(l,t,m) ((t *)((byte *)l - (int)&(((t *)0)->m))) 64 | #define EDICT_FROM_AREA(l) STRUCT_FROM_LINK(l,edict_t,area) 65 | 66 | //============================================================================ 67 | 68 | extern char *pr_strings; 69 | extern globalvars_t gGlobalVariables; 70 | 71 | //============================================================================ 72 | 73 | edict_t *ED_Alloc (void); 74 | void ED_Free (edict_t *ed); 75 | void ED_LoadFromFile (char *data); 76 | 77 | edict_t *EDICT_NUM(int n); 78 | int NUM_FOR_EDICT(const edict_t *e); 79 | 80 | #define PROG_TO_EDICT(e) ((edict_t *)((byte *)sv.edicts + e)) 81 | 82 | #endif // PROGS_H 83 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /external/SDL2/SDL_clipboard.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_clipboard.h 24 | * 25 | * Include file for SDL clipboard handling 26 | */ 27 | 28 | #ifndef _SDL_clipboard_h 29 | #define _SDL_clipboard_h 30 | 31 | #include "SDL_stdinc.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 Put UTF-8 text into the clipboard 45 | * 46 | * \sa SDL_GetClipboardText() 47 | */ 48 | extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); 49 | 50 | /** 51 | * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free() 52 | * 53 | * \sa SDL_SetClipboardText() 54 | */ 55 | extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); 56 | 57 | /** 58 | * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty 59 | * 60 | * \sa SDL_GetClipboardText() 61 | */ 62 | extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); 63 | 64 | 65 | /* Ends C function definitions when using C++ */ 66 | #ifdef __cplusplus 67 | /* *INDENT-OFF* */ 68 | } 69 | /* *INDENT-ON* */ 70 | #endif 71 | #include "close_code.h" 72 | 73 | #endif /* _SDL_clipboard_h */ 74 | 75 | /* vi: set ts=4 sw=4 expandtab: */ 76 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-0:aaaaaaaaaaah" 2 | #define SDL_REVISION_NUMBER 0 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /filecopy.bat: -------------------------------------------------------------------------------- 1 | rem @echo off 2 | rem echo %~f2 3 | p4 edit %~f2 4 | @copy %1 %~f2 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /game_shared/GameEvent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/game_shared/GameEvent.h -------------------------------------------------------------------------------- /game_shared/bot/bot.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/game_shared/bot/bot.cpp -------------------------------------------------------------------------------- /game_shared/bot/bot_constants.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/game_shared/bot/bot_constants.h -------------------------------------------------------------------------------- /game_shared/bot/bot_manager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/game_shared/bot/bot_manager.cpp -------------------------------------------------------------------------------- /game_shared/bot/bot_manager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/game_shared/bot/bot_manager.h -------------------------------------------------------------------------------- /game_shared/bot/bot_profile.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/game_shared/bot/bot_profile.cpp -------------------------------------------------------------------------------- /game_shared/bot/bot_profile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/game_shared/bot/bot_profile.h -------------------------------------------------------------------------------- /game_shared/bot/bot_util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/game_shared/bot/bot_util.cpp -------------------------------------------------------------------------------- /game_shared/bot/bot_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/game_shared/bot/bot_util.h -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | 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 | -------------------------------------------------------------------------------- /linux/libSDL2-2.0.0.dylib.dSYM/Contents/Resources/DWARF/libsdl2-2.0.0.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/linux/libSDL2-2.0.0.dylib.dSYM/Contents/Resources/DWARF/libsdl2-2.0.0.dylib -------------------------------------------------------------------------------- /linux/libSDL2-2.0.so.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/linux/libSDL2-2.0.so.0 -------------------------------------------------------------------------------- /linux/libSDL2-2.0.so.0.dbg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/linux/libSDL2-2.0.so.0.dbg -------------------------------------------------------------------------------- /linux/libSDL2.dylib: -------------------------------------------------------------------------------- 1 | libSDL2-2.0.0.dylib -------------------------------------------------------------------------------- /linux/libSDL2.so: -------------------------------------------------------------------------------- 1 | libSDL2-2.0.so.0 -------------------------------------------------------------------------------- /linux/release/vgui.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/linux/release/vgui.dylib -------------------------------------------------------------------------------- /linux/release/vgui.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/linux/release/vgui.so -------------------------------------------------------------------------------- /linux/vgui.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/linux/vgui.so -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /projects/vs2019/.gitignore: -------------------------------------------------------------------------------- 1 | # ignore uneeded files and folders: 2 | Debug/ 3 | Release/ 4 | ipch/ 5 | *.sdf 6 | *.suo 7 | *.user 8 | -------------------------------------------------------------------------------- /projects/vs2019/makefont.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 | {9e2cd4d4-3990-41a2-ae01-1cdcaeb123b2} 27 | 28 | 29 | {673592e5-697a-4bb6-b06b-8104dcc2c470} 30 | 31 | 32 | 33 | 34 | Source Files\utils\common 35 | 36 | 37 | Source Files\utils\common 38 | 39 | 40 | Source Files\utils\makefont 41 | 42 | 43 | 44 | 45 | Header Files\utils\common 46 | 47 | 48 | Header Files\utils\common 49 | 50 | 51 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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}") = "dmcdll", "dmcdll.vcxproj", "{6C5EBEF4-40AE-4167-B3D5-26F0AB47E382}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dmc_cdll", "dmc_cdll.vcxproj", "{50BD4CD5-4043-4457-BA51-7CF8FFC43767}" 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 | {6C5EBEF4-40AE-4167-B3D5-26F0AB47E382}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {6C5EBEF4-40AE-4167-B3D5-26F0AB47E382}.Debug|Win32.Build.0 = Debug|Win32 18 | {6C5EBEF4-40AE-4167-B3D5-26F0AB47E382}.Release|Win32.ActiveCfg = Release|Win32 19 | {6C5EBEF4-40AE-4167-B3D5-26F0AB47E382}.Release|Win32.Build.0 = Release|Win32 20 | {50BD4CD5-4043-4457-BA51-7CF8FFC43767}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {50BD4CD5-4043-4457-BA51-7CF8FFC43767}.Debug|Win32.Build.0 = Debug|Win32 22 | {50BD4CD5-4043-4457-BA51-7CF8FFC43767}.Release|Win32.ActiveCfg = Release|Win32 23 | {50BD4CD5-4043-4457-BA51-7CF8FFC43767}.Release|Win32.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {03590C40-6CC6-40FC-AB43-ECFBD52F6F2D} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /projects/vs2019/xwad.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 | {9e2cd4d4-3990-41a2-ae01-1cdcaeb123b2} 27 | 28 | 29 | {ec10acce-757c-4a52-8d45-a0ff3057eef4} 30 | 31 | 32 | {a00d342e-ddd3-4ad1-8c9e-28f591981c0a} 33 | 34 | 35 | 36 | 37 | Source Files\utils\common 38 | 39 | 40 | Source Files\utils\common 41 | 42 | 43 | Source Files\utils\common 44 | 45 | 46 | Source Files\utils\xwad 47 | 48 | 49 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/cl_dll/IGameClientExports.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/public/cl_dll/IGameClientExports.h -------------------------------------------------------------------------------- /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 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 -------------------------------------------------------------------------------- /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_ -------------------------------------------------------------------------------- /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); -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /utils/light/light.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/light/light.c -------------------------------------------------------------------------------- /utils/light/light.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/light/light.h -------------------------------------------------------------------------------- /utils/light/ltface.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/light/ltface.c -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /utils/light/trace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/light/trace.c -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /utils/procinfo/lib/win32_vc6/procinfo.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/procinfo/lib/win32_vc6/procinfo.lib -------------------------------------------------------------------------------- /utils/procinfo/procinfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/procinfo/procinfo.h -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /utils/qbsp2/makefile: -------------------------------------------------------------------------------- 1 | 2 | EXES = qbsp light vis bspinfo entmap visx 3 | NTEXES = qbsp.exe light.exe vis.exe bspinfo.exe entmap.exe visx.exe 4 | 5 | #============================================================================== 6 | 7 | EXT= .o 8 | 9 | all: $(EXES) 10 | 11 | clean: 12 | rm *.o *.obj $(EXES) $(NTEXES) 13 | 14 | next: 15 | make "CFLAGS = -g -Wall -I.." 16 | 17 | nextinstall: 18 | make "CFLAGS = -O4 -g -Wall -I.. -arch i386 -arch hppa" 19 | cp $(EXES) /LocalApps 20 | 21 | alpha: 22 | make "CFLAGS = -g -I.." "LDFLAGS = -lm" 23 | 24 | alphainstall: 25 | make "CFLAGS = -O4 -I.." "LDFLAGS = -lm" 26 | cp $(EXES) /LocalApps 27 | 28 | nt: 29 | nmake /nologo "CFLAGS = -nologo -Zi -DWIN32 -I.." "LDFLAGS = " "EXT = .obj" 30 | 31 | ntinstall: 32 | nmake /nologo "CFLAGS = -nologo -Ox -G5 -DWIN32 -I.." "LDFLAGS = " "EXT = .obj" 33 | cp $(NTEXES) f:\nt\id 34 | 35 | #============================================================================== 36 | 37 | 38 | QBSPFILES = region$(EXT) map$(EXT) brush$(EXT) cmdlib$(EXT) csg4$(EXT) surfaces$(EXT) mathlib$(EXT)\ 39 | merge$(EXT) outside$(EXT) portals$(EXT) qbsp$(EXT) solidbsp$(EXT) tjunc$(EXT)\ 40 | writebsp$(EXT) bspfile$(EXT) nodraw$(EXT) 41 | qbsp : $(QBSPFILES) 42 | $(CC) $(CFLAGS) -o qbsp $(QBSPFILES) 43 | 44 | light : threads$(EXT) bspfile$(EXT) cmdlib$(EXT) light$(EXT) ltface$(EXT) mathlib$(EXT) trace$(EXT) entities$(EXT) 45 | $(CC) $(CFLAGS) -o light threads$(EXT) bspfile$(EXT) cmdlib$(EXT) light$(EXT) ltface$(EXT) mathlib$(EXT) trace$(EXT) entities$(EXT) 46 | 47 | vis : vis$(EXT) flow$(EXT) cmdlib$(EXT) mathlib$(EXT) bspfile$(EXT) soundpvs$(EXT) 48 | $(CC) $(CFLAGS) -o vis vis$(EXT) flow$(EXT) cmdlib$(EXT) mathlib$(EXT) bspfile$(EXT) soundpvs$(EXT) 49 | 50 | visx : visx$(EXT) flowx$(EXT) cmdlib$(EXT) mathlib$(EXT) bspfile$(EXT) soundpvs$(EXT) 51 | $(CC) $(CFLAGS) -o visx visx$(EXT) flowx$(EXT) cmdlib$(EXT) mathlib$(EXT) bspfile$(EXT) soundpvs$(EXT) 52 | 53 | bspinfo : bspinfo$(EXT) bspfile$(EXT) cmdlib$(EXT) 54 | $(CC) $(CFLAGS) -o bspinfo bspinfo$(EXT) bspfile$(EXT) cmdlib$(EXT) 55 | 56 | entmap : entmap$(EXT) cmdlib$(EXT) 57 | $(CC) $(CFLAGS) -o entmap entmap$(EXT) cmdlib$(EXT) 58 | 59 | 60 | cmdlib$(EXT) : ../cmdlib.c 61 | $(CC) $(CFLAGS) -c -o cmdlib$(EXT) ../cmdlib.c 62 | mathlib$(EXT) : ../mathlib.c 63 | $(CC) $(CFLAGS) -c -o mathlib$(EXT) ../mathlib.c 64 | 65 | 66 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | } -------------------------------------------------------------------------------- /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/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/qcsg/source.p0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/qcsg/source.p0 -------------------------------------------------------------------------------- /utils/qcsg/source.p1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/qcsg/source.p1 -------------------------------------------------------------------------------- /utils/qcsg/source.p2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/qcsg/source.p2 -------------------------------------------------------------------------------- /utils/qlumpy/qlumpy.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/qlumpy/qlumpy.doc -------------------------------------------------------------------------------- /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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /utils/serverctrl/res/serverctrl.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/serverctrl/res/serverctrl.ico -------------------------------------------------------------------------------- /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/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/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/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/smdlexp/smdlexp.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/smdlexp/smdlexp.rc -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /utils/sprgen/s_bubble.spr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/sprgen/s_bubble.spr -------------------------------------------------------------------------------- /utils/sprgen/s_explod.spr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/sprgen/s_explod.spr -------------------------------------------------------------------------------- /utils/sprgen/s_light.spr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/sprgen/s_light.spr -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /utils/vgui/include/VGUI.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ActionSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ActionSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_App.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_App.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Bitmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Bitmap.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BitmapTGA.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_BitmapTGA.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Border.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Border.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BorderLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_BorderLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BorderPair.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_BorderPair.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BuildGroup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_BuildGroup.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Button.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Button.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ButtonController.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ButtonController.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ButtonGroup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ButtonGroup.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ChangeSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ChangeSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_CheckButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_CheckButton.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Color.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Color.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ComboKey.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ComboKey.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ConfigWizard.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ConfigWizard.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Cursor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Cursor.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Dar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Dar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_DataInputStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_DataInputStream.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Desktop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Desktop.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_DesktopIcon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_DesktopIcon.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_EditPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_EditPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_EtchedBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_EtchedBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FileInputStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_FileInputStream.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FlowLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_FlowLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FocusChangeSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_FocusChangeSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FocusNavGroup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_FocusNavGroup.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Font.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Font.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Frame.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Frame.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FrameSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_FrameSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_GridLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_GridLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_HeaderPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_HeaderPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Image.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Image.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ImagePanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ImagePanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_InputSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_InputSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_InputStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_InputStream.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_IntChangeSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_IntChangeSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_IntLabel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_IntLabel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_KeyCode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_KeyCode.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Label.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Label.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Layout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Layout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_LayoutInfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_LayoutInfo.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_LineBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_LineBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ListPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ListPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_LoweredBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_LoweredBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Menu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Menu.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MenuItem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_MenuItem.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MenuSeparator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_MenuSeparator.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MessageBox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_MessageBox.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MiniApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_MiniApp.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MouseCode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_MouseCode.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Panel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Panel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Point.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Point.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_PopupMenu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_PopupMenu.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ProgressBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ProgressBar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_RadioButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_RadioButton.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_RaisedBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_RaisedBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_RepaintSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_RepaintSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Scheme.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Scheme.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ScrollBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ScrollBar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ScrollPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ScrollPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Slider.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Slider.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_StackLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_StackLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_String.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_String.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Surface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_Surface.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_SurfaceBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_SurfaceBase.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_SurfaceGL.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_SurfaceGL.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TabPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_TabPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TablePanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_TablePanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TaskBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_TaskBar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextEntry.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_TextEntry.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextGrid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_TextGrid.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextImage.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_TextImage.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_TextPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TickSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_TickSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ToggleButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_ToggleButton.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TreeFolder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_TreeFolder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_WizardPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/include/VGUI_WizardPanel.h -------------------------------------------------------------------------------- /utils/vgui/lib/win32_vc6/vgui.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twhl-community/dmc-updated/31043678eba110ffc356286f10b0ccb1e3f82283/utils/vgui/lib/win32_vc6/vgui.lib -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------