├── .gitattributes ├── LICENSE ├── README.md ├── cl_dll ├── Exports.h ├── GameStudioModelRenderer.cpp ├── GameStudioModelRenderer.h ├── GameStudioModelRenderer_Sample.cpp ├── GameStudioModelRenderer_Sample.h ├── MOTD.cpp ├── StudioModelRenderer.cpp ├── StudioModelRenderer.h ├── ammo.cpp ├── ammo.h ├── ammo_secondary.cpp ├── ammohistory.cpp ├── ammohistory.h ├── battery.cpp ├── bench.h ├── camera.h ├── cdll_int.cpp ├── cl_dll.h ├── cl_util.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 ├── global_consts.h ├── health.cpp ├── health.h ├── hl │ ├── hl_baseentity.cpp │ ├── hl_events.cpp │ ├── hl_objects.cpp │ └── hl_weapons.cpp ├── hud.cpp ├── hud.h ├── hud_bench.cpp ├── hud_benchtrace.cpp ├── hud_benchtrace.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 ├── interpolation.cpp ├── interpolation.h ├── kbutton.h ├── menu.cpp ├── message.cpp ├── overview.cpp ├── overview.h ├── player_info.h ├── readme.txt ├── saytext.cpp ├── scoreboard.cpp ├── soundsystem.cpp ├── status_icons.cpp ├── statusbar.cpp ├── studio_util.cpp ├── studio_util.h ├── text_message.cpp ├── tf_defs.h ├── train.cpp ├── tri.cpp ├── tri.h ├── util.cpp ├── util_vector.h ├── vgui_ClassMenu.cpp ├── vgui_ConsolePanel.cpp ├── vgui_ConsolePanel.h ├── vgui_ControlConfigPanel.cpp ├── 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_TeamFortressViewport.cpp ├── vgui_TeamFortressViewport.h ├── vgui_int.cpp ├── vgui_int.h ├── vgui_teammenu.cpp ├── view.cpp ├── view.h ├── voice_status.cpp ├── voice_status.h └── wrect.h ├── common ├── 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 ├── devtools ├── image_to_background.py └── image_to_spr.py ├── dlls ├── AI_BaseNPC_Schedule.cpp ├── Makefile ├── Wxdebug.cpp ├── activity.h ├── activitymap.h ├── aflock.cpp ├── agrunt.cpp ├── airtank.cpp ├── animating.cpp ├── animation.cpp ├── animation.h ├── apache.cpp ├── barnacle.cpp ├── barney.cpp ├── basemonster.h ├── bigmomma.cpp ├── bloater.cpp ├── bmodels.cpp ├── bullsquid.cpp ├── buttons.cpp ├── cbase.cpp ├── cbase.h ├── cdll_dll.h ├── client.cpp ├── client.h ├── combat.cpp ├── controller.cpp ├── crossbow.cpp ├── crowbar.cpp ├── decals.h ├── defaultai.cpp ├── defaultai.h ├── doors.cpp ├── doors.h ├── effects.cpp ├── effects.h ├── egon.cpp ├── enginecallback.h ├── explode.cpp ├── explode.h ├── extdll.h ├── flyingmonster.cpp ├── flyingmonster.h ├── func_break.cpp ├── func_break.h ├── func_tank.cpp ├── game.cpp ├── game.h ├── gamerules.cpp ├── gamerules.h ├── gargantua.cpp ├── gauss.cpp ├── genericmonster.cpp ├── ggrenade.cpp ├── globals.cpp ├── glock.cpp ├── gman.cpp ├── h_ai.cpp ├── h_battery.cpp ├── h_cine.cpp ├── h_cycler.cpp ├── h_export.cpp ├── handgrenade.cpp ├── hassassin.cpp ├── headcrab.cpp ├── healthkit.cpp ├── hgrunt.cpp ├── hl.def ├── hlgl.def ├── hornet.cpp ├── hornet.h ├── hornetgun.cpp ├── houndeye.cpp ├── ichthyosaur.cpp ├── islave.cpp ├── items.cpp ├── items.h ├── leech.cpp ├── lights.cpp ├── maprules.cpp ├── maprules.h ├── monsterevent.h ├── monstermaker.cpp ├── monsters.cpp ├── monsters.h ├── monsterstate.cpp ├── mortar.cpp ├── mp5.cpp ├── mpstubb.cpp ├── multiplay_gamerules.cpp ├── nihilanth.cpp ├── nodes.cpp ├── nodes.h ├── observer.cpp ├── osprey.cpp ├── pathcorner.cpp ├── plane.cpp ├── plane.h ├── plats.cpp ├── player.cpp ├── player.h ├── playermonster.cpp ├── python.cpp ├── rat.cpp ├── roach.cpp ├── rpg.cpp ├── satchel.cpp ├── saverestore.h ├── schedule.cpp ├── schedule.h ├── scientist.cpp ├── scripted.cpp ├── scripted.h ├── scriptevent.h ├── shotgun.cpp ├── singleplay_gamerules.cpp ├── skill.cpp ├── skill.h ├── sound.cpp ├── soundent.cpp ├── soundent.h ├── spectator.cpp ├── spectator.h ├── squad.h ├── squadmonster.cpp ├── squadmonster.h ├── squeakgrenade.cpp ├── stats.cpp ├── subs.cpp ├── talkmonster.cpp ├── talkmonster.h ├── teamplay_gamerules.cpp ├── teamplay_gamerules.h ├── tempmonster.cpp ├── tentacle.cpp ├── trains.h ├── triggers.cpp ├── tripmine.cpp ├── turret.cpp ├── util.cpp ├── util.h ├── vector.h ├── vehicle.cpp ├── weapons.cpp ├── weapons.h ├── world.cpp ├── wpn_shared │ └── hl_wpn_glock.cpp ├── wxdebug.h ├── xen.cpp └── zombie.cpp ├── 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.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_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 │ ├── 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.h.cmake │ ├── SDL_config.h.in │ ├── SDL_config_android.h │ ├── SDL_config_iphoneos.h │ ├── SDL_config_macosx.h │ ├── SDL_config_macosx.h.orig │ ├── SDL_config_minimal.h │ ├── SDL_config_pandora.h │ ├── SDL_config_psp.h │ ├── SDL_config_windows.h │ ├── SDL_config_winrt.h │ ├── SDL_config_wiz.h │ ├── SDL_copying.h │ ├── SDL_cpuinfo.h │ ├── SDL_egl.h │ ├── SDL_endian.h │ ├── SDL_error.h │ ├── SDL_events.h │ ├── SDL_filesystem.h │ ├── SDL_gamecontroller.h │ ├── SDL_gesture.h │ ├── SDL_haptic.h │ ├── SDL_hidapi.h │ ├── SDL_hints.h │ ├── SDL_joystick.h │ ├── SDL_keyboard.h │ ├── SDL_keycode.h │ ├── SDL_loadso.h │ ├── SDL_locale.h │ ├── SDL_log.h │ ├── SDL_main.h │ ├── SDL_messagebox.h │ ├── SDL_metal.h │ ├── SDL_misc.h │ ├── SDL_mouse.h │ ├── SDL_mutex.h │ ├── SDL_name.h │ ├── SDL_opengl.h │ ├── SDL_opengl_glext.h │ ├── SDL_opengles.h │ ├── SDL_opengles2.h │ ├── SDL_opengles2_gl2.h │ ├── SDL_opengles2_gl2ext.h │ ├── SDL_opengles2_gl2platform.h │ ├── SDL_opengles2_khrplatform.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_sensor.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_memory.h │ ├── SDL_test_random.h │ ├── SDL_thread.h │ ├── SDL_timer.h │ ├── SDL_touch.h │ ├── SDL_types.h │ ├── SDL_version.h │ ├── SDL_video.h │ ├── SDL_vulkan.h │ ├── begin_code.h │ └── close_code.h ├── 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 │ ├── steam_api.lib │ └── vgui_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 ├── 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 ├── projects ├── readme.txt ├── vs2010 │ ├── .gitignore │ ├── bspinfo.vcxproj │ ├── bspinfo.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 │ ├── 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.opensdf │ ├── utils.sln │ ├── vis.vcxproj │ ├── vis.vcxproj.filters │ ├── xwad.vcxproj │ └── xwad.vcxproj.filters └── vs2019 │ ├── .gitignore │ ├── dmc_cdll.vcxproj │ ├── dmc_cdll.vcxproj.filters │ ├── dmcdll.vcxproj │ ├── dmcdll.vcxproj.filters │ ├── hl_cdll.vcxproj │ ├── hl_cdll.vcxproj.filters │ ├── hldll.vcxproj │ ├── hldll.vcxproj.filters │ ├── projects.sln │ ├── ricochet_cdll.vcxproj │ ├── ricochet_cdll.vcxproj.filters │ ├── ricochetdll.vcxproj │ └── ricochetdll.vcxproj.filters ├── public ├── FileSystem.h ├── archtypes.h ├── basetypes.h ├── cl_dll │ └── IGameClientExports.h ├── commonmacros.h ├── interface.cpp ├── interface.h ├── keydefs.h ├── minmax.h ├── particleman.h ├── pman_particlemem.h ├── pman_triangleffect.h ├── steam │ └── steamtypes.h └── tier1 │ └── interface.h ├── ricochet ├── cl_dll │ ├── Exports.h │ ├── GameStudioModelRenderer.cpp │ ├── GameStudioModelRenderer.h │ ├── Ricochet_BSPFile.h │ ├── Ricochet_JumpPads.cpp │ ├── Ricochet_JumpPads.h │ ├── StudioModelRenderer.cpp │ ├── StudioModelRenderer.h │ ├── ammo.cpp │ ├── ammo.h │ ├── ammo_secondary.cpp │ ├── ammohistory.cpp │ ├── ammohistory.h │ ├── battery.cpp │ ├── camera.h │ ├── cdll_int.cpp │ ├── cl_dll.h │ ├── cl_util.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 │ ├── hl │ │ ├── hl_baseentity.cpp │ │ ├── hl_events.cpp │ │ ├── hl_objects.cpp │ │ └── hl_weapons.cpp │ ├── hud.cpp │ ├── hud.h │ ├── hud_iface.h │ ├── hud_msg.cpp │ ├── hud_redraw.cpp │ ├── hud_servers.cpp │ ├── hud_servers.h │ ├── hud_servers_priv.h │ ├── hud_update.cpp │ ├── in_camera.cpp │ ├── in_defs.h │ ├── input.cpp │ ├── inputw32.cpp │ ├── kbutton.h │ ├── menu.cpp │ ├── message.cpp │ ├── readme.txt │ ├── saytext.cpp │ ├── status_icons.cpp │ ├── statusbar.cpp │ ├── studio_util.cpp │ ├── studio_util.h │ ├── text_message.cpp │ ├── tf_defs.h │ ├── train.cpp │ ├── tri.cpp │ ├── util.cpp │ ├── util_vector.h │ ├── vgui_ConsolePanel.cpp │ ├── vgui_ConsolePanel.h │ ├── vgui_ControlConfigPanel.cpp │ ├── 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_TeamFortressViewport.cpp │ ├── vgui_TeamFortressViewport.h │ ├── vgui_discobjects.cpp │ ├── vgui_discobjects.h │ ├── vgui_int.cpp │ ├── vgui_int.h │ ├── view.cpp │ ├── view.h │ ├── voice_status.cpp │ ├── voice_status.h │ └── wrect.h ├── dlls │ ├── Makefile │ ├── activity.h │ ├── activitymap.h │ ├── airtank.cpp │ ├── 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 │ ├── disc_arena.cpp │ ├── disc_arena.h │ ├── disc_objects.h │ ├── disc_powerups.cpp │ ├── disc_weapon.h │ ├── discwar.h │ ├── 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 │ ├── ggrenade.cpp │ ├── globals.cpp │ ├── h_ai.cpp │ ├── h_battery.cpp │ ├── h_cycler.cpp │ ├── h_export.cpp │ ├── healthkit.cpp │ ├── items.cpp │ ├── items.h │ ├── lights.cpp │ ├── maprules.cpp │ ├── maprules.h │ ├── monsterevent.h │ ├── monsters.h │ ├── mortar.cpp │ ├── mp.def │ ├── mpstubb.cpp │ ├── multiplay_gamerules.cpp │ ├── nodes.h │ ├── observer.cpp │ ├── pathcorner.cpp │ ├── plane.cpp │ ├── plane.h │ ├── plats.cpp │ ├── player.cpp │ ├── player.h │ ├── saverestore.h │ ├── schedule.h │ ├── scriptevent.h │ ├── singleplay_gamerules.cpp │ ├── skill.cpp │ ├── skill.h │ ├── sound.cpp │ ├── soundent.cpp │ ├── soundent.h │ ├── spectator.cpp │ ├── spectator.h │ ├── subs.cpp │ ├── talkmonster.h │ ├── teamplay_gamerules.cpp │ ├── teamplay_gamerules.h │ ├── trains.h │ ├── triggers.cpp │ ├── util.cpp │ ├── util.h │ ├── vector.h │ ├── weapons.cpp │ ├── weapons.h │ ├── world.cpp │ ├── wpn_shared │ │ └── disc_weapon_disc.cpp │ └── xen.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 └── 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_vc16 │ └── vgui.lib │ └── win32_vc6 │ └── vgui.lib ├── vgui2 └── lib │ └── win32_vc16 │ └── vgui2.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 | -------------------------------------------------------------------------------- /cl_dll/GameStudioModelRenderer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/GameStudioModelRenderer.cpp -------------------------------------------------------------------------------- /cl_dll/GameStudioModelRenderer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/GameStudioModelRenderer.h -------------------------------------------------------------------------------- /cl_dll/GameStudioModelRenderer_Sample.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/GameStudioModelRenderer_Sample.cpp -------------------------------------------------------------------------------- /cl_dll/GameStudioModelRenderer_Sample.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/GameStudioModelRenderer_Sample.h -------------------------------------------------------------------------------- /cl_dll/StudioModelRenderer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/StudioModelRenderer.h -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /cl_dll/bench.h: -------------------------------------------------------------------------------- 1 | #if !defined ( BENCHH ) 2 | #define BENCHH 3 | #pragma once 4 | 5 | #define FIRST_STAGE 1 6 | #define SECOND_STAGE 2 7 | #define THIRD_STAGE 3 8 | #define FOURTH_STAGE 4 9 | #define LAST_STAGE ( FOURTH_STAGE ) 10 | 11 | void Bench_CheckStart( void ); 12 | 13 | int Bench_InStage( int stage ); 14 | int Bench_GetPowerPlay( void ); 15 | int Bench_GetStage( void ); 16 | void Bench_SetPowerPlay( int set ); 17 | int Bench_Active( void ); 18 | 19 | void Bench_SetDotAdded( int dot ); 20 | void Bench_SpotPosition( vec3_t dot, vec3_t target ); 21 | void Bench_CheckEntity( int type, struct cl_entity_s *ent, const char *modelname ); 22 | void Bench_AddObjects( void ); 23 | void Bench_SetViewAngles( int recalc_wander, float *viewangles, float frametime, struct usercmd_s *cmd ); 24 | void Bench_SetViewOrigin( float *vieworigin, float frametime ); 25 | 26 | #endif -------------------------------------------------------------------------------- /cl_dll/camera.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/camera.h -------------------------------------------------------------------------------- /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 | typedef unsigned char byte; 29 | typedef unsigned short word; 30 | typedef float vec_t; 31 | typedef int (*pfnUserMsgHook)(const char *pszName, int iSize, void *pbuf); 32 | 33 | #include "util_vector.h" 34 | #ifdef _WIN32 35 | #define EXPORT _declspec( dllexport ) 36 | #else 37 | #define EXPORT __attribute__ ((visibility("default"))) 38 | #endif 39 | 40 | #include "../engine/cdll_int.h" 41 | #include "../dlls/cdll_dll.h" 42 | 43 | extern cl_enginefunc_t gEngfuncs; 44 | -------------------------------------------------------------------------------- /cl_dll/com_weapons.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/com_weapons.h -------------------------------------------------------------------------------- /cl_dll/demo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/demo.h -------------------------------------------------------------------------------- /cl_dll/ev_hldm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/ev_hldm.h -------------------------------------------------------------------------------- /cl_dll/events.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/events.cpp -------------------------------------------------------------------------------- /cl_dll/eventscripts.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/eventscripts.h -------------------------------------------------------------------------------- /cl_dll/global_consts.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/global_consts.h -------------------------------------------------------------------------------- /cl_dll/hud_benchtrace.h: -------------------------------------------------------------------------------- 1 | #if !defined( HUD_BENCHTRACEH ) 2 | #define HUD_BENCHTRACEH 3 | #pragma once 4 | 5 | void Trace_StartTrace( int *results, int *finished, const char *pszServer ); 6 | void Trace_Think( void ); 7 | 8 | #endif // !HUD_BENCHTRACEH -------------------------------------------------------------------------------- /cl_dll/hud_iface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/hud_iface.h -------------------------------------------------------------------------------- /cl_dll/hud_servers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/hud_servers.cpp -------------------------------------------------------------------------------- /cl_dll/hud_servers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/hud_servers.h -------------------------------------------------------------------------------- /cl_dll/hud_servers_priv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/hud_servers_priv.h -------------------------------------------------------------------------------- /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 | 32 | int CHud::UpdateClientData(client_data_t *cdata, float time) 33 | { 34 | memcpy(m_vecOrigin, cdata->origin, sizeof(vec3_t)); 35 | memcpy(m_vecAngles, cdata->viewangles, sizeof(vec3_t)); 36 | 37 | m_iKeyBits = CL_ButtonBits( 0 ); 38 | m_iWeaponBits = cdata->iWeaponBits; 39 | 40 | in_fov = cdata->fov; 41 | 42 | Think(); 43 | 44 | cdata->fov = m_iFOV; 45 | 46 | v_idlescale = m_iConcussionEffect; 47 | 48 | CL_ResetButtonBits( m_iKeyBits ); 49 | 50 | // return 1 if in anything in the client_data struct has been changed, 0 otherwise 51 | return 1; 52 | } 53 | 54 | 55 | -------------------------------------------------------------------------------- /cl_dll/in_camera.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/in_camera.cpp -------------------------------------------------------------------------------- /cl_dll/in_defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/in_defs.h -------------------------------------------------------------------------------- /cl_dll/inputw32.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/inputw32.cpp -------------------------------------------------------------------------------- /cl_dll/kbutton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/kbutton.h -------------------------------------------------------------------------------- /cl_dll/overview.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/overview.cpp -------------------------------------------------------------------------------- /cl_dll/overview.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/overview.h -------------------------------------------------------------------------------- /cl_dll/player_info.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 2003', 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 | extern hud_player_info_t g_PlayerInfoList[MAX_PLAYERS+1]; // player info from the engine 17 | extern extra_player_info_t g_PlayerExtraInfo[MAX_PLAYERS+1]; // additional player info sent directly to the client dll 18 | extern team_info_t g_TeamInfo[MAX_TEAMS+1]; 19 | extern int g_IsSpectator[MAX_PLAYERS+1]; 20 | 21 | -------------------------------------------------------------------------------- /cl_dll/studio_util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/studio_util.cpp -------------------------------------------------------------------------------- /cl_dll/studio_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/studio_util.h -------------------------------------------------------------------------------- /cl_dll/tri.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/tri.cpp -------------------------------------------------------------------------------- /cl_dll/tri.h: -------------------------------------------------------------------------------- 1 | #ifndef TRI_H 2 | #define TRI_H 3 | 4 | #include "particleman.h" 5 | 6 | extern IParticleMan *g_pParticleMan; 7 | 8 | 9 | 10 | 11 | 12 | 13 | #endif //TRI_H -------------------------------------------------------------------------------- /cl_dll/vgui_ConsolePanel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/vgui_ConsolePanel.cpp -------------------------------------------------------------------------------- /cl_dll/vgui_ConsolePanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/vgui_ConsolePanel.h -------------------------------------------------------------------------------- /cl_dll/vgui_ControlConfigPanel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/vgui_ControlConfigPanel.cpp -------------------------------------------------------------------------------- /cl_dll/vgui_ControlConfigPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/vgui_ControlConfigPanel.h -------------------------------------------------------------------------------- /cl_dll/vgui_SchemeManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/vgui_SchemeManager.h -------------------------------------------------------------------------------- /cl_dll/vgui_ServerBrowser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/vgui_ServerBrowser.cpp -------------------------------------------------------------------------------- /cl_dll/vgui_ServerBrowser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/vgui_ServerBrowser.h -------------------------------------------------------------------------------- /cl_dll/vgui_int.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/vgui_int.cpp -------------------------------------------------------------------------------- /cl_dll/vgui_int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/vgui_int.h -------------------------------------------------------------------------------- /cl_dll/view.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/view.h -------------------------------------------------------------------------------- /cl_dll/voice_status.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/voice_status.h -------------------------------------------------------------------------------- /cl_dll/wrect.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/cl_dll/wrect.h -------------------------------------------------------------------------------- /common/com_model.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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_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/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/common/interface.cpp -------------------------------------------------------------------------------- /common/interface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/common/interface.h -------------------------------------------------------------------------------- /common/ivoicetweak.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/common/ivoicetweak.h -------------------------------------------------------------------------------- /common/net_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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 | // JoshA: Unfortunately netadr_s is passed to clients for connectionless packets. 23 | // No Valve mod uses them, but custom mods *might*, so not changing the start of this struct layout. 24 | // It's very unlikely they touch this, but I'd like to play as safe as possible with all ABI etc for mod compat. 25 | // If we want to add IPv6 someday, bung it at the end of netadr_s and leave ip + ipx alone. 26 | 27 | typedef enum 28 | { 29 | NA_UNUSED, 30 | NA_LOOPBACK, 31 | NA_BROADCAST, 32 | NA_IP, 33 | NA_IPX, // deprecated 34 | NA_BROADCAST_IPX, // deprecated 35 | } netadrtype_t; 36 | 37 | typedef struct netadr_s 38 | { 39 | netadrtype_t type; 40 | unsigned char ip[4]; 41 | unsigned char ipx[10]; // deprecated 42 | unsigned short port; 43 | } netadr_t; 44 | 45 | #endif // NETADR_H 46 | -------------------------------------------------------------------------------- /common/nowin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/common/nowin.h -------------------------------------------------------------------------------- /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 | #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 | byte data[4]; 39 | } qfont_t; 40 | 41 | #endif // qfont.h 42 | -------------------------------------------------------------------------------- /common/screenfade.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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 | -------------------------------------------------------------------------------- /dlls/cdll_dll.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // cdll_dll.h 17 | 18 | // this file is included by both the game-dll and the client-dll, 19 | 20 | #ifndef CDLL_DLL_H 21 | #define CDLL_DLL_H 22 | 23 | #define MAX_WEAPONS 32 // ??? 24 | 25 | #define MAX_WEAPON_SLOTS 5 // hud item selection slots 26 | #define MAX_ITEM_TYPES 6 // hud item selection slots 27 | 28 | #define MAX_ITEMS 5 // hard coded item types 29 | 30 | #define HIDEHUD_WEAPONS ( 1<<0 ) 31 | #define HIDEHUD_FLASHLIGHT ( 1<<1 ) 32 | #define HIDEHUD_ALL ( 1<<2 ) 33 | #define HIDEHUD_HEALTH ( 1<<3 ) 34 | 35 | #define MAX_AMMO_TYPES 32 // ??? 36 | #define MAX_AMMO_SLOTS 32 // not really slots 37 | 38 | #define HUD_PRINTNOTIFY 1 39 | #define HUD_PRINTCONSOLE 2 40 | #define HUD_PRINTTALK 3 41 | #define HUD_PRINTCENTER 4 42 | 43 | 44 | #define WEAPON_SUIT 31 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /dlls/doors.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | -------------------------------------------------------------------------------- /dlls/explode.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | -------------------------------------------------------------------------------- /dlls/game.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | 24 | // multiplayer server rules 25 | extern cvar_t teamplay; 26 | extern cvar_t fraglimit; 27 | extern cvar_t timelimit; 28 | extern cvar_t friendlyfire; 29 | extern cvar_t falldamage; 30 | extern cvar_t weaponstay; 31 | extern cvar_t forcerespawn; 32 | extern cvar_t flashlight; 33 | extern cvar_t aimcrosshair; 34 | extern cvar_t decalfrequency; 35 | extern cvar_t teamlist; 36 | extern cvar_t teamoverride; 37 | extern cvar_t defaultteam; 38 | extern cvar_t allowmonsters; 39 | 40 | // Engine Cvars 41 | extern cvar_t *g_psv_gravity; 42 | extern cvar_t *g_psv_aim; 43 | extern cvar_t *g_psv_allow_autoaim; 44 | extern cvar_t *g_footsteps; 45 | 46 | #endif // GAME_H 47 | -------------------------------------------------------------------------------- /dlls/globals.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | -------------------------------------------------------------------------------- /dlls/hl.def: -------------------------------------------------------------------------------- 1 | LIBRARY hl 2 | EXPORTS 3 | GiveFnptrsToDll @1 4 | SECTIONS 5 | .data READ WRITE 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /dlls/items.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | -------------------------------------------------------------------------------- /dlls/maprules.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | -------------------------------------------------------------------------------- /dlls/monsterevent.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | -------------------------------------------------------------------------------- /dlls/plane.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | -------------------------------------------------------------------------------- /dlls/playermonster.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dlls/playermonster.cpp -------------------------------------------------------------------------------- /dlls/skill.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | -------------------------------------------------------------------------------- /dlls/spectator.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2001, 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 | -------------------------------------------------------------------------------- /dlls/squad.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dlls/squad.h -------------------------------------------------------------------------------- /dlls/stats.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dlls/stats.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/DMC_BSPFile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/DMC_BSPFile.h -------------------------------------------------------------------------------- /dmc/cl_dll/DMC_Teleporters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/DMC_Teleporters.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/DMC_Teleporters.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/DMC_Teleporters.h -------------------------------------------------------------------------------- /dmc/cl_dll/GameStudioModelRenderer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/GameStudioModelRenderer.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/GameStudioModelRenderer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/GameStudioModelRenderer.h -------------------------------------------------------------------------------- /dmc/cl_dll/StudioModelRenderer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/StudioModelRenderer.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/StudioModelRenderer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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 | typedef unsigned char byte; 29 | typedef unsigned short word; 30 | typedef float vec_t; 31 | typedef int (*pfnUserMsgHook)(const char *pszName, int iSize, void *pbuf); 32 | 33 | #include "util_vector.h" 34 | #ifdef _WIN32 35 | #define EXPORT _declspec( dllexport ) 36 | #else 37 | #define EXPORT __attribute__ ((visibility("default"))) 38 | #endif 39 | 40 | #include "../engine/cdll_int.h" 41 | #include "../dlls/cdll_dll.h" 42 | 43 | extern cl_enginefunc_t gEngfuncs; 44 | -------------------------------------------------------------------------------- /dmc/cl_dll/com_weapons.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/com_weapons.h -------------------------------------------------------------------------------- /dmc/cl_dll/demo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/demo.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/demo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/demo.h -------------------------------------------------------------------------------- /dmc/cl_dll/ev_hldm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/eventscripts.h -------------------------------------------------------------------------------- /dmc/cl_dll/hud_iface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/hud_iface.h -------------------------------------------------------------------------------- /dmc/cl_dll/hud_servers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/hud_servers.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/hud_servers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/hud_servers.h -------------------------------------------------------------------------------- /dmc/cl_dll/hud_servers_priv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/hud_servers_priv.h -------------------------------------------------------------------------------- /dmc/cl_dll/hud_spectator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/hud_spectator.h -------------------------------------------------------------------------------- /dmc/cl_dll/in_camera.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/in_camera.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/in_defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/in_defs.h -------------------------------------------------------------------------------- /dmc/cl_dll/input.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/input.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/inputw32.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/inputw32.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/kbutton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/kbutton.h -------------------------------------------------------------------------------- /dmc/cl_dll/studio_util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/studio_util.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/studio_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/studio_util.h -------------------------------------------------------------------------------- /dmc/cl_dll/tri.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/tri.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_ControlConfigPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_ControlConfigPanel.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_SchemeManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_SchemeManager.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_ScorePanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_ScorePanel.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_ServerBrowser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_ServerBrowser.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_ServerBrowser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_ServerBrowser.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_SpectatorPanel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_SpectatorPanel.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_SpectatorPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_SpectatorPanel.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_int.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_int.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_int.h -------------------------------------------------------------------------------- /dmc/cl_dll/vgui_viewport.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/vgui_viewport.h -------------------------------------------------------------------------------- /dmc/cl_dll/view.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/view.cpp -------------------------------------------------------------------------------- /dmc/cl_dll/view.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/view.h -------------------------------------------------------------------------------- /dmc/cl_dll/voice_status.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/voice_status.h -------------------------------------------------------------------------------- /dmc/cl_dll/wrect.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/cl_dll/wrect.h -------------------------------------------------------------------------------- /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/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/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/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.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/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/pm_shared/pm_debug.c -------------------------------------------------------------------------------- /dmc/pm_shared/pm_debug.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/pm_shared/pm_debug.h -------------------------------------------------------------------------------- /dmc/pm_shared/pm_defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/pm_shared/pm_defs.h -------------------------------------------------------------------------------- /dmc/pm_shared/pm_info.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/pm_shared/pm_info.h -------------------------------------------------------------------------------- /dmc/pm_shared/pm_materials.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/pm_shared/pm_materials.h -------------------------------------------------------------------------------- /dmc/pm_shared/pm_math.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/dmc/pm_shared/pm_math.c -------------------------------------------------------------------------------- /dmc/pm_shared/pm_movevars.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/engine/edict.h -------------------------------------------------------------------------------- /external/SDL2/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 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 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 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 SDLname_h_ 23 | #define SDLname_h_ 24 | 25 | #if defined(__STDC__) || defined(__cplusplus) 26 | #define NeedFunctionPrototypes 1 27 | #endif 28 | 29 | #define SDL_NAME(X) SDL_##X 30 | 31 | #endif /* SDLname_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /external/SDL2/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 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 | #include "SDL_config.h" 28 | 29 | #ifdef __IPHONEOS__ 30 | #include 31 | #include 32 | #else 33 | #include 34 | #include 35 | #endif 36 | 37 | #ifndef APIENTRY 38 | #define APIENTRY 39 | #endif 40 | -------------------------------------------------------------------------------- /external/SDL2/SDL_opengles2_gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | /*#include */ 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /external/SDL2/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "https://github.com/libsdl-org/SDL.git@b424665e0899769b200231ba943353a5fee1b6b6" 2 | #define SDL_REVISION_NUMBER 0 3 | -------------------------------------------------------------------------------- /external/SDL2/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 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 | -------------------------------------------------------------------------------- /filecopy.bat: -------------------------------------------------------------------------------- 1 | rem @echo off 2 | rem echo %~f2 3 | @copy %1 %~f2 4 | -------------------------------------------------------------------------------- /game_shared/GameEvent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/GameEvent.h -------------------------------------------------------------------------------- /game_shared/bot/bot.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/bot/bot.cpp -------------------------------------------------------------------------------- /game_shared/bot/bot_constants.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/bot/bot_constants.h -------------------------------------------------------------------------------- /game_shared/bot/bot_manager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/bot/bot_manager.cpp -------------------------------------------------------------------------------- /game_shared/bot/bot_manager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/bot/bot_manager.h -------------------------------------------------------------------------------- /game_shared/bot/bot_profile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/bot/bot_profile.h -------------------------------------------------------------------------------- /game_shared/bot/bot_util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/bot/bot_util.cpp -------------------------------------------------------------------------------- /game_shared/bot/bot_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/vgui_checkbutton2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_checkbutton2.cpp -------------------------------------------------------------------------------- /game_shared/vgui_checkbutton2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_checkbutton2.h -------------------------------------------------------------------------------- /game_shared/vgui_defaultinputsignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_defaultinputsignal.h -------------------------------------------------------------------------------- /game_shared/vgui_grid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_grid.cpp -------------------------------------------------------------------------------- /game_shared/vgui_grid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_grid.h -------------------------------------------------------------------------------- /game_shared/vgui_helpers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_helpers.cpp -------------------------------------------------------------------------------- /game_shared/vgui_helpers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_helpers.h -------------------------------------------------------------------------------- /game_shared/vgui_listbox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_listbox.cpp -------------------------------------------------------------------------------- /game_shared/vgui_listbox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_listbox.h -------------------------------------------------------------------------------- /game_shared/vgui_loadtga.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_loadtga.cpp -------------------------------------------------------------------------------- /game_shared/vgui_loadtga.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_loadtga.h -------------------------------------------------------------------------------- /game_shared/vgui_scrollbar2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_scrollbar2.cpp -------------------------------------------------------------------------------- /game_shared/vgui_scrollbar2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_scrollbar2.h -------------------------------------------------------------------------------- /game_shared/vgui_slider2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_slider2.cpp -------------------------------------------------------------------------------- /game_shared/vgui_slider2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/vgui_slider2.h -------------------------------------------------------------------------------- /game_shared/voice_banmgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/voice_banmgr.cpp -------------------------------------------------------------------------------- /game_shared/voice_banmgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/voice_banmgr.h -------------------------------------------------------------------------------- /game_shared/voice_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/voice_common.h -------------------------------------------------------------------------------- /game_shared/voice_gamemgr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/voice_gamemgr.cpp -------------------------------------------------------------------------------- /game_shared/voice_gamemgr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/voice_gamemgr.h -------------------------------------------------------------------------------- /game_shared/voice_status.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/voice_status.h -------------------------------------------------------------------------------- /game_shared/voice_vgui_tweakdlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/voice_vgui_tweakdlg.cpp -------------------------------------------------------------------------------- /game_shared/voice_vgui_tweakdlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/game_shared/voice_vgui_tweakdlg.h -------------------------------------------------------------------------------- /lib/public/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/lib/public/SDL2.lib -------------------------------------------------------------------------------- /lib/public/game_controls.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/lib/public/game_controls.lib -------------------------------------------------------------------------------- /lib/public/steam_api.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/lib/public/steam_api.lib -------------------------------------------------------------------------------- /lib/public/vgui_controls.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/lib/public/vgui_controls.lib -------------------------------------------------------------------------------- /linux/gendbg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | p4_edit () { 5 | chmod -R +w "$@" || true 6 | } 7 | p4_revert () { 8 | true 9 | } 10 | 11 | UNAME=$(uname) 12 | if [ "$UNAME" == "Darwin" ]; then 13 | p4_edit "$1.dSYM/..." 14 | dsymutil "$1" 15 | p4 revert -a "$1.dSYM/..." 16 | exit 0; 17 | fi 18 | 19 | OBJCOPY=objcopy 20 | 21 | function usage { 22 | echo "$0 /path/to/input/file [-o /path/to/output/file ]" 23 | echo "" 24 | } 25 | 26 | if [ $# == 0 ]; then 27 | usage 28 | exit 2 29 | fi 30 | 31 | if [ $(basename "$1") == "$1" ]; then 32 | INFILEDIR=$PWD 33 | else 34 | INFILEDIR=$(cd "${1%/*}" && echo "$PWD") 35 | fi 36 | INFILE=$(basename "$1") 37 | 38 | OUTFILEDIR=$INFILEDIR 39 | OUTFILE=$INFILE.dbg 40 | 41 | while getopts "o:" opt; do 42 | case $opt in 43 | o) 44 | OUTFILEDIR=$(cd "${OPTARG%/*}" && echo "$PWD") 45 | OUTFILE=$(basename "$OPTARG") 46 | ;; 47 | esac 48 | done 49 | 50 | if [ "$OUTFILEDIR" != "$INFILEDIR" ]; then 51 | INFILE=${INFILEDIR}/${INFILE} 52 | OUTFILE=${OUTFILEDIR}/${OUTFILE} 53 | fi 54 | 55 | pushd "$INFILEDIR" || exit 56 | p4_edit "$OUTFILE" 57 | $OBJCOPY "$INFILE" "$OUTFILE" 58 | $OBJCOPY --add-gnu-debuglink="$OUTFILE" "$INFILE" 59 | p4_revert -a "$OUTFILE" 60 | popd || exit 61 | -------------------------------------------------------------------------------- /linux/libSDL2-2.0.0.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/linux/libSDL2-2.0.0.dylib -------------------------------------------------------------------------------- /linux/libSDL2-2.0.0.dylib.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.libSDL2-2.0.0.dylib 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /linux/libSDL2-2.0.0.dylib.dSYM/Contents/Resources/DWARF/libsdl2-2.0.0.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/linux/libSDL2-2.0.so.0 -------------------------------------------------------------------------------- /linux/libSDL2-2.0.so.0.dbg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/linux/release/vgui.dylib -------------------------------------------------------------------------------- /linux/release/vgui.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/linux/release/vgui.so -------------------------------------------------------------------------------- /linux/vgui.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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 | -------------------------------------------------------------------------------- /pm_shared/pm_debug.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 PM_DEBUG_H 16 | #define PM_DEBUG_H 17 | #pragma once 18 | 19 | void PM_ViewEntity( void ); 20 | void PM_DrawBBox(vec3_t mins, vec3_t maxs, vec3_t origin, int pcolor, float life); 21 | void PM_ParticleLine(vec3_t start, vec3_t end, int pcolor, float life, float vert); 22 | void PM_ShowClipBox( void ); 23 | 24 | #endif // PMOVEDBG_H 25 | -------------------------------------------------------------------------------- /pm_shared/pm_info.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 | // Physics info string definition 16 | #if !defined( PM_INFOH ) 17 | #define PM_INFOH 18 | #ifdef _WIN32 19 | #pragma once 20 | #endif 21 | 22 | #define MAX_PHYSINFO_STRING 256 23 | 24 | #endif // PM_INFOH 25 | -------------------------------------------------------------------------------- /pm_shared/pm_materials.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( PM_MATERIALSH ) 16 | #define PM_MATERIALSH 17 | #pragma once 18 | 19 | #define CBTEXTURENAMEMAX 13 // only load first n chars of name 20 | 21 | #define CHAR_TEX_CONCRETE 'C' // texture types 22 | #define CHAR_TEX_METAL 'M' 23 | #define CHAR_TEX_DIRT 'D' 24 | #define CHAR_TEX_VENT 'V' 25 | #define CHAR_TEX_GRATE 'G' 26 | #define CHAR_TEX_TILE 'T' 27 | #define CHAR_TEX_SLOSH 'S' 28 | #define CHAR_TEX_WOOD 'W' 29 | #define CHAR_TEX_COMPUTER 'P' 30 | #define CHAR_TEX_GLASS 'Y' 31 | #define CHAR_TEX_FLESH 'F' 32 | #define CHAR_TEX_SNOW 'N' 33 | 34 | #endif // !PM_MATERIALSH 35 | -------------------------------------------------------------------------------- /pm_shared/pm_movevars.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/pm_shared/pm_movevars.h -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /projects/readme.txt: -------------------------------------------------------------------------------- 1 | Directory Contents 2 | ================== 3 | 4 | vs2019 5 | Contains Visual Studio 2019 project and solution files for mod client and server DLLs. 6 | 7 | vs2010 8 | Contains Visual C++ 2010 Express project and solution files for utils. 9 | Please read readme.txt included in that folder for further instructions. 10 | 11 | 12 | Other notes 13 | =========== 14 | 15 | MSVC++ 6.0 .dsp files for utils can be found in the appropriate folders. 16 | 17 | Linux Makefiles can be found in ../linux/ 18 | -------------------------------------------------------------------------------- /projects/vs2010/.gitignore: -------------------------------------------------------------------------------- 1 | # ignore uneeded files and folders: 2 | Debug/ 3 | Release/ 4 | ipch/ 5 | *.sdf 6 | *.suo 7 | *.user 8 | -------------------------------------------------------------------------------- /projects/vs2010/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/vs2010/utils.opensdf: -------------------------------------------------------------------------------- 1 | shawnsSHAWNS -------------------------------------------------------------------------------- /projects/vs2019/.gitignore: -------------------------------------------------------------------------------- 1 | # ignore uneeded files and folders: 2 | Debug/ 3 | Release/ 4 | ipch/ 5 | *.sdf 6 | *.suo 7 | *.user 8 | -------------------------------------------------------------------------------- /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 | #include "minmax.h" 22 | 23 | #endif // ARCHTYPES_H 24 | -------------------------------------------------------------------------------- /public/cl_dll/IGameClientExports.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/public/cl_dll/IGameClientExports.h -------------------------------------------------------------------------------- /public/commonmacros.h: -------------------------------------------------------------------------------- 1 | #ifndef COMMONMACROS_H 2 | #define COMMONMACROS_H 3 | #pragma once 4 | 5 | 6 | // ------------------------------------------------------- 7 | // 8 | // commonmacros.h 9 | // 10 | // This should contain ONLY general purpose macros that are 11 | // appropriate for use in engine/launcher/all tools 12 | // 13 | // ------------------------------------------------------- 14 | 15 | // Makes a 4-byte "packed ID" int out of 4 characters 16 | #define MAKEID(d,c,b,a) ( ((int)(a) << 24) | ((int)(b) << 16) | ((int)(c) << 8) | ((int)(d)) ) 17 | 18 | // Compares a string with a 4-byte packed ID constant 19 | #define STRING_MATCHES_ID( p, id ) ( (*((int *)(p)) == (id) ) ? true : false ) 20 | #define ID_TO_STRING( id, p ) ( (p)[3] = (((id)>>24) & 0xFF), (p)[2] = (((id)>>16) & 0xFF), (p)[1] = (((id)>>8) & 0xFF), (p)[0] = (((id)>>0) & 0xFF) ) 21 | 22 | #define ARRAYSIZE(p) (sizeof(p)/sizeof(p[0])) 23 | 24 | 25 | #endif // COMMONMACROS_H 26 | -------------------------------------------------------------------------------- /ricochet/cl_dll/Ricochet_BSPFile.h: -------------------------------------------------------------------------------- 1 | #if !defined( RICOCHET_BSPFILE_H ) 2 | #define RICOCHET_BSPFILE_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | // MINI-version of BSPFILE.H to support Ricochet entity lump extraction stuff. 8 | 9 | #define BSPVERSION 30 10 | 11 | typedef struct 12 | { 13 | int fileofs, filelen; 14 | } lump_t; 15 | 16 | #define LUMP_ENTITIES 0 17 | #define LUMP_PLANES 1 18 | #define LUMP_TEXTURES 2 19 | #define LUMP_VERTEXES 3 20 | #define LUMP_VISIBILITY 4 21 | #define LUMP_NODES 5 22 | #define LUMP_TEXINFO 6 23 | #define LUMP_FACES 7 24 | #define LUMP_LIGHTING 8 25 | #define LUMP_CLIPNODES 9 26 | #define LUMP_LEAFS 10 27 | #define LUMP_MARKSURFACES 11 28 | #define LUMP_EDGES 12 29 | #define LUMP_SURFEDGES 13 30 | #define LUMP_MODELS 14 31 | 32 | #define HEADER_LUMPS 15 33 | 34 | typedef struct 35 | { 36 | int version; 37 | lump_t lumps[HEADER_LUMPS]; 38 | } dheader_t; 39 | 40 | 41 | #endif // RICOCHET_BSPFILE_H -------------------------------------------------------------------------------- /ricochet/cl_dll/Ricochet_JumpPads.h: -------------------------------------------------------------------------------- 1 | #if !defined( RICHOCHET_JUMPADS_H ) 2 | #define RICHOCHET_JUMPADS_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | void Ricochet_CheckJumpPads( struct local_state_s *from, struct local_state_s *to ); 8 | 9 | #endif // RICHOCHET_JUMPADS_H -------------------------------------------------------------------------------- /ricochet/cl_dll/ammo.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef __AMMO_H__ 17 | #define __AMMO_H__ 18 | 19 | #define MAX_WEAPON_NAME 128 20 | 21 | 22 | #define WEAPON_FLAGS_SELECTONEMPTY 1 23 | 24 | #define WEAPON_IS_ONTARGET 0x40 25 | 26 | struct WEAPON 27 | { 28 | char szName[MAX_WEAPON_NAME]; 29 | int iAmmoType; 30 | int iAmmo2Type; 31 | int iMax1; 32 | int iMax2; 33 | int iSlot; 34 | int iSlotPos; 35 | int iFlags; 36 | int iId; 37 | int iClip; 38 | 39 | int iCount; // # of itesm in plist 40 | 41 | HSPRITE hActive; 42 | wrect_t rcActive; 43 | HSPRITE hInactive; 44 | wrect_t rcInactive; 45 | HSPRITE hAmmo; 46 | wrect_t rcAmmo; 47 | HSPRITE hAmmo2; 48 | wrect_t rcAmmo2; 49 | HSPRITE hCrosshair; 50 | wrect_t rcCrosshair; 51 | HSPRITE hAutoaim; 52 | wrect_t rcAutoaim; 53 | HSPRITE hZoomedCrosshair; 54 | wrect_t rcZoomedCrosshair; 55 | HSPRITE hZoomedAutoaim; 56 | wrect_t rcZoomedAutoaim; 57 | }; 58 | 59 | typedef int AMMO; 60 | 61 | 62 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/camera.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // Camera.h -- defines and such for a 3rd person camera 16 | // NOTE: must include quakedef.h first 17 | 18 | #ifndef _CAMERA_H_ 19 | #define _CAMEA_H_ 20 | 21 | // pitch, yaw, dist 22 | extern vec3_t cam_ofs; 23 | // Using third person camera 24 | extern int cam_thirdperson; 25 | 26 | void CAM_Init( void ); 27 | void CAM_ClearStates( void ); 28 | void CAM_StartMouseMove(void); 29 | void CAM_EndMouseMove(void); 30 | 31 | #endif // _CAMERA_H_ 32 | -------------------------------------------------------------------------------- /ricochet/cl_dll/cl_dll.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // cl_dll.h 17 | // 18 | 19 | // 4-23-98 JOHN 20 | 21 | // 22 | // This DLL is linked by the client when they first initialize. 23 | // This DLL is responsible for the following tasks: 24 | // - Loading the HUD graphics upon initialization 25 | // - Drawing the HUD graphics every frame 26 | // - Handling the custum HUD-update packets 27 | // 28 | typedef unsigned char byte; 29 | typedef unsigned short word; 30 | typedef float vec_t; 31 | typedef int (*pfnUserMsgHook)(const char *pszName, int iSize, void *pbuf); 32 | 33 | #include "util_vector.h" 34 | #ifdef _WIN32 35 | #define EXPORT _declspec( dllexport ) 36 | #else 37 | #define EXPORT __attribute__ ((visibility("default"))) 38 | #endif 39 | #include "../engine/cdll_int.h" 40 | #include "../dlls/cdll_dll.h" 41 | 42 | extern cl_enginefunc_t gEngfuncs; 43 | -------------------------------------------------------------------------------- /ricochet/cl_dll/demo.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( DEMOH ) 16 | #define DEMOH 17 | #pragma once 18 | 19 | // Types of demo messages we can write/parse 20 | enum 21 | { 22 | TYPE_USER = 0, 23 | }; 24 | 25 | void Demo_WriteBuffer( int type, int size, unsigned char *buffer ); 26 | 27 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/ev_hldm.h: -------------------------------------------------------------------------------- 1 | #if !defined ( EV_HLDMH ) 2 | #define EV_HLDMH 3 | 4 | enum disc_e 5 | { 6 | DISC_IDLE = 0, 7 | DISC_FIDGET, 8 | DISC_PINPULL, 9 | DISC_THROW1, // toss 10 | DISC_THROW2, // medium 11 | DISC_THROW3, // hard 12 | DISC_HOLSTER, 13 | DISC_DRAW 14 | }; 15 | 16 | #endif // EV_HLDMH -------------------------------------------------------------------------------- /ricochet/cl_dll/events.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #include "hud.h" 16 | #include "cl_util.h" 17 | 18 | void Game_HookEvents( void ); 19 | 20 | /* 21 | =================== 22 | EV_HookEvents 23 | 24 | See if game specific code wants to hook any events. 25 | =================== 26 | */ 27 | void EV_HookEvents( void ) 28 | { 29 | Game_HookEvents(); 30 | } -------------------------------------------------------------------------------- /ricochet/cl_dll/hl/hl_objects.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #include "../hud.h" 16 | #include "../cl_util.h" 17 | #include "../demo.h" 18 | 19 | /* 20 | ===================== 21 | Game_AddObjects 22 | 23 | Add game specific, client-side objects here 24 | ===================== 25 | */ 26 | void Game_AddObjects( void ) 27 | { 28 | } -------------------------------------------------------------------------------- /ricochet/cl_dll/hud_iface.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( HUD_IFACEH ) 16 | #define HUD_IFACEH 17 | #pragma once 18 | 19 | #ifndef EXPORT 20 | #ifdef _WIN32 21 | #define EXPORT _declspec( dllexport ) 22 | #else 23 | #define EXPORT __attribute__ ((visibility("default"))) 24 | #endif 25 | #endif // ndef EXPORT 26 | 27 | #define DLLEXPORT EXPORT 28 | 29 | 30 | typedef int (*pfnUserMsgHook)(const char *pszName, int iSize, void *pbuf); 31 | #include "wrect.h" 32 | #include "../engine/cdll_int.h" 33 | extern cl_enginefunc_t gEngfuncs; 34 | 35 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/hud_servers.h: -------------------------------------------------------------------------------- 1 | #if !defined( HUD_SERVERSH ) 2 | #define HUD_SERVERSH 3 | #pragma once 4 | 5 | #define NET_CALLBACK /* */ 6 | 7 | // Dispatchers 8 | void NET_CALLBACK ListResponse( struct net_response_s *response ); 9 | void NET_CALLBACK ServerResponse( struct net_response_s *response ); 10 | void NET_CALLBACK PingResponse( struct net_response_s *response ); 11 | void NET_CALLBACK RulesResponse( struct net_response_s *response ); 12 | void NET_CALLBACK PlayersResponse( struct net_response_s *response ); 13 | 14 | void ServersInit( void ); 15 | void ServersShutdown( void ); 16 | void ServersThink( double time ); 17 | void ServersCancel( void ); 18 | 19 | // Get list and get server info from each 20 | void ServersList( void ); 21 | 22 | // Query for IP / IPX LAN servers 23 | void BroadcastServersList( int clearpending ); 24 | 25 | void ServerPing( int server ); 26 | void ServerRules( int server ); 27 | void ServerPlayers( int server ); 28 | 29 | int ServersGetCount( void ); 30 | const char *ServersGetInfo( int server ); 31 | int ServersIsQuerying( void ); 32 | void SortServers( const char *fieldname ); 33 | 34 | #endif // HUD_SERVERSH -------------------------------------------------------------------------------- /ricochet/cl_dll/hud_update.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // hud_update.cpp 17 | // 18 | 19 | #include 20 | #include "hud.h" 21 | #include "cl_util.h" 22 | #include 23 | #include 24 | 25 | int CL_ButtonBits( int ); 26 | void CL_ResetButtonBits( int bits ); 27 | 28 | extern float v_idlescale; 29 | float in_fov; 30 | extern void HUD_SetCmdBits( int bits ); 31 | 32 | int CHud::UpdateClientData(client_data_t *cdata, float time) 33 | { 34 | memcpy(m_vecOrigin, cdata->origin, sizeof(vec3_t)); 35 | memcpy(m_vecAngles, cdata->viewangles, sizeof(vec3_t)); 36 | 37 | m_iKeyBits = CL_ButtonBits( 0 ); 38 | m_iWeaponBits = cdata->iWeaponBits; 39 | 40 | in_fov = cdata->fov; 41 | 42 | Think(); 43 | 44 | cdata->fov = m_iFOV; 45 | 46 | v_idlescale = m_iConcussionEffect; 47 | 48 | CL_ResetButtonBits( m_iKeyBits ); 49 | 50 | // return 1 if in anything in the client_data struct has been changed, 0 otherwise 51 | return 1; 52 | } 53 | 54 | 55 | -------------------------------------------------------------------------------- /ricochet/cl_dll/in_defs.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( IN_DEFSH ) 16 | #define IN_DEFSH 17 | #pragma once 18 | 19 | // up / down 20 | #define PITCH 0 21 | // left / right 22 | #define YAW 1 23 | // fall over 24 | #define ROLL 2 25 | 26 | 27 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/kbutton.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( KBUTTONH ) 16 | #define KBUTTONH 17 | #pragma once 18 | 19 | typedef struct kbutton_s 20 | { 21 | int down[2]; // key nums holding it down 22 | int state; // low bit is down state 23 | } kbutton_t; 24 | 25 | #endif // !KBUTTONH -------------------------------------------------------------------------------- /ricochet/cl_dll/studio_util.h: -------------------------------------------------------------------------------- 1 | #if !defined( STUDIO_UTIL_H ) 2 | #define STUDIO_UTIL_H 3 | #if defined( WIN32 ) 4 | #pragma once 5 | #endif 6 | 7 | #ifndef M_PI 8 | #define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h 9 | #endif 10 | 11 | #ifndef PITCH 12 | // MOVEMENT INFO 13 | // up / down 14 | #define PITCH 0 15 | // left / right 16 | #define YAW 1 17 | // fall over 18 | #define ROLL 2 19 | #endif 20 | 21 | #define FDotProduct( a, b ) (fabs((a[0])*(b[0])) + fabs((a[1])*(b[1])) + fabs((a[2])*(b[2]))) 22 | 23 | void AngleMatrix (const float *angles, float (*matrix)[4] ); 24 | int VectorCompare (const float *v1, const float *v2); 25 | void CrossProduct (const float *v1, const float *v2, float *cross); 26 | void VectorTransform (const float *in1, float in2[3][4], float *out); 27 | void ConcatTransforms (float in1[3][4], float in2[3][4], float out[3][4]); 28 | void MatrixCopy( float in[3][4], float out[3][4] ); 29 | void QuaternionMatrix( vec4_t quaternion, float (*matrix)[4] ); 30 | void QuaternionSlerp( vec4_t p, vec4_t q, float t, vec4_t qt ); 31 | void AngleQuaternion( float *angles, vec4_t quaternion ); 32 | 33 | #endif // STUDIO_UTIL_H -------------------------------------------------------------------------------- /ricochet/cl_dll/vgui_ConsolePanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef CONSOLEPANEL_H 3 | #define CONSOLEPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | class TextGrid; 11 | class TextEntry; 12 | } 13 | 14 | 15 | class ConsolePanel : public vgui::Panel 16 | { 17 | private: 18 | vgui::TextGrid* _textGrid; 19 | vgui::TextEntry* _textEntry; 20 | public: 21 | ConsolePanel(int x,int y,int wide,int tall); 22 | public: 23 | virtual void setSize(int wide,int tall); 24 | virtual int print(const char* text); 25 | virtual int vprintf(const char* format,va_list argList); 26 | virtual int printf(const char* format,...); 27 | virtual void doExecCommand(); 28 | }; 29 | 30 | 31 | 32 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/vgui_ControlConfigPanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef CONTROLCONFIGPANEL_H 3 | #define CONTROLCONFIGPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | class HeaderPanel; 11 | class TablePanel; 12 | class ScrollPanel; 13 | class InputStream; 14 | class Label; 15 | } 16 | 17 | class ControlConfigPanel : public vgui::Panel 18 | { 19 | private: 20 | vgui::HeaderPanel* _headerPanel; 21 | vgui::TablePanel* _tablePanel; 22 | vgui::ScrollPanel* _scrollPanel; 23 | vgui::Dar _cvarDar; 24 | vgui::Dar _descDar; 25 | vgui::Label* _actionLabel; 26 | vgui::Label* _keyButtonLabel; 27 | vgui::Label* _alternateLabel; 28 | public: 29 | ControlConfigPanel(int x,int y,int wide,int tall); 30 | public: 31 | void AddCVar(const char* cvar,const char* desc); 32 | void AddCVarFromInputStream(vgui::InputStream* is); 33 | int GetCVarCount(); 34 | void GetCVar(int index,char* cvar,int cvarLen,char* desc,int descLen); 35 | void GetCVarBind(const char* cvar,char* bind,int bindLen,char* bindAlt,int bindAltLen); 36 | void SetCVarBind(const char* cvar,const char* bind,const char* bindAlt); 37 | }; 38 | 39 | 40 | 41 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/vgui_ServerBrowser.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef ServerBrowser_H 3 | #define ServerBrowser_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | class Button; 10 | class TablePanel; 11 | class HeaderPanel; 12 | } 13 | 14 | class CTransparentPanel; 15 | class CommandButton; 16 | 17 | // Scoreboard positions 18 | #define SB_X_INDENT (20 * ((float)ScreenHeight / 640)) 19 | #define SB_Y_INDENT (20 * ((float)ScreenHeight / 480)) 20 | 21 | class ServerBrowser : public CTransparentPanel 22 | { 23 | private: 24 | HeaderPanel * _headerPanel; 25 | TablePanel* _tablePanel; 26 | 27 | CommandButton* _connectButton; 28 | CommandButton* _refreshButton; 29 | CommandButton* _broadcastRefreshButton; 30 | CommandButton* _stopButton; 31 | CommandButton* _sortButton; 32 | CommandButton* _cancelButton; 33 | 34 | CommandButton* _pingButton; 35 | 36 | public: 37 | ServerBrowser(int x,int y,int wide,int tall); 38 | public: 39 | virtual void setSize(int wide,int tall); 40 | }; 41 | 42 | 43 | 44 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/vgui_int.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_INT_H 3 | #define VGUI_INT_H 4 | 5 | extern "C" 6 | { 7 | void VGui_Startup(); 8 | void VGui_Shutdown(); 9 | 10 | //Only safe to call from inside subclass of Panel::paintBackground 11 | void VGui_ViewportPaintBackground(int extents[4]); 12 | } 13 | 14 | 15 | #endif -------------------------------------------------------------------------------- /ricochet/cl_dll/view.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined ( VIEWH ) 16 | #define VIEWH 17 | #pragma once 18 | 19 | void V_StartPitchDrift( void ); 20 | void V_StopPitchDrift( void ); 21 | 22 | #endif // !VIEWH -------------------------------------------------------------------------------- /ricochet/cl_dll/voice_status.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/ricochet/cl_dll/voice_status.h -------------------------------------------------------------------------------- /ricochet/cl_dll/wrect.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( WRECTH ) 16 | #define WRECTH 17 | 18 | typedef struct rect_s 19 | { 20 | int left, right, top, bottom; 21 | } wrect_t; 22 | 23 | #endif -------------------------------------------------------------------------------- /ricochet/dlls/activitymap.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #define _A( a ) { a, #a } 17 | 18 | activity_map_t activity_map[] = 19 | { 20 | _A( ACT_IDLE ), 21 | _A( ACT_HOP ), 22 | 23 | _A( ACT_FALL_FORWARD ), 24 | _A( ACT_FALL_BACKWARD ), 25 | _A( ACT_FALL_LEFT ), 26 | _A( ACT_FALL_RIGHT ), 27 | 28 | _A( ACT_FLINCH_BACK ), 29 | _A( ACT_FLINCH_LEFT ), 30 | _A( ACT_FLINCH_RIGHT ), 31 | _A( ACT_FLINCH_FORWARD ), 32 | 33 | _A( ACT_DIE_HEADSHOT ), 34 | _A( ACT_DIEFORWARD ), 35 | _A( ACT_DIEBACKWARD ), 36 | 0, NULL 37 | }; 38 | -------------------------------------------------------------------------------- /ricochet/dlls/cdll_dll.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // cdll_dll.h 17 | 18 | // this file is included by both the game-dll and the client-dll, 19 | 20 | #ifndef CDLL_DLL_H 21 | #define CDLL_DLL_H 22 | 23 | #define MAX_WEAPONS 32 // ??? 24 | 25 | #define MAX_WEAPON_SLOTS 5 // hud item selection slots 26 | #define MAX_ITEM_TYPES 6 // hud item selection slots 27 | 28 | #define MAX_ITEMS 5 // hard coded item types 29 | 30 | #define HIDEHUD_WEAPONS ( 1<<0 ) 31 | #define HIDEHUD_FLASHLIGHT ( 1<<1 ) 32 | #define HIDEHUD_ALL ( 1<<2 ) 33 | #define HIDEHUD_HEALTH ( 1<<3 ) 34 | 35 | #define MAX_AMMO_TYPES 32 // ??? 36 | #define MAX_AMMO_SLOTS 32 // not really slots 37 | 38 | #define HUD_PRINTNOTIFY 1 39 | #define HUD_PRINTCONSOLE 2 40 | #define HUD_PRINTTALK 3 41 | #define HUD_PRINTCENTER 4 42 | 43 | 44 | #define WEAPON_SUIT 31 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /ricochet/dlls/disc_weapon.h: -------------------------------------------------------------------------------- 1 | #if !defined( DISC_WEAPON_H ) 2 | #define DISC_WEAPON_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | class CDisc; 8 | class CDiscWeapon : public CBasePlayerWeapon 9 | { 10 | public: 11 | void Spawn( void ); 12 | void Precache( void ); 13 | int iItemSlot( void ) { return 5; } 14 | int GetItemInfo(ItemInfo *p); 15 | 16 | int AddDuplicate( CBasePlayerItem *pOriginal ); 17 | CDisc *FireDisc( bool bDecapitator ); 18 | void PrimaryAttack( void ); 19 | void SecondaryAttack( void ); 20 | BOOL Deploy( void ); 21 | BOOL CanHolster( void ); 22 | void Holster( int skiplocal = 0 ); 23 | void WeaponIdle( void ); 24 | 25 | BOOL UseDecrement( void ) { return TRUE; }; 26 | 27 | int m_iSpriteTexture; 28 | int m_iFastShotDiscs; 29 | private: 30 | unsigned short m_usFireDisc; 31 | }; 32 | 33 | #endif // DISC_WEAPON_H 34 | -------------------------------------------------------------------------------- /ricochet/dlls/doors.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef DOORS_H 16 | #define DOORS_H 17 | 18 | // doors 19 | #define SF_DOOR_ROTATE_Y 0 20 | #define SF_DOOR_START_OPEN 1 21 | #define SF_DOOR_ROTATE_BACKWARDS 2 22 | #define SF_DOOR_PASSABLE 8 23 | #define SF_DOOR_ONEWAY 16 24 | #define SF_DOOR_NO_AUTO_RETURN 32 25 | #define SF_DOOR_ROTATE_Z 64 26 | #define SF_DOOR_ROTATE_X 128 27 | #define SF_DOOR_USE_ONLY 256 // door must be opened by player's use button. 28 | #define SF_DOOR_NOMONSTERS 512 // Monster can't open 29 | #define SF_DOOR_SILENT 0x80000000 30 | 31 | 32 | 33 | #endif //DOORS_H 34 | -------------------------------------------------------------------------------- /ricochet/dlls/explode.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef EXPLODE_H 16 | #define EXPLODE_H 17 | 18 | 19 | #define SF_ENVEXPLOSION_NODAMAGE ( 1 << 0 ) // when set, ENV_EXPLOSION will not actually inflict damage 20 | #define SF_ENVEXPLOSION_REPEATABLE ( 1 << 1 ) // can this entity be refired? 21 | #define SF_ENVEXPLOSION_NOFIREBALL ( 1 << 2 ) // don't draw the fireball 22 | #define SF_ENVEXPLOSION_NOSMOKE ( 1 << 3 ) // don't draw the smoke 23 | #define SF_ENVEXPLOSION_NODECAL ( 1 << 4 ) // don't make a scorch mark 24 | #define SF_ENVEXPLOSION_NOSPARKS ( 1 << 5 ) // don't make a scorch mark 25 | 26 | extern DLL_GLOBAL short g_sModelIndexFireball; 27 | extern DLL_GLOBAL short g_sModelIndexSmoke; 28 | 29 | 30 | extern void ExplosionCreate( const Vector ¢er, const Vector &angles, edict_t *pOwner, int magnitude, BOOL doDamage ); 31 | 32 | #endif //EXPLODE_H 33 | -------------------------------------------------------------------------------- /ricochet/dlls/game.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef GAME_H 17 | #define GAME_H 18 | 19 | extern void GameDLLInit( void ); 20 | extern void GameDLLShutdown( void ); 21 | 22 | extern cvar_t displaysoundlist; 23 | 24 | // multiplayer server rules 25 | extern cvar_t fraglimit; 26 | extern cvar_t timelimit; 27 | extern cvar_t friendlyfir; 28 | extern cvar_t falldamage; 29 | extern cvar_t weaponstay; 30 | extern cvar_t forcerespaw; 31 | extern cvar_t flashlight; 32 | extern cvar_t aimcrosshair; 33 | extern cvar_t decalfrequency; 34 | extern cvar_t teamlist; 35 | extern cvar_t teamoverride; 36 | extern cvar_t defaultteam; 37 | extern cvar_t allow_spectators; 38 | 39 | // Engine Cvars 40 | extern cvar_t *g_psv_gravity; 41 | extern cvar_t *g_psv_aim; 42 | extern cvar_t *g_footsteps; 43 | 44 | #endif // GAME_H 45 | -------------------------------------------------------------------------------- /ricochet/dlls/globals.cpp: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | /* 16 | 17 | ===== globals.cpp ======================================================== 18 | 19 | DLL-wide global variable definitions. 20 | They're all defined here, for convenient centralization. 21 | Source files that need them should "extern ..." declare each 22 | variable, to better document what globals they care about. 23 | 24 | */ 25 | 26 | #include "extdll.h" 27 | #include "util.h" 28 | #include "cbase.h" 29 | #include "soundent.h" 30 | 31 | DLL_GLOBAL ULONG g_ulFrameCount; 32 | DLL_GLOBAL ULONG g_ulModelIndexEyes; 33 | DLL_GLOBAL ULONG g_ulModelIndexPlayer; 34 | DLL_GLOBAL Vector g_vecAttackDir; 35 | DLL_GLOBAL int g_iSkillLevel; 36 | DLL_GLOBAL int gDisplayTitle; 37 | DLL_GLOBAL BOOL g_fGameOver; 38 | DLL_GLOBAL const Vector g_vecZero = Vector(0,0,0); 39 | DLL_GLOBAL int g_Language; 40 | -------------------------------------------------------------------------------- /ricochet/dlls/items.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef ITEMS_H 16 | #define ITEMS_H 17 | 18 | 19 | class CItem : public CBaseEntity 20 | { 21 | public: 22 | void Spawn( void ); 23 | CBaseEntity* Respawn( void ); 24 | void EXPORT ItemTouch( CBaseEntity *pOther ); 25 | void EXPORT Materialize( void ); 26 | virtual BOOL MyTouch( CBasePlayer *pPlayer ) { return FALSE; }; 27 | }; 28 | 29 | #endif // ITEMS_H 30 | -------------------------------------------------------------------------------- /ricochet/dlls/maprules.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef MAPRULES_H 17 | #define MAPRULES_H 18 | 19 | 20 | 21 | #endif // MAPRULES_H 22 | 23 | -------------------------------------------------------------------------------- /ricochet/dlls/monsterevent.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef MONSTEREVENT_H 16 | #define MONSTEREVENT_H 17 | 18 | typedef struct 19 | { 20 | int event; 21 | char *options; 22 | } MonsterEvent_t; 23 | 24 | #define EVENT_SPECIFIC 0 25 | #define EVENT_SCRIPTED 1000 26 | #define EVENT_SHARED 2000 27 | #define EVENT_CLIENT 5000 28 | 29 | #define MONSTER_EVENT_BODYDROP_LIGHT 2001 30 | #define MONSTER_EVENT_BODYDROP_HEAVY 2002 31 | 32 | #define MONSTER_EVENT_SWISHSOUND 2010 33 | 34 | #endif // MONSTEREVENT_H 35 | -------------------------------------------------------------------------------- /ricochet/dlls/mp.def: -------------------------------------------------------------------------------- 1 | LIBRARY mp 2 | EXPORTS 3 | GiveFnptrsToDll @1 4 | SECTIONS 5 | .data READ WRITE 6 | -------------------------------------------------------------------------------- /ricochet/dlls/schedule.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | //========================================================= 16 | // Scheduling 17 | //========================================================= 18 | #ifndef SCHEDULE_H 19 | #define SCHEDULE_H 20 | 21 | #define bits_COND_SEE_HATE ( 1 << 1 ) // see something that you hate 22 | #define bits_COND_SEE_FEAR ( 1 << 2 ) // see something that you are afraid of 23 | #define bits_COND_SEE_DISLIKE ( 1 << 3 ) // see something that you dislike 24 | #define bits_COND_SEE_ENEMY ( 1 << 4 ) // target entity is in full view. 25 | #define bits_COND_LIGHT_DAMAGE ( 1 << 8 ) // hurt a little 26 | #define bits_COND_HEAVY_DAMAGE ( 1 << 9 ) // hurt a lot 27 | #define bits_COND_SEE_CLIENT ( 1 << 21) // see a client 28 | #define bits_COND_SEE_NEMESIS ( 1 << 22) // see my nemesis 29 | 30 | 31 | #endif // SCHEDULE_H 32 | -------------------------------------------------------------------------------- /ricochet/dlls/spectator.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // Spectator.h 16 | 17 | class CBaseSpectator : public CBaseEntity 18 | { 19 | public: 20 | void Spawn(); 21 | void SpectatorConnect(void); 22 | void SpectatorDisconnect(void); 23 | void SpectatorThink(void); 24 | 25 | private: 26 | void SpectatorImpulseCommand(void); 27 | }; 28 | -------------------------------------------------------------------------------- /ricochet/dlls/talkmonster.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef TALKMONSTER_H 17 | #define TALKMONSTER_H 18 | 19 | class CTalkMonster : public CBaseMonster 20 | { 21 | public: 22 | static float g_talkWaitTime; 23 | 24 | }; 25 | 26 | #endif //TALKMONSTER_H 27 | -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_debug.h: -------------------------------------------------------------------------------- 1 | #ifndef PM_DEBUG_H 2 | #define PM_DEBUG_H 3 | #pragma once 4 | 5 | void PM_ViewEntity( void ); 6 | void PM_DrawBBox(vec3_t mins, vec3_t maxs, vec3_t origin, int pcolor, float life); 7 | void PM_ParticleLine(vec3_t start, vec3_t end, int pcolor, float life, float vert); 8 | void PM_ShowClipBox( void ); 9 | 10 | #endif // PMOVEDBG_H -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_info.h: -------------------------------------------------------------------------------- 1 | // Physics info string definition 2 | #if !defined( PM_INFOH ) 3 | #define PM_INFOH 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #define MAX_PHYSINFO_STRING 256 9 | 10 | #endif // PM_INFOH 11 | -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_materials.h: -------------------------------------------------------------------------------- 1 | #if !defined( PM_MATERIALSH ) 2 | #define PM_MATERIALSH 3 | #pragma once 4 | 5 | #define CBTEXTURENAMEMAX 13 // only load first n chars of name 6 | 7 | #define CHAR_TEX_CONCRETE 'C' // texture types 8 | #define CHAR_TEX_METAL 'M' 9 | #define CHAR_TEX_DIRT 'D' 10 | #define CHAR_TEX_VENT 'V' 11 | #define CHAR_TEX_GRATE 'G' 12 | #define CHAR_TEX_TILE 'T' 13 | #define CHAR_TEX_SLOSH 'S' 14 | #define CHAR_TEX_WOOD 'W' 15 | #define CHAR_TEX_COMPUTER 'P' 16 | #define CHAR_TEX_GLASS 'Y' 17 | #define CHAR_TEX_FLESH 'F' 18 | 19 | #endif // !PM_MATERIALSH -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_movevars.h: -------------------------------------------------------------------------------- 1 | // pm_movevars.h 2 | #if !defined( PM_MOVEVARSH ) 3 | #define PM_MOVEVARSH 4 | 5 | // movevars_t // Physics variables. 6 | typedef struct movevars_s movevars_t; 7 | 8 | struct movevars_s 9 | { 10 | float gravity; // Gravity for map 11 | float stopspeed; // Deceleration when not moving 12 | float maxspeed; // Max allowed speed 13 | float spectatormaxspeed; 14 | float accelerate; // Acceleration factor 15 | float airaccelerate; // Same for when in open air 16 | float wateraccelerate; // Same for when in water 17 | float friction; 18 | float edgefriction; // Extra friction near dropofs 19 | float waterfriction; // Less in water 20 | float entgravity; // 1.0 21 | float bounce; // Wall bounce value. 1.0 22 | float stepsize; // sv_stepsize; 23 | float maxvelocity; // maximum server velocity. 24 | float zmax; // Max z-buffer range (for GL) 25 | float waveHeight; // Water wave height (for GL) 26 | qboolean footsteps; // Play footstep sounds 27 | char skyName[32]; // Name of the sky map 28 | float rollangle; 29 | float rollspeed; 30 | float skycolor_r; // Sky color 31 | float skycolor_g; // 32 | float skycolor_b; // 33 | float skyvec_x; // Sky vector 34 | float skyvec_y; // 35 | float skyvec_z; // 36 | }; 37 | 38 | extern movevars_t movevars; 39 | 40 | #endif -------------------------------------------------------------------------------- /ricochet/pm_shared/pm_shared.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | // 17 | // pm_shared.h 18 | // 19 | #if !defined( PM_SHAREDH ) 20 | #define PM_SHAREDH 21 | #pragma once 22 | 23 | void PM_Init( struct playermove_s *ppmove ); 24 | void PM_Move ( struct playermove_s *ppmove, int server ); 25 | char PM_FindTextureType( char *name ); 26 | 27 | // Spectator flags 28 | #define SPEC_IS_SPECTATOR (1<<0) 29 | #define SPEC_SMOOTH_ANGLES (1<<1) 30 | #define SPEC_SMOOTH_ORIGIN (1<<2) 31 | 32 | #endif -------------------------------------------------------------------------------- /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/light/light.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/light/light.c -------------------------------------------------------------------------------- /utils/light/light.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/light/light.h -------------------------------------------------------------------------------- /utils/light/ltface.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/procinfo/lib/win32_vc6/procinfo.lib -------------------------------------------------------------------------------- /utils/procinfo/procinfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/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/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/qcsg/source.p0 -------------------------------------------------------------------------------- /utils/qcsg/source.p1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/qcsg/source.p1 -------------------------------------------------------------------------------- /utils/qcsg/source.p2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/qcsg/source.p2 -------------------------------------------------------------------------------- /utils/qlumpy/qlumpy.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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.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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/sprgen/s_bubble.spr -------------------------------------------------------------------------------- /utils/sprgen/s_explod.spr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/sprgen/s_explod.spr -------------------------------------------------------------------------------- /utils/sprgen/s_light.spr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/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/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ActionSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ActionSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_App.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_App.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Bitmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Bitmap.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BitmapTGA.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_BitmapTGA.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Border.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Border.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BorderLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_BorderLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BorderPair.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_BorderPair.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_BuildGroup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_BuildGroup.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Button.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Button.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ButtonController.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ButtonController.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ButtonGroup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ButtonGroup.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ChangeSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ChangeSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_CheckButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_CheckButton.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Color.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Color.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ComboKey.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ComboKey.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ConfigWizard.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ConfigWizard.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Cursor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Cursor.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Dar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Dar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_DataInputStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_DataInputStream.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Desktop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Desktop.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_DesktopIcon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_DesktopIcon.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_EditPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_EditPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_EtchedBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_EtchedBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FileInputStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_FileInputStream.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FlowLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_FlowLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FocusChangeSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_FocusChangeSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FocusNavGroup.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_FocusNavGroup.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Font.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Font.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Frame.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Frame.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_FrameSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_FrameSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_GridLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_GridLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_HeaderPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_HeaderPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Image.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Image.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ImagePanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ImagePanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_InputSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_InputSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_InputStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_InputStream.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_IntChangeSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_IntChangeSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_IntLabel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_IntLabel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_KeyCode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_KeyCode.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Label.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Label.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Layout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Layout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_LayoutInfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_LayoutInfo.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_LineBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_LineBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ListPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ListPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_LoweredBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_LoweredBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Menu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Menu.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MenuItem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_MenuItem.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MenuSeparator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_MenuSeparator.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MessageBox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_MessageBox.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MiniApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_MiniApp.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_MouseCode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_MouseCode.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Panel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Panel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Point.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Point.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_PopupMenu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_PopupMenu.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ProgressBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ProgressBar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_RadioButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_RadioButton.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_RaisedBorder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_RaisedBorder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_RepaintSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_RepaintSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Scheme.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Scheme.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ScrollBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ScrollBar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ScrollPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ScrollPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Slider.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Slider.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_StackLayout.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_StackLayout.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_String.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_String.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_Surface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_Surface.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_SurfaceBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_SurfaceBase.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_SurfaceGL.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_SurfaceGL.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TabPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_TabPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TablePanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_TablePanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TaskBar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_TaskBar.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextEntry.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_TextEntry.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextGrid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_TextGrid.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextImage.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_TextImage.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TextPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_TextPanel.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TickSignal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_TickSignal.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_ToggleButton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_ToggleButton.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_TreeFolder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_TreeFolder.h -------------------------------------------------------------------------------- /utils/vgui/include/VGUI_WizardPanel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/include/VGUI_WizardPanel.h -------------------------------------------------------------------------------- /utils/vgui/lib/win32_vc16/vgui.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/lib/win32_vc16/vgui.lib -------------------------------------------------------------------------------- /utils/vgui/lib/win32_vc6/vgui.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui/lib/win32_vc6/vgui.lib -------------------------------------------------------------------------------- /utils/vgui2/lib/win32_vc16/vgui2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValveSoftware/halflife/b1b5cf5892918535619b2937bb927e46cb097ba1/utils/vgui2/lib/win32_vc16/vgui2.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 | --------------------------------------------------------------------------------