├── cl_dll ├── events.cpp ├── overview.cpp ├── r_texture.cpp ├── cs_wpn │ ├── cs_objects.cpp │ ├── bte_weapons_register.h │ └── bte_weapons.h ├── vgui2 │ ├── csmoe │ │ ├── vgui_int.h │ │ ├── vgui_int.cpp │ │ ├── BuyMenu │ │ │ └── WeaponImagePanel.h │ │ └── cstriketeammenu.h │ ├── IViewport.h │ ├── CBackGroundPanel.h │ ├── CBackGroundPanel.cpp │ ├── CGameUITestPanel.h │ ├── game_controls │ │ └── ICSViewPortMsgs.h │ └── IGameUIPanel.h ├── hud │ ├── newhud │ │ ├── NewFontManager.cpp │ │ └── NewFontManager.h │ ├── zbs │ │ ├── zbs_kill.h │ │ ├── zbs_roundclear.h │ │ ├── zbs.h │ │ ├── zbs_level.h │ │ └── zbs_scoreboard.h │ ├── hud_iface.h │ ├── scenariostatus.h │ ├── zbz │ │ ├── zbz.h │ │ └── zbz_ghosthunter.h │ ├── hud_centertips.h │ └── followicon.h ├── studio │ ├── GameStudioModelRenderer.cpp │ └── bonequatlru.h ├── calcscreen.h ├── imgui_cl │ ├── imgui_cl_menu.h │ └── imgui_cl_buy.h ├── luash_cl │ ├── ev_lua.h │ ├── luash_cl_mobile.cpp │ ├── luash_cl_render.cpp │ ├── luash_cl_filesystem.cpp │ ├── luash_cl_engfunc.cpp │ └── luash_cl_extern.cpp ├── view.h ├── stdafx.cpp ├── demo.h ├── camera.h ├── input_touch.cpp ├── in_defs.h ├── input.h ├── overview.h └── rain.h ├── dlls ├── wpn_shared │ └── .gitkeep ├── util.cpp ├── bunkerbuster.cpp ├── claymoremine.cpp ├── client │ ├── admin.h │ ├── ghosthuntermenu.h │ └── wdnmd.h ├── weapons_precache.h ├── weapons_msg.h ├── player │ ├── player_fuck.h │ ├── player_spawnpoint.h │ ├── csdm_randomspawn.h │ ├── player_knockback.h │ ├── player_human_level.h │ ├── player_signal.h │ ├── player_zombie.h │ ├── player_account.h │ ├── player_spawnprotection.cpp │ └── player_account.cpp ├── luash_sv │ ├── luash_sv_dllfunc.cpp │ ├── luash_sv_engfunc.cpp │ ├── luash_sv_filesystem.cpp │ ├── luash_sv_glb.cpp │ ├── luash_sv_extern.cpp │ ├── luash_sv.h │ └── luash_sv_marco.h ├── weapons_data.h ├── stdafx.cpp ├── weapons_msg.cpp ├── globals.cpp ├── plane.cpp ├── skill.cpp ├── map_manager.h ├── cbase │ ├── cbase_hash.h │ ├── cbase_typelist.cpp │ └── cbase_physint.h ├── weapons │ ├── RecoilPunch.hpp │ └── WeaponIdleDefault.hpp ├── m95tigernet.h ├── tutor_base_states.cpp ├── exportdef.h ├── vector.h └── bot │ └── states │ └── cs_bot_defend.cpp ├── engine ├── common │ ├── fs_mmap.h │ ├── fs_mmap.cpp │ ├── cook.h │ ├── cpu.h │ ├── model_encrypt.h │ ├── mod_extend_seq.h │ ├── mod_decryptor.h │ ├── library_static.h │ └── cpu.cpp ├── platform │ ├── winrt │ │ ├── SurfaceDial.h │ │ ├── SurfaceDial.cpp │ │ └── winrt_interop.h │ ├── emscripten │ │ ├── unaligned.txt │ │ └── mods.js.example │ ├── macos │ │ ├── TouchBar.h │ │ └── vid_macos.h │ ├── iOS │ │ ├── TapicEngine.mm │ │ └── TapicEngine.h │ ├── android │ │ └── dlsym-weak.h │ └── sdl │ │ └── events.h └── client │ ├── gl_cubemap.h │ ├── imgui_sprview.h │ ├── imgui_imewindow.h │ ├── imgui_menu_update.h │ ├── imgui_connectprogress.h │ ├── imgui_lcsm_warning.h │ ├── imgui_menu_server.h │ ├── imgui_menu_msgbox.h │ ├── gl_studioshader.h │ ├── imgui_console.h │ └── vgui2_surface.h ├── Android ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── app │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── csmoe.png │ │ │ │ ├── circle_white.xml │ │ │ │ ├── circle_black.xml │ │ │ │ └── layout_sel_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── strings.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── xml │ │ │ │ └── backup_descriptor.xml │ │ │ └── layout │ │ │ │ └── activity_asset_copy.xml │ │ │ └── ic_launcher-playstore.png │ └── lint.xml ├── build.gradle └── gradle.properties ├── public ├── angledef.h ├── interface.h ├── UtlMemory.h ├── UtlVector.h ├── utlrbtree.h ├── utllinkedlist.h ├── idedicatedexports.h ├── basetypes.h ├── unicode_strtools.h ├── meta │ ├── TypeIdentity.h │ └── TypeUtil.hpp └── nodiscard.h ├── vgui2_support ├── interfaces │ ├── ICommandLine.h │ ├── ServerBrowser │ │ └── IServerBrowser.h │ ├── IMouseControl.h │ ├── vgui │ │ ├── MouseCode.h │ │ ├── Cursor.h │ │ ├── IImage.h │ │ ├── IClientVGUI.h │ │ └── IScheme.h │ ├── GameUI │ │ └── IGameConsole.h │ ├── IClientVGUI.h │ └── IBaseUI.h ├── GameUI │ ├── LogoFile.h │ ├── GameLoading.h │ ├── GameUI_Interface.cpp │ ├── ToolBar.h │ ├── MoeSettings.h │ ├── KeyToggleCheckButton.h │ ├── BitmapImagePanel.h │ ├── BackgroundMenuButton.h │ ├── EngineInterface.h │ ├── ToolBar.cpp │ ├── CvarNegateCheckButton.h │ ├── CvarToggleCheckButton.h │ ├── CvarTextEntry.h │ ├── MultiplayerAdvancedDialog.h │ └── OptionsDialog.h ├── keydest.h ├── dead_wrapper │ ├── deadipanel.cpp │ ├── deadscheme.cpp │ └── deadfilesystem.cpp ├── cso_controls │ ├── CMakeLists.txt │ └── ColoredButton.h ├── vguimatsurface │ └── Clip2D.h ├── vgui2 │ ├── vgui_key_translation.h │ └── vgui_surfacelib │ │ ├── FontEffects.h │ │ └── vguifont.h ├── CGameUIFuncs.h └── vgui_controls │ └── Divider.h ├── game_launch ├── game.ico ├── game.rc ├── icon-xash-material.ico ├── icon-xash-material.png ├── icon-gyllenkilde-material.ico └── icon-gyllenkilde-material.png ├── imgui_ext └── imgui_lua │ └── imgui_lua.h ├── cmake ├── DragNDrop │ ├── DS_Store │ ├── Icon.icns │ ├── Icon.png │ └── background.png └── video_config.cmake ├── SourceSDK ├── tier0 │ ├── tier0_staticlink.vpc │ ├── DESKey │ │ ├── ALGO32.LIB │ │ └── DK2WIN32.LIB │ ├── tier0_strtools.h │ ├── pch_tier0.cpp │ ├── meminit.cpp │ ├── xbox │ │ ├── xbox_profile.cpp │ │ └── xbox_console.cpp │ └── tier0_exclude.vpc ├── mathlib │ ├── datagen.pl │ ├── vector.cpp │ ├── 3dnow.h │ ├── halton.cpp │ └── sse.h ├── public │ ├── coordsize.h │ ├── worldsize.h │ ├── tier1 │ │ ├── utlbinaryblock.h │ │ ├── processor_detect.h │ │ ├── checksum_crc.h │ │ └── diff.h │ ├── tier0 │ │ ├── valve_minmax_on.h │ │ ├── valve_minmax_off.h │ │ ├── pointeroverride.asm │ │ ├── xbox_codeline_defines.h │ │ ├── memdbgoff.h │ │ ├── type_traits.h │ │ ├── progressbar.h │ │ ├── vprof_telemetry.h │ │ ├── IOCTLCodes.h │ │ └── valve_off.h │ ├── arraysize.h │ ├── mathlib │ │ ├── compressed_light_cube.h │ │ ├── anorms.h │ │ ├── angledef.h │ │ └── bumpvects.h │ ├── vstdlib │ │ └── cvar.h │ ├── winlite.h │ ├── UnicodeFileHelpers.h │ └── OfflineMode.h ├── common │ ├── IRunGameEngine.h │ ├── iappinformation.h │ ├── randoverride.cpp │ └── ifilesystemopendialog.h ├── vstdlib │ ├── vcover.cpp │ ├── getstackptr64.masm │ ├── vstdlib_exclude.vpc │ ├── coroutine_osx.vpc │ └── xbox │ │ └── ___FirstModule.cpp ├── wrapper │ ├── deadipanel.cpp │ ├── deadscheme.cpp │ └── deadfilesystem.cpp └── tier1 │ ├── tier1_exclude.vpc │ └── rangecheckedvar.cpp ├── Xcode-iOS ├── Resources │ ├── Icon.png │ ├── Launch.png │ ├── Steam.png │ ├── iTunes.png │ ├── MacBook.png │ ├── page1_en.png │ ├── page2_en.png │ ├── PowerCable.png │ ├── PowerCable2.png │ ├── MacBookiTunes.png │ ├── iTunesWindow.png │ ├── GetCSMoEResouce.png │ └── Assets.xcassets │ │ ├── Contents.json │ │ ├── Logo.imageset │ │ ├── Logo-1.png │ │ ├── Logo-2.png │ │ ├── Logo.png │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ ├── icon-29.png │ │ ├── icon-40.png │ │ ├── icon-50.png │ │ ├── icon-57.png │ │ ├── icon-72.png │ │ ├── icon-76.png │ │ ├── icon-1024.png │ │ ├── icon-20@2x.png │ │ ├── icon-20@3x.png │ │ ├── icon-29@2x.png │ │ ├── icon-29@3x.png │ │ ├── icon-40@2x.png │ │ ├── icon-40@3x.png │ │ ├── icon-50@2x.png │ │ ├── icon-57@2x.png │ │ ├── icon-60@2x.png │ │ ├── icon-60@3x.png │ │ ├── icon-72@2x.png │ │ ├── icon-76@2x.png │ │ ├── icon-20-ipad.png │ │ ├── icon-29-ipad.png │ │ ├── icon-83.5@2x.png │ │ ├── icon-20@2x-ipad.png │ │ └── icon-29@2x-ipad.png ├── Bugly.framework │ ├── Bugly │ └── Modules │ │ └── module.modulemap ├── CSMoE-iOS.xcodeproj │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── CSMoE-iOS │ ├── CSMoE-iOS.entitlements │ ├── controller │ └── TutorViewController.h │ └── model │ └── launcherdialog.h ├── 3rdparty ├── mysql │ └── lib │ │ ├── libmysql.dll │ │ └── libmysql.lib ├── yasm │ └── vsyasm-1.3.0-win64 │ │ └── vsyasm.exe └── mpg123-cmake │ ├── cmake │ ├── CheckCPUArch.c.in │ └── search_libs.cmake │ └── CMakeLists.txt ├── common ├── winsani_out.h ├── winsani_in.h ├── nowin.h ├── kbutton.h ├── enums.h ├── dll_state.h ├── wrect.h ├── entity_types.h ├── con_nprint.h ├── demo_api.h └── lightstyle.h ├── luash ├── luash.hpp ├── luash_meta.hpp ├── luash_imp.hpp ├── CMakeLists.txt ├── luash_bwd.hpp └── luash_fwd.hpp ├── mainui_cpp ├── menus │ ├── ConnectionWarning.h │ ├── ConnectionProgress.h │ └── PlayerIntroduceDialog.h ├── luash_menu │ ├── luash_menu_engfunc.cpp │ ├── luash_menu_filesystem.cpp │ ├── luash_menu_textfunc.cpp │ └── luash_menu.h ├── imgui_menu │ ├── imgui_menu.cpp │ ├── imgui_menu_update.h │ ├── imgui_menu_server.h │ └── imgui_menu_msgbox.h ├── model │ └── BaseArrayModel.h ├── Color.cpp ├── controls │ ├── ScrollView.h │ └── BaseClientWindow.h └── msvc6 │ └── compile.bat ├── cqmiao ├── Reciter.h └── CMakeLists.txt ├── hydb ├── DatabaseConfig.h ├── CMakeLists.txt ├── DatabaseConfig.cpp └── MySqlConnectionPool.h ├── game_shared └── configs │ └── cfg_zsht.h ├── pm_shared ├── pm_math.cpp └── pm_info.h └── cpp.hint /cl_dll/events.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cl_dll/overview.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cl_dll/r_texture.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cl_dll/cs_wpn/cs_objects.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dlls/wpn_shared/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /engine/common/fs_mmap.h: -------------------------------------------------------------------------------- 1 | #pragma once -------------------------------------------------------------------------------- /Android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /public/angledef.h: -------------------------------------------------------------------------------- 1 | #include "mathlib/angledef.h" -------------------------------------------------------------------------------- /public/interface.h: -------------------------------------------------------------------------------- 1 | #include "tier1/interface.h" -------------------------------------------------------------------------------- /vgui2_support/interfaces/ICommandLine.h: -------------------------------------------------------------------------------- 1 | #include "tier0/ICommandLine.h" -------------------------------------------------------------------------------- /cl_dll/vgui2/csmoe/vgui_int.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | void GetHudSize(int &w, int &h); -------------------------------------------------------------------------------- /dlls/util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/dlls/util.cpp -------------------------------------------------------------------------------- /public/UtlMemory.h: -------------------------------------------------------------------------------- 1 | #include "tier0/basetypes.h" 2 | #include "tier1/utlmemory.h" -------------------------------------------------------------------------------- /public/UtlVector.h: -------------------------------------------------------------------------------- 1 | #include "tier0/basetypes.h" 2 | #include "tier1/utlvector.h" -------------------------------------------------------------------------------- /public/utlrbtree.h: -------------------------------------------------------------------------------- 1 | #include "tier0/basetypes.h" 2 | #include "tier1/utlrbtree.h" -------------------------------------------------------------------------------- /game_launch/game.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/game_launch/game.ico -------------------------------------------------------------------------------- /game_launch/game.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/game_launch/game.rc -------------------------------------------------------------------------------- /imgui_ext/imgui_lua/imgui_lua.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | int luaopen_imgui(lua_State* L); -------------------------------------------------------------------------------- /public/utllinkedlist.h: -------------------------------------------------------------------------------- 1 | #include "tier0/basetypes.h" 2 | #include "tier1/utllinkedlist.h" -------------------------------------------------------------------------------- /vgui2_support/GameUI/LogoFile.h: -------------------------------------------------------------------------------- 1 | void UpdateLogoWAD(void *phdib, int r, int g, int b); -------------------------------------------------------------------------------- /dlls/bunkerbuster.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/dlls/bunkerbuster.cpp -------------------------------------------------------------------------------- /dlls/claymoremine.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/dlls/claymoremine.cpp -------------------------------------------------------------------------------- /cmake/DragNDrop/DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/cmake/DragNDrop/DS_Store -------------------------------------------------------------------------------- /cmake/DragNDrop/Icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/cmake/DragNDrop/Icon.icns -------------------------------------------------------------------------------- /cmake/DragNDrop/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/cmake/DragNDrop/Icon.png -------------------------------------------------------------------------------- /SourceSDK/tier0/tier0_staticlink.vpc: -------------------------------------------------------------------------------- 1 | $Conditional STATIC_LINK "1" 2 | 3 | $Include "tier0.vpc" 4 | -------------------------------------------------------------------------------- /public/idedicatedexports.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/public/idedicatedexports.h -------------------------------------------------------------------------------- /SourceSDK/mathlib/datagen.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/mathlib/datagen.pl -------------------------------------------------------------------------------- /SourceSDK/public/coordsize.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/public/coordsize.h -------------------------------------------------------------------------------- /SourceSDK/public/worldsize.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/public/worldsize.h -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Icon.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Launch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Launch.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Steam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Steam.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/iTunes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/iTunes.png -------------------------------------------------------------------------------- /cmake/DragNDrop/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/cmake/DragNDrop/background.png -------------------------------------------------------------------------------- /3rdparty/mysql/lib/libmysql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/3rdparty/mysql/lib/libmysql.dll -------------------------------------------------------------------------------- /3rdparty/mysql/lib/libmysql.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/3rdparty/mysql/lib/libmysql.lib -------------------------------------------------------------------------------- /Xcode-iOS/Bugly.framework/Bugly: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Bugly.framework/Bugly -------------------------------------------------------------------------------- /Xcode-iOS/Resources/MacBook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/MacBook.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/page1_en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/page1_en.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/page2_en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/page2_en.png -------------------------------------------------------------------------------- /SourceSDK/common/IRunGameEngine.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/common/IRunGameEngine.h -------------------------------------------------------------------------------- /SourceSDK/common/iappinformation.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/common/iappinformation.h -------------------------------------------------------------------------------- /SourceSDK/common/randoverride.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/common/randoverride.cpp -------------------------------------------------------------------------------- /SourceSDK/tier0/DESKey/ALGO32.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/tier0/DESKey/ALGO32.LIB -------------------------------------------------------------------------------- /SourceSDK/tier0/DESKey/DK2WIN32.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/tier0/DESKey/DK2WIN32.LIB -------------------------------------------------------------------------------- /Xcode-iOS/Resources/PowerCable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/PowerCable.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/PowerCable2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/PowerCable2.png -------------------------------------------------------------------------------- /game_launch/icon-xash-material.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/game_launch/icon-xash-material.ico -------------------------------------------------------------------------------- /game_launch/icon-xash-material.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/game_launch/icon-xash-material.png -------------------------------------------------------------------------------- /vgui2_support/GameUI/GameLoading.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/vgui2_support/GameUI/GameLoading.h -------------------------------------------------------------------------------- /Xcode-iOS/Resources/MacBookiTunes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/MacBookiTunes.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/iTunesWindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/iTunesWindow.png -------------------------------------------------------------------------------- /cl_dll/hud/newhud/NewFontManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/cl_dll/hud/newhud/NewFontManager.cpp -------------------------------------------------------------------------------- /SourceSDK/common/ifilesystemopendialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/common/ifilesystemopendialog.h -------------------------------------------------------------------------------- /SourceSDK/public/tier1/utlbinaryblock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/SourceSDK/public/tier1/utlbinaryblock.h -------------------------------------------------------------------------------- /Xcode-iOS/Resources/GetCSMoEResouce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/GetCSMoEResouce.png -------------------------------------------------------------------------------- /Android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /cl_dll/studio/GameStudioModelRenderer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/cl_dll/studio/GameStudioModelRenderer.cpp -------------------------------------------------------------------------------- /game_launch/icon-gyllenkilde-material.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/game_launch/icon-gyllenkilde-material.ico -------------------------------------------------------------------------------- /game_launch/icon-gyllenkilde-material.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/game_launch/icon-gyllenkilde-material.png -------------------------------------------------------------------------------- /vgui2_support/GameUI/GameUI_Interface.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/vgui2_support/GameUI/GameUI_Interface.cpp -------------------------------------------------------------------------------- /3rdparty/yasm/vsyasm-1.3.0-win64/vsyasm.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/3rdparty/yasm/vsyasm-1.3.0-win64/vsyasm.exe -------------------------------------------------------------------------------- /Android/app/src/main/res/drawable/csmoe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/drawable/csmoe.png -------------------------------------------------------------------------------- /Android/app/lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Android/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /SourceSDK/public/tier0/valve_minmax_on.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | #include "minmax.h" 3 | -------------------------------------------------------------------------------- /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/client/admin.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace sv { 4 | namespace admin { 5 | void ShowAdminMenu(CBasePlayer *id); 6 | } 7 | } -------------------------------------------------------------------------------- /engine/platform/winrt/SurfaceDial.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef __cplusplus 4 | extern "C" 5 | #endif 6 | void SurfaceDial_Install(HWND hwnd); 7 | -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /engine/common/fs_mmap.cpp: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | #include "filesystem.h" 3 | 4 | #include "fs_io.h" 5 | #include "fs_impl.h" 6 | #include "fs_mmap.h" -------------------------------------------------------------------------------- /vgui2_support/keydest.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef enum 4 | { 5 | key_console = 0, 6 | key_game, 7 | key_menu, 8 | key_message 9 | } keydest_t; -------------------------------------------------------------------------------- /3rdparty/mpg123-cmake/cmake/CheckCPUArch.c.in: -------------------------------------------------------------------------------- 1 | int main(void) { 2 | #if @CHECK_CPU_ARCH_DEFINES@ 3 | return 0; 4 | #else 5 | fail 6 | #endif 7 | } 8 | -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /cl_dll/calcscreen.h: -------------------------------------------------------------------------------- 1 | #ifndef CALCSCREEN_H 2 | #define CALCSCREEN_H 3 | 4 | namespace cl { 5 | int CalcScreen(const vec3_t in, float out[2]); 6 | } 7 | #endif -------------------------------------------------------------------------------- /vgui2_support/interfaces/ServerBrowser/IServerBrowser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/vgui2_support/interfaces/ServerBrowser/IServerBrowser.h -------------------------------------------------------------------------------- /engine/platform/emscripten/unaligned.txt: -------------------------------------------------------------------------------- 1 | Con_DrawGenericString 2 | BF_ReadUBitLong 3 | SV_ReadPackets 4 | CL_ReadNetMessage 5 | R_MarkLeaves 6 | NetSplit_GetLong -------------------------------------------------------------------------------- /public/basetypes.h: -------------------------------------------------------------------------------- 1 | #include "port.h" 2 | #include "xash3d_types.h" 3 | #include "minmax.h" 4 | #include "protected_things.h" 5 | 6 | #include "tier0/basetypes.h" -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/Logo.imageset/Logo-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/Logo.imageset/Logo-1.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/Logo.imageset/Logo-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/Logo.imageset/Logo-2.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/Logo.imageset/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/Logo.imageset/Logo.png -------------------------------------------------------------------------------- /engine/common/cook.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace xe { 4 | void Cook_Run(); 5 | void Cook_Start(); 6 | void Cook_Stop(); 7 | void Cook_Init(); 8 | } -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /dlls/client/ghosthuntermenu.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace sv { 4 | namespace ghosthuntermenu { 5 | void ShowGhostHunterMenu(CBasePlayer *id); 6 | } 7 | } -------------------------------------------------------------------------------- /engine/common/cpu.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | void Cpu_Init(void); 4 | const char* Cpu_GetName(void); 5 | int Cpu_GetInstalledRamMegaBytes(void); 6 | void Cpu_Shutdown(void); -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-50.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-57.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-72.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /cl_dll/imgui_cl/imgui_cl_menu.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | namespace cl { 5 | 6 | void ImGuiCL_Menu_SetVisible(bool x); 7 | void ImGuiCL_Menu_OnGUI(); 8 | 9 | } -------------------------------------------------------------------------------- /luash/luash.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | #include "luash_fwd.hpp" 6 | #include "luash_imp.hpp" 7 | #include "luash_bwd.hpp" 8 | 9 | #include "luash_exp.hpp" -------------------------------------------------------------------------------- /SourceSDK/tier0/tier0_strtools.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | 3 | extern "C" int V_tier0_stricmp(const char *s1, const char *s2 ); 4 | -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /public/unicode_strtools.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "tier1/strtools.h" 3 | 4 | inline bool Q_StripUnprintableAndSpace(char *pch) 5 | { 6 | return Q_RemoveAllEvilCharacters(pch); 7 | } -------------------------------------------------------------------------------- /Android/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FF7D21 4 | -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-20-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-20-ipad.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29-ipad.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-20@2x-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-20@2x-ipad.png -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@2x-ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MoeMod/CSMoE/HEAD/Xcode-iOS/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@2x-ipad.png -------------------------------------------------------------------------------- /SourceSDK/public/tier0/valve_minmax_off.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | #ifdef min 3 | #undef min 4 | #endif 5 | #ifdef max 6 | #undef max 7 | #endif 8 | -------------------------------------------------------------------------------- /mainui_cpp/menus/ConnectionWarning.h: -------------------------------------------------------------------------------- 1 | #ifndef CMENUCONNECTIONWARNING_H 2 | #define CMENUCONNECTIONWARNING_H 3 | namespace ui { 4 | void UI_ConnectionWarning_f(); 5 | } 6 | #endif // CMENUCONNECTIONWARNING_H 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/meta/TypeIdentity.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | template struct TypeIdentity : std::enable_if {}; 6 | template struct type_identity : TypeIdentity {}; 7 | -------------------------------------------------------------------------------- /engine/common/model_encrypt.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace xe { 4 | void ModelEncrypt_Run(); 5 | void ModelEncrypt_Start(const char* path); 6 | void ModelEncrypt_Stop(); 7 | void ModelEncrypt_Init(); 8 | } -------------------------------------------------------------------------------- /cqmiao/Reciter.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | // question / answer 6 | struct Reciter{ 7 | std::string question; 8 | std::string answer; 9 | }; 10 | Reciter GetRandomReciter() noexcept(false); -------------------------------------------------------------------------------- /3rdparty/mpg123-cmake/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.12) 2 | 3 | project(mpg123 LANGUAGES C ASM) 4 | 5 | include(cmake/search_libs.cmake) 6 | 7 | set(PACKAGE_VERSION ${PROJECT_VERSION}) 8 | add_subdirectory("src") 9 | -------------------------------------------------------------------------------- /cl_dll/studio/bonequatlru.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace cl { 4 | 5 | void BoneQuatLru_StudioCalcBoneBatch(vec3_t pos[], vec4_t q[], int frame, float s, int numbones, const mstudiobone_t* pbone, const mstudioanim_t* panim); 6 | 7 | } -------------------------------------------------------------------------------- /dlls/weapons_precache.h: -------------------------------------------------------------------------------- 1 | #ifndef WEAPONS_PRECACHE_H 2 | #define WEAPONS_PRECACHE_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | namespace sv { 8 | extern int giAmmoIndex; 9 | void W_Precache(); 10 | } 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | -------------------------------------------------------------------------------- /Android/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /engine/common/mod_extend_seq.h: -------------------------------------------------------------------------------- 1 | #ifndef MOD_EXTEND_SEQ_H 2 | #define MOD_EXTEND_SEQ_H 3 | 4 | #include "mod_local.h" 5 | 6 | int Mod_NumExtendSeq(const char *mod_name); 7 | byte *Mod_LoadExtendSeq(const char *mod_name, byte *buffer, fs_offset_t *filesize); 8 | 9 | #endif -------------------------------------------------------------------------------- /cl_dll/luash_cl/ev_lua.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef struct lua_State lua_State; 4 | 5 | namespace cl 6 | { 7 | void LuaCL_HookEvents(void); 8 | void LuaCL_OnPrecacheEvent(const char* name, int index); 9 | int LuaCL_OpenEventScripts(lua_State* L); 10 | 11 | } -------------------------------------------------------------------------------- /SourceSDK/tier0/pch_tier0.cpp: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //=============================================================================// 7 | 8 | 9 | #include "pch_tier0.h" -------------------------------------------------------------------------------- /vgui2_support/interfaces/IMouseControl.h: -------------------------------------------------------------------------------- 1 | #ifndef IMOUSECONTROL_H 2 | #define IMOUSECONTROL_H 3 | 4 | class IMouseControl { 5 | public: 6 | virtual bool VGUI2MouseControl() = 0; 7 | virtual void SetVGUI2MouseControl(bool) = 0; 8 | }; 9 | 10 | #endif // IMOUSECONTROL_H 11 | -------------------------------------------------------------------------------- /dlls/client/wdnmd.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace sv { 4 | namespace wdnmdmenu { 5 | void ShowWdnmdMenu(CBasePlayer *id, int page = -1); 6 | void WdnmdSoundPrecache(); 7 | void WdnmdResetTime(); 8 | void WdnmdResetTime(int idx); 9 | } 10 | } -------------------------------------------------------------------------------- /dlls/weapons_msg.h: -------------------------------------------------------------------------------- 1 | #ifndef WEAPONS_MSG_H 2 | #define WEAPONS_MSG_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | enum BTEWeaponMsgType : byte 8 | { 9 | BTE_Weapon_Active, // byte type; string name, ...; 10 | 11 | BTE_Weapon_MaxMsgs // end. 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /cmake/video_config.cmake: -------------------------------------------------------------------------------- 1 | 2 | add_library(video_config INTERFACE) 3 | 4 | if(XASH_SDL) 5 | target_compile_definitions(video_config INTERFACE -DUSE_SDL -DXASH_SDL) 6 | endif() 7 | 8 | if(XASH_IMGUI) 9 | target_compile_definitions(video_config INTERFACE -DXASH_IMGUI) 10 | endif() -------------------------------------------------------------------------------- /engine/common/mod_decryptor.h: -------------------------------------------------------------------------------- 1 | #ifndef MOD_DECRYPTOR_H 2 | #define MOD_DECRYPTOR_H 3 | 4 | #include "mod_local.h" 5 | 6 | 7 | bool Mod_IsModelEncrypted(const char *model_name, const byte *buffer); 8 | void Mod_DecryptModel(const char *model_name, byte *buffer); 9 | 10 | 11 | #endif -------------------------------------------------------------------------------- /SourceSDK/vstdlib/vcover.cpp: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //============================================================================= 6 | 7 | #include "vstdlib/vcover.h" 8 | 9 | CVCoverage g_VCoverage; 10 | -------------------------------------------------------------------------------- /hydb/DatabaseConfig.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct DatabaseConfig 6 | { 7 | std::string host; 8 | std::string port; 9 | std::string user; 10 | std::string pass; 11 | std::string schema; 12 | }; 13 | 14 | const DatabaseConfig &GetDatabaseConfig(); -------------------------------------------------------------------------------- /Android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Apr 17 02:55:31 CST 2021 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip 7 | -------------------------------------------------------------------------------- /cl_dll/luash_cl/luash_cl_mobile.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "cl_dll.h" 3 | 4 | #include "luash.hpp" 5 | #include "luash_cl_extern.h" 6 | 7 | 8 | namespace cl 9 | { 10 | int LuaCL_OpenMobileLib(lua_State* L) 11 | { 12 | luash::RegisterGlobal(L, "mobile", &gMobileAPI); 13 | return 0; 14 | } 15 | } -------------------------------------------------------------------------------- /cl_dll/luash_cl/luash_cl_render.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "cl_dll.h" 3 | 4 | #include "luash.hpp" 5 | #include "luash_cl_extern.h" 6 | 7 | 8 | namespace cl 9 | { 10 | int LuaCL_OpenRenderLib(lua_State* L) 11 | { 12 | luash::RegisterGlobal(L, "render", &gRenderAPI); 13 | return 0; 14 | } 15 | } -------------------------------------------------------------------------------- /mainui_cpp/luash_menu/luash_menu_engfunc.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "keydefs.h" 3 | #include "Utils.h" 4 | 5 | #include "luash.hpp" 6 | 7 | namespace ui 8 | { 9 | int LuaUI_OpenEngfuncLib(lua_State* L) 10 | { 11 | luash::RegisterGlobal(L, "engfunc", &EngFuncs::engfuncs); 12 | return 0; 13 | } 14 | } -------------------------------------------------------------------------------- /SourceSDK/tier0/meminit.cpp: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: Memory allocation! 4 | // 5 | // $NoKeywords: $ 6 | //=============================================================================// 7 | 8 | 9 | #include "pch_tier0.h" 10 | -------------------------------------------------------------------------------- /mainui_cpp/luash_menu/luash_menu_filesystem.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "keydefs.h" 3 | #include "Utils.h" 4 | 5 | #include "luash.hpp" 6 | 7 | namespace ui 8 | { 9 | int LuaUI_OpenFileSystemLib(lua_State* L) 10 | { 11 | luash::RegisterGlobal(L, "filesystem", &gFileSystemAPI); 12 | return 0; 13 | } 14 | } -------------------------------------------------------------------------------- /mainui_cpp/luash_menu/luash_menu_textfunc.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "keydefs.h" 3 | #include "Utils.h" 4 | 5 | #include "luash.hpp" 6 | 7 | namespace ui 8 | { 9 | int LuaUI_OpenTextfuncLib(lua_State* L) 10 | { 11 | luash::RegisterGlobal(L, "textfunc", &EngFuncs::textfuncs); 12 | return 0; 13 | } 14 | } -------------------------------------------------------------------------------- /Xcode-iOS/Bugly.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module Bugly { 2 | umbrella header "Bugly.h" 3 | 4 | export * 5 | module * { export * } 6 | 7 | link framework "Foundation" 8 | link framework "Security" 9 | link framework "SystemConfiguration" 10 | link "c++" 11 | link "z" 12 | } 13 | -------------------------------------------------------------------------------- /Xcode-iOS/CSMoE-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dlls/player/player_fuck.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | namespace sv { 7 | 8 | const std::vector> &PlayerFuck_ReplaceMap(); 9 | void PlayerFuck_FilterBadWords(const char * in, char *out, int out_buffer_size); 10 | } 11 | -------------------------------------------------------------------------------- /dlls/player/player_spawnpoint.h: -------------------------------------------------------------------------------- 1 | #ifndef PLAYER_SPAWNPOINT_H 2 | #define PLAYER_SPAWNPOINT_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | class CBaseEntity; 8 | BOOL IsSpawnPointValid(CBaseEntity *pPlayer, CBaseEntity *pSpot); 9 | edict_t *EntSelectSpawnPoint(CBaseEntity *pPlayer); 10 | 11 | #endif -------------------------------------------------------------------------------- /cl_dll/luash_cl/luash_cl_filesystem.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "cl_dll.h" 3 | 4 | #include "luash.hpp" 5 | #include "luash_cl_extern.h" 6 | 7 | 8 | namespace cl 9 | { 10 | int LuaCL_OpenFileSystemLib(lua_State* L) 11 | { 12 | luash::RegisterGlobal(L, "filesystem", &gFileSystemAPI); 13 | return 0; 14 | } 15 | } -------------------------------------------------------------------------------- /SourceSDK/tier0/xbox/xbox_profile.cpp: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: Xbox profiling 4 | // 5 | //=====================================================================================// 6 | 7 | #include "pch_tier0.h" 8 | #include "tier0/memdbgon.h" 9 | 10 | -------------------------------------------------------------------------------- /Xcode-iOS/CSMoE-iOS/CSMoE-iOS.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.kernel.extended-virtual-addressing 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /vgui2_support/interfaces/vgui/MouseCode.h: -------------------------------------------------------------------------------- 1 | #ifndef MOUSECODE_H 2 | #define MOUSECODE_H 3 | 4 | #include 5 | 6 | namespace vgui2 7 | { 8 | 9 | enum MouseCode 10 | { 11 | MOUSE_LEFT = 0, 12 | MOUSE_RIGHT, 13 | MOUSE_MIDDLE, 14 | MOUSE_4, 15 | MOUSE_5, 16 | MOUSE_LAST, 17 | }; 18 | 19 | } 20 | 21 | #endif -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Android/app/src/main/res/drawable/circle_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /SourceSDK/mathlib/vector.cpp: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | // 7 | //=============================================================================// 8 | 9 | #include "mathlib/vector.h" 10 | 11 | Vector vec3_origin(0,0,0); 12 | 13 | -------------------------------------------------------------------------------- /Android/app/src/main/res/drawable/circle_black.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Xcode-iOS/CSMoE-iOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 柑橘 CSMoE 4 | 5 | 6 | Cancel 7 | Ok 8 | Exit 9 | 10 | 11 | -------------------------------------------------------------------------------- /SourceSDK/public/tier0/pointeroverride.asm: -------------------------------------------------------------------------------- 1 | .model flat, C 2 | 3 | .data 4 | __imp__EncodePointer@4 dd dummy 5 | __imp__DecodePointer@4 dd dummy 6 | 7 | EXTERNDEF __imp__EncodePointer@4 : DWORD 8 | EXTERNDEF __imp__DecodePointer@4 : DWORD 9 | 10 | .code 11 | dummy proc 12 | mov eax, [esp+4] 13 | ret 4 14 | dummy endp 15 | 16 | end 17 | -------------------------------------------------------------------------------- /engine/platform/winrt/SurfaceDial.cpp: -------------------------------------------------------------------------------- 1 | #include "DeviceListener.h" 2 | #include "SurfaceDial.h" 3 | 4 | 5 | extern "C" void SurfaceDial_Install(HWND hwnd) 6 | { 7 | HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE); 8 | // Create Surface Dial Interface. 9 | DeviceListener* listener = new DeviceListener(console); 10 | listener->Init(hwnd); 11 | } -------------------------------------------------------------------------------- /dlls/luash_sv/luash_sv_dllfunc.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "extdll.h" 3 | 4 | #include "luash.hpp" 5 | #include "luash_sv/luash_sv_extern.h" 6 | 7 | namespace sv 8 | { 9 | extern DLL_FUNCTIONS gFunctionTable; // cbase.cpp 10 | int LuaSV_OpenDllfuncLib(lua_State* L) 11 | { 12 | luash::RegisterGlobal(L, "dllfunc", &gFunctionTable); 13 | return 0; 14 | } 15 | } -------------------------------------------------------------------------------- /dlls/weapons_data.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WEAPON_MODEL_H 3 | #define WEAPON_MODEL_H 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | namespace sv { 9 | 10 | const char *GetCSModelName(WeaponIdType item_id); 11 | float GetArmorRatioModifier(WeaponIdType iGunType); 12 | WeaponBuyAmmoConfig GetBuyAmmoConfig(WeaponIdType id); 13 | 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /dlls/player/csdm_randomspawn.h: -------------------------------------------------------------------------------- 1 | #ifndef CSDM_RANDOMSPAWN_H 2 | #define CSDM_RANDOMSPAWN_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | #include 8 | #include "vector.h" 9 | 10 | namespace sv { 11 | 12 | class CBaseEntity; 13 | void CSDM_LoadSpawnPoints(); 14 | 15 | bool CSDM_DoRandomSpawn(CBaseEntity *pEntity); 16 | 17 | } 18 | 19 | #endif -------------------------------------------------------------------------------- /common/nowin.h: -------------------------------------------------------------------------------- 1 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | 8 | #ifndef INC_NOWIN_H 9 | #define INC_NOWIN_H 10 | #ifndef _WIN32 11 | 12 | #include 13 | 14 | #endif //!_WIN32 15 | #endif //INC_NOWIN_H 16 | -------------------------------------------------------------------------------- /engine/client/gl_cubemap.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | typedef struct mstudiotex_s mstudiotexture_t; 6 | 7 | namespace xe { 8 | void CubeMap_Init(); 9 | void CubeMap_Shutdown(); 10 | void CubeMap_LoadTexture(); 11 | bool CubeMap_Bind(const mstudiotexture_t *ptexture); 12 | float CubeMap_envBrightMul(); 13 | float CubeMap_envBrightAdd(); 14 | } -------------------------------------------------------------------------------- /dlls/luash_sv/luash_sv_engfunc.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "extdll.h" 3 | #include "enginecallback.h" 4 | 5 | #include "luash.hpp" 6 | #include "luash_sv/luash_sv_extern.h" 7 | 8 | #ifndef CLIENT_DLL 9 | namespace sv { 10 | #else 11 | namespace cl { 12 | #endif 13 | 14 | int LuaSV_OpenEngfuncLib(lua_State* L) 15 | { 16 | luash::RegisterGlobal(L, "engfunc", &g_engfuncs); 17 | return 0; 18 | } 19 | } -------------------------------------------------------------------------------- /dlls/luash_sv/luash_sv_filesystem.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "extdll.h" 3 | #include 4 | 5 | #include "fs_int.h" 6 | 7 | #include "luash.hpp" 8 | #include "luash_sv/luash_sv_extern.h" 9 | 10 | namespace sv 11 | { 12 | extern fs_api_t gFileSystemAPI; 13 | int LuaSV_OpenFileSystemLib(lua_State* L) 14 | { 15 | luash::RegisterGlobal(L, "filesystem", &gFileSystemAPI); 16 | return 0; 17 | } 18 | } -------------------------------------------------------------------------------- /Android/app/src/main/res/xml/backup_descriptor.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /public/meta/TypeUtil.hpp: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include 5 | #include "TypeIdentity.h" 6 | 7 | template struct PriorityTag : PriorityTag {}; 8 | template<> struct PriorityTag<0> {}; 9 | 10 | 11 | template struct IsCompleteType : std::false_type {}; 12 | template struct IsCompleteType 0, void())> : std::true_type{}; -------------------------------------------------------------------------------- /luash/luash_meta.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace luash 4 | { 5 | int RequireMeta(lua_State* L); 6 | 7 | int CallOnNamedStructCreate(lua_State* L, std::string_view struct_name); 8 | 9 | template 10 | int CallOnStructCreate(lua_State* L) 11 | { 12 | // #1 = target lua struct 13 | auto struct_name = nameof::nameof_short_type(); 14 | return CallOnNamedStructCreate(L, struct_name); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /cl_dll/view.h: -------------------------------------------------------------------------------- 1 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | #pragma once 8 | #if !defined ( VIEWH ) 9 | #define VIEWH 10 | 11 | namespace cl { 12 | 13 | void V_StartPitchDrift( void ); 14 | void V_StopPitchDrift( void ); 15 | 16 | } 17 | 18 | #endif // !VIEWH -------------------------------------------------------------------------------- /luash/luash_imp.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include "meta/TypeUtil.hpp" 10 | #include "meta/StructBreak.hpp" 11 | #include 12 | 13 | #include "luash_lambda.hpp" 14 | #include "luash_meta.hpp" 15 | #include "luash_ref.hpp" 16 | #include "luash_push.hpp" 17 | #include "luash_get.hpp" -------------------------------------------------------------------------------- /SourceSDK/public/tier1/processor_detect.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: functions to expose CPU capabilities 4 | // 5 | // $NoKeywords: $ 6 | //=============================================================================// 7 | 8 | bool CheckMMXTechnology(void); 9 | bool CheckSSETechnology(void); 10 | bool CheckSSE2Technology(void); 11 | bool Check3DNowTechnology(void); 12 | 13 | -------------------------------------------------------------------------------- /SourceSDK/wrapper/deadipanel.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | namespace vgui2 4 | { 5 | 6 | bool IPanel::IsFullyVisible(VPANEL vguiPanel) 7 | { 8 | VPANEL panel = vguiPanel; 9 | 10 | while (panel) 11 | { 12 | if (!IsVisible(panel)) 13 | return false; 14 | 15 | panel = GetParent(panel); 16 | } 17 | 18 | return true; 19 | } 20 | 21 | void IPanel::SetTopmostPopup(VPANEL vguiPanel, bool state) 22 | { 23 | return; 24 | } 25 | 26 | } -------------------------------------------------------------------------------- /cl_dll/luash_cl/luash_cl_engfunc.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "cl_dll.h" 3 | #include "triangleapi.h" 4 | #include "r_efx.h" 5 | #include "event_api.h" 6 | #include "demo_api.h" 7 | #include "net_api.h" 8 | #include "ivoicetweak.h" 9 | 10 | #include "luash.hpp" 11 | #include "luash_cl_extern.h" 12 | 13 | namespace cl 14 | { 15 | int LuaCL_OpenEngfuncLib(lua_State* L) 16 | { 17 | luash::RegisterGlobal(L, "engine", &gEngfuncs); 18 | return 0; 19 | } 20 | } -------------------------------------------------------------------------------- /SourceSDK/public/arraysize.h: -------------------------------------------------------------------------------- 1 | #ifndef ARRAYSIZE_H 2 | #define ARRAYSIZE_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | #ifndef __cplusplus 8 | #ifndef ARRAYSIZE 9 | #define ARRAYSIZE(p) (sizeof(p)/sizeof(p[0])) 10 | #endif 11 | #else // __cplusplus 12 | 13 | #ifdef ARRAYSIZE 14 | #undef ARRAYSIZE 15 | #endif 16 | 17 | #include 18 | #define ARRAYSIZE(x) (std::extent::value) 19 | 20 | #endif // __cplusplus 21 | 22 | #endif -------------------------------------------------------------------------------- /SourceSDK/vstdlib/getstackptr64.masm: -------------------------------------------------------------------------------- 1 | ; call cpuid with args in eax, ecx 2 | ; store eax, ebx, ecx, edx to p 3 | PUBLIC GetStackPtr64 4 | .CODE 5 | 6 | GetStackPtr64 PROC FRAME 7 | ; unsigned char* GetStackPtr64(void); 8 | .endprolog 9 | 10 | mov rax, rsp ; get stack ptr 11 | add rax, 8h ; account for 8-byte return value of this function 12 | 13 | ret 14 | 15 | GetStackPtr64 ENDP 16 | _TEXT ENDS 17 | END 18 | -------------------------------------------------------------------------------- /luash/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.10.2) 2 | 3 | add_library(luash STATIC 4 | luash.cpp) 5 | target_include_directories(luash PUBLIC "${CMAKE_SOURCE_DIR}/luash") 6 | target_include_directories(luash PUBLIC "${CMAKE_SOURCE_DIR}/public") 7 | #target_compile_definitions(luash PUBLIC "-DLUA_32BITS=1") 8 | target_compile_definitions(luash PUBLIC "-DXASH_LUASH=1") 9 | target_link_libraries(luash PUBLIC lua54_3p nameof_3p Boost::preprocessor Boost::pfr) -------------------------------------------------------------------------------- /vgui2_support/dead_wrapper/deadipanel.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | namespace vgui2 4 | { 5 | 6 | bool IPanel::IsFullyVisible(VPANEL vguiPanel) 7 | { 8 | VPANEL panel = vguiPanel; 9 | 10 | while (panel) 11 | { 12 | if (!IsVisible(panel)) 13 | return false; 14 | 15 | panel = GetParent(panel); 16 | } 17 | 18 | return true; 19 | } 20 | 21 | void IPanel::SetTopmostPopup(VPANEL vguiPanel, bool state) 22 | { 23 | return; 24 | } 25 | 26 | } -------------------------------------------------------------------------------- /mainui_cpp/imgui_menu/imgui_menu.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | 5 | #include "imgui_menu_msgbox.h" 6 | #include "imgui_menu_server.h" 7 | #include "imgui_menu_update.h" 8 | 9 | #include "luash_menu/luash_menu.h" 10 | namespace ui{ 11 | void UI_OnGUI(struct ImGuiContext* context) 12 | { 13 | ImGui::SetCurrentContext(context); 14 | 15 | MsgBox_OnGui(); 16 | Server_OnGui(); 17 | Update_OnGui(); 18 | LuaUI_OnGUI(); 19 | } 20 | } -------------------------------------------------------------------------------- /hydb/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | set(CMAKE_CXX_STANDARD 20) 3 | add_library(hydb STATIC 4 | DatabaseConfig.cpp 5 | DatabaseConfig.h 6 | MySqlConnectionPool.cpp 7 | MySqlConnectionPool.h 8 | MySqlConnection.h 9 | ) 10 | 11 | target_include_directories(hydb PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) 12 | target_link_libraries(hydb PUBLIC Boost::boost Boost::date_time) 13 | target_link_libraries(hydb PUBLIC Boost::mysql openssl_3p xorstr_3p) -------------------------------------------------------------------------------- /Android/app/src/main/res/drawable/layout_sel_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /cqmiao/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.10.2) 2 | 3 | set(CMAKE_CXX_STANDARD 20) 4 | 5 | add_library(cqmiao STATIC 6 | net_buffer.cpp 7 | TSourceEngineQuery.cpp 8 | Reciter.cpp 9 | pinyin.cpp 10 | strsearch.cpp) 11 | target_include_directories(cqmiao PRIVATE "${CMAKE_SOURCE_DIR}/cl_dll") 12 | target_include_directories(cqmiao PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") 13 | target_link_libraries(cqmiao PUBLIC Boost::asio Boost::beast openssl_3p json_3p) -------------------------------------------------------------------------------- /dlls/luash_sv/luash_sv_glb.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "extdll.h" 3 | 4 | #include "luash.hpp" 5 | #include "luash_sv/luash_sv_extern.h" 6 | 7 | #ifndef CLIENT_DLL 8 | namespace sv { 9 | #else 10 | namespace cl { 11 | #endif 12 | 13 | extern globalvars_t* gpGlobals; // h_export.h cs_baseentity.cpp 14 | int LuaSV_OpenGlbLib(lua_State* L) 15 | { 16 | luash::RegisterGlobal(L, "gpGlobals", gpGlobals); 17 | luash::RegisterGlobal(L, "global", gpGlobals); 18 | return 0; 19 | } 20 | } -------------------------------------------------------------------------------- /luash/luash_bwd.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace luash 4 | { 5 | template auto Push(lua_State* L, T&& what) 6 | { 7 | return detail::PushImpl(L, std::forward(what)); 8 | } 9 | template auto Get(lua_State* L, int N, T &out) 10 | { 11 | return detail::GetImpl(L, N, out); 12 | } 13 | template void RegisterGlobal(lua_State* L, const char* name, T&& what) 14 | { 15 | Push(L, std::forward(what)); 16 | lua_setglobal(L, name); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /common/kbutton.h: -------------------------------------------------------------------------------- 1 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | 8 | #pragma once 9 | #if !defined( KBUTTONH ) 10 | #define KBUTTONH 11 | 12 | typedef struct kbutton_s 13 | { 14 | int down[2]; // key nums holding it down 15 | int state; // low bit is down state 16 | } kbutton_t; 17 | 18 | #endif // !KBUTTONH 19 | -------------------------------------------------------------------------------- /SourceSDK/public/tier0/xbox_codeline_defines.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //=============================================================================// 7 | 8 | #ifndef XBOX_CODELINE_DEFINES_H 9 | #define XBOX_CODELINE_DEFINES_H 10 | 11 | 12 | // In the regular src_main codeline, we leave this out. 13 | //#define IN_XBOX_CODELINE 14 | 15 | 16 | #endif // XBOX_CODELINE_DEFINES_H 17 | -------------------------------------------------------------------------------- /Android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | google() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:4.2.2' 9 | classpath 'com.tencent.bugly:symtabfileuploader:latest.release' 10 | } 11 | } 12 | 13 | allprojects { 14 | repositories { 15 | jcenter() 16 | google() 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /cl_dll/hud/zbs/zbs_kill.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include 5 | 6 | #include "r_texture.h" 7 | #include "hud_sub.h" 8 | 9 | namespace cl { 10 | 11 | class CHudZBSKill : public IBaseHudSub 12 | { 13 | public: 14 | int VidInit(void) override; 15 | void Reset(void) override; 16 | int Draw(float time) override; 17 | void Think(void) override; 18 | 19 | public: 20 | void OnKillMessage(); 21 | 22 | protected: 23 | 24 | UniqueTexture m_iKillTexture; 25 | std::vector m_killTimes; 26 | }; 27 | 28 | } -------------------------------------------------------------------------------- /cl_dll/vgui2/csmoe/vgui_int.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | #include 11 | #include 12 | 13 | void GetHudSize(int &w, int &h) 14 | { 15 | vgui2::VPANEL hudParent = engineVgui()->GetPanel(PANEL_CLIENTDLL); 16 | 17 | if (hudParent) 18 | vgui2::ipanel()->GetSize(hudParent, w, h); 19 | else 20 | vgui2::surface()->GetScreenSize(w, h); 21 | } -------------------------------------------------------------------------------- /SourceSDK/wrapper/deadscheme.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | namespace vgui2 4 | { 5 | 6 | const char *IScheme::GetFontName(const HFont& font) 7 | { 8 | return NULL; 9 | } 10 | 11 | int ISchemeManager::GetProportionalScaledValueEx(HScheme scheme, int normalizedValue) 12 | { 13 | return GetProportionalScaledValue(normalizedValue); 14 | } 15 | 16 | int ISchemeManager::GetProportionalNormalizedValueEx(HScheme scheme, int scaledValue) 17 | { 18 | return GetProportionalNormalizedValue(scaledValue);; 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /Xcode-iOS/Resources/Assets.xcassets/Logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Logo-1.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Logo.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Logo-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SourceSDK/tier0/tier0_exclude.vpc: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------------- 2 | // tier0_exclude.vpc 3 | // 4 | // Project Script 5 | //----------------------------------------------------------------------------- 6 | 7 | $Project 8 | { 9 | $Folder "Link Libraries" 10 | { 11 | // Should match the sites that include this 12 | -$Lib "$LIBPUBLIC\tier0" [$POSIX && !$IS_LIB_PROJECT] 13 | } 14 | $Folder "Source Files" 15 | { 16 | -$File "$SRCDIR\public\tier0\memoverride.cpp" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vgui2_support/dead_wrapper/deadscheme.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | namespace vgui2 4 | { 5 | 6 | const char *IScheme::GetFontName(const HFont& font) 7 | { 8 | return NULL; 9 | } 10 | 11 | int ISchemeManager::GetProportionalScaledValueEx(HScheme scheme, int normalizedValue) 12 | { 13 | return GetProportionalScaledValue(normalizedValue); 14 | } 15 | 16 | int ISchemeManager::GetProportionalNormalizedValueEx(HScheme scheme, int scaledValue) 17 | { 18 | return GetProportionalNormalizedValue(scaledValue);; 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /SourceSDK/mathlib/3dnow.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //=====================================================================================// 6 | 7 | #ifndef _3DNOW_H 8 | #define _3DNOW_H 9 | 10 | float _3DNow_Sqrt(float x); 11 | float _3DNow_RSqrt(float x); 12 | float FASTCALL _3DNow_VectorNormalize (Vector& vec); 13 | void FASTCALL _3DNow_VectorNormalizeFast (Vector& vec); 14 | float _3DNow_InvRSquared(const float* v); 15 | 16 | #endif // _3DNOW_H 17 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/ToolBar.h: -------------------------------------------------------------------------------- 1 | #ifndef TOOLBAR_H 2 | #define TOOLBAR_H 3 | 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #include 9 | #include 10 | 11 | class CToolBar : public vgui2::Panel 12 | { 13 | typedef vgui2::Panel BaseClass; 14 | 15 | public: 16 | CToolBar(vgui2::Panel *parent, const char *panelName); 17 | ~CToolBar(void); 18 | 19 | public: 20 | void ApplySchemeSettings(vgui2::IScheme *pScheme); 21 | void PerformLayout(void); 22 | void PaintBackground(void); 23 | }; 24 | 25 | #endif -------------------------------------------------------------------------------- /mainui_cpp/luash_menu/luash_menu.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef struct lua_State lua_State; 4 | 5 | namespace ui 6 | { 7 | void LuaUI_Init(); 8 | void LuaUI_Shutdown(); 9 | lua_State* LuaUI_Get(); 10 | void LuaUI_Exec(const char* str); 11 | 12 | int LuaUI_GlobalReload(lua_State* L); 13 | int LuaUI_GlobalRequire(lua_State* L); 14 | int LuaUI_GlobalPrint(lua_State* L); 15 | 16 | void LuaUI_OnGUI(); 17 | 18 | int LuaUI_OpenFileSystemLib(lua_State* L); 19 | int LuaUI_OpenEngfuncLib(lua_State* L); 20 | int LuaUI_OpenTextfuncLib(lua_State* L); 21 | } -------------------------------------------------------------------------------- /dlls/player/player_knockback.h: -------------------------------------------------------------------------------- 1 | #ifndef PLAYER_KNOCKBACK_H 2 | #define PLAYER_KNOCKBACK_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | #ifdef CLIENT_DLL 8 | namespace cl { 9 | #else 10 | namespace sv { 11 | #endif 12 | 13 | struct KnockbackData 14 | { 15 | float flOnGround; 16 | float flNotOnGround; 17 | float flFlying; 18 | float flDucking; 19 | float flVelocityModifier; 20 | }; 21 | 22 | class CBasePlayer; // player.h 23 | 24 | void ApplyKnockbackData(CBasePlayer *player, const Vector &dir, const KnockbackData &data); 25 | 26 | } 27 | 28 | #endif -------------------------------------------------------------------------------- /vgui2_support/interfaces/vgui/Cursor.h: -------------------------------------------------------------------------------- 1 | #ifndef CURSOR_H 2 | #define CURSOR_H 3 | 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #include 9 | 10 | namespace vgui2 11 | { 12 | 13 | enum CursorCode 14 | { 15 | dc_user, 16 | dc_none, 17 | dc_arrow, 18 | dc_ibeam, 19 | dc_hourglass, 20 | dc_waitarrow, 21 | dc_crosshair, 22 | dc_up, 23 | dc_sizenwse, 24 | dc_sizenesw, 25 | dc_sizewe, 26 | dc_sizens, 27 | dc_sizeall, 28 | dc_no, 29 | dc_hand, 30 | dc_blank, 31 | dc_last, 32 | }; 33 | 34 | typedef unsigned long HCursor; 35 | } 36 | 37 | #endif -------------------------------------------------------------------------------- /cl_dll/hud/hud_iface.h: -------------------------------------------------------------------------------- 1 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | #pragma once 8 | #if !defined( HUD_IFACEH ) 9 | #define HUD_IFACEH 10 | 11 | #include "exportdef.h" 12 | 13 | #include "wrect.h" 14 | #include "../engine/cdll_int.h" 15 | namespace cl { 16 | typedef int (*pfnUserMsgHook)(const char *pszName, int iSize, void *pbuf); 17 | extern cl_enginefunc_t gEngfuncs; 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cl_dll/hud/zbs/zbs_roundclear.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "hud_sub.h" 5 | #include "r_texture.h" 6 | 7 | namespace cl { 8 | 9 | class CHudZBSRoundClear : public IBaseHudSub 10 | { 11 | public: 12 | int VidInit(void) override; 13 | int Draw(float time) override; 14 | void InitHUDData(void) override; 15 | 16 | void OnRoundClear(); 17 | void OnRoundFail(); 18 | 19 | protected: 20 | SharedTexture m_pTexture_RoundClear; 21 | SharedTexture m_pTexture_RoundFail; 22 | SharedTexture m_pCurTexture; 23 | float m_flDisplayTime; 24 | }; 25 | 26 | } -------------------------------------------------------------------------------- /hydb/DatabaseConfig.cpp: -------------------------------------------------------------------------------- 1 | #include "DatabaseConfig.h" 2 | 3 | #define JM_XORSTR_DISABLE_AVX_INTRINSICS 4 | #include 5 | 6 | #include 7 | const DatabaseConfig & GetDatabaseConfig() 8 | { 9 | static auto host = xorstr("z4cs.com"); 10 | static auto port = xorstr("3306"); 11 | static auto user = xorstr("root"); 12 | static auto pass = xorstr("111503"); 13 | static auto tuple = xorstr("hy"); 14 | static DatabaseConfig x = {host.crypt_get(), port.crypt_get(), user.crypt_get(), pass.crypt_get(), tuple.crypt_get()}; 15 | return x; 16 | } -------------------------------------------------------------------------------- /vgui2_support/interfaces/vgui/IImage.h: -------------------------------------------------------------------------------- 1 | #ifndef IIMAGE_H 2 | #define IIMAGE_H 3 | 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #include 9 | #include "Color.h" 10 | 11 | namespace vgui2 12 | { 13 | 14 | class IImage 15 | { 16 | public: 17 | virtual void Paint(void) = 0; 18 | virtual void SetPos(int x, int y) = 0; 19 | virtual void GetContentSize(int &wide, int &tall) = 0; 20 | virtual void GetSize(int &wide, int &tall) = 0; 21 | virtual void SetSize(int wide, int tall) = 0; 22 | virtual void SetColor(Color color) = 0; 23 | }; 24 | } 25 | 26 | #endif -------------------------------------------------------------------------------- /3rdparty/mpg123-cmake/cmake/search_libs.cmake: -------------------------------------------------------------------------------- 1 | function(search_libs function output_var) 2 | if(${output_var}) 3 | return() 4 | endif() 5 | set(LIBS "" ${ARGN}) 6 | foreach(CMAKE_REQUIRED_LIBRARIES IN LISTS ${LIBS}) 7 | message(STATUS "######## ${CMAKE_REQUIRED_LIBRARIES} ${HAVE_${function}}") 8 | check_function_exists(${function} HAVE_${function}) 9 | if(HAVE_${function}) 10 | set(${output_var} ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "") 11 | return() 12 | endif() 13 | endforeach() 14 | endfunction() 15 | -------------------------------------------------------------------------------- /SourceSDK/public/mathlib/compressed_light_cube.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //=============================================================================// 6 | 7 | #ifndef COMPRESSED_LIGHT_CUBE_H 8 | #define COMPRESSED_LIGHT_CUBE_H 9 | #ifdef _WIN32 10 | #pragma once 11 | #endif 12 | 13 | 14 | #include "mathlib/mathlib.h" 15 | 16 | 17 | struct CompressedLightCube 18 | { 19 | DECLARE_BYTESWAP_DATADESC(); 20 | ColorRGBExp32 m_Color[6]; 21 | }; 22 | 23 | 24 | #endif // COMPRESSED_LIGHT_CUBE_H 25 | -------------------------------------------------------------------------------- /cl_dll/cs_wpn/bte_weapons_register.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | namespace cl { 3 | 4 | class CBasePlayerWeapon; 5 | 6 | // make this as a global var, to auto register... 7 | // check it in util.h -> LINK_ENTITY_TO_CLASS 8 | 9 | void InitializeWeaponEntity(CBasePlayerWeapon *pEntity, entvars_t *pev); // bte_weapons.cpp 10 | 11 | template 12 | CBasePlayerWeapon* WeaponEntityPlaceHolderFactory() // Static 13 | { 14 | static T w; 15 | static entvars_t ev; 16 | 17 | CBasePlayerWeapon* pEntity = &w; 18 | InitializeWeaponEntity(pEntity, &ev); 19 | 20 | return pEntity; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /engine/common/library_static.h: -------------------------------------------------------------------------------- 1 | #ifndef DLL_SWITCH_H 2 | #define DLL_SWITCH_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #define RTLD_LAZY 0x0001 9 | #define RTLD_NOW 0x0002 10 | 11 | typedef struct dllexport_s 12 | { 13 | const char *name; 14 | void *func; 15 | } dllexport_t; 16 | 17 | #if 0 18 | typedef struct Dl_info_s 19 | { 20 | void *dli_fhandle; 21 | const char *dli_sname; 22 | const void *dli_saddr; 23 | } Dl_info; 24 | #endif 25 | 26 | int dll_register( const char *name, dllexport_t *exports ); 27 | 28 | #ifdef __cplusplus 29 | } 30 | #endif 31 | 32 | #endif -------------------------------------------------------------------------------- /vgui2_support/cso_controls/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_library(cso_controls STATIC 3 | TexturedButton.cpp 4 | RoundPanel.cpp 5 | SignalImagePanel.cpp 6 | ) 7 | target_include_directories(cso_controls PUBLIC 8 | ../interfaces/ 9 | ${HL2SDK_PATH}/public 10 | ${HL2SDK_PATH}/public/tier0 11 | ${HL2SDK_PATH}/public/tier1 12 | ${HL2SDK_PATH}/common 13 | ) 14 | target_include_directories(cso_controls PUBLIC 15 | ../ 16 | ../interfaces/ 17 | ${HLSDK_PATH}/common 18 | ${HLSDK_PATH}/engine 19 | ${HLSDK_PATH}/pm_shared 20 | ) 21 | target_link_libraries(cso_controls PUBLIC vgui_controls) -------------------------------------------------------------------------------- /cl_dll/hud/scenariostatus.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | namespace cl { 4 | class CHudScenarioStatus : public CHudBase 5 | { 6 | public: 7 | int Init(void); 8 | int VidInit(void); 9 | void Reset(void); 10 | int Draw(float fTime); 11 | //int DrawNewHudScenarioStatus(float fTime); 12 | 13 | public: 14 | int MsgFunc_Scenario(const char *pszName, int iSize, void *pbuf); 15 | 16 | public: 17 | HSPRITE m_hSprite; 18 | wrect_t m_rect; 19 | UniqueTexture m_pTexture_Black; 20 | int m_alpha; 21 | float m_nextFlash; 22 | float m_flashInterval; 23 | int m_flashAlpha; 24 | int m_iRepeatTimes; 25 | }; 26 | } -------------------------------------------------------------------------------- /cl_dll/hud/zbz/zbz.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "gamemode/zbz/zbz_const.h" 5 | namespace cl { 6 | class CHudZBZ : public CHudBase 7 | { 8 | public: 9 | int Init(void) override; 10 | int VidInit(void) override; 11 | int Draw(float time) override; 12 | void Think(void) override; 13 | void Reset(void) override; 14 | void InitHUDData(void) override; // called every time a server is connected to 15 | void Shutdown(void) override; 16 | 17 | CHudMsgFunc(ZBZMsg); 18 | 19 | bool CheckHasSkill(ZombieZSkillSkillId id); 20 | protected: 21 | class impl_t; 22 | impl_t* pimpl; 23 | }; 24 | } -------------------------------------------------------------------------------- /game_shared/configs/cfg_zsht.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | #ifdef CLIENT_DLL 7 | namespace cl { 8 | #else 9 | namespace sv { 10 | #endif 11 | struct zsht_buildmenu_s 12 | { 13 | int id; 14 | int submenu; 15 | int tier; 16 | int dependskill; 17 | int dependbuilding; 18 | std::string command; 19 | std::string Name; 20 | std::string Tooltip; 21 | std::string DisableTooltip; 22 | int wood; 23 | int iron; 24 | int power; 25 | bool useGlobalRes; 26 | }; 27 | 28 | const std::vector& ZombieShelterTeam_BuildMenuCfg(); 29 | } -------------------------------------------------------------------------------- /mainui_cpp/model/BaseArrayModel.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #ifndef BASE_ARRAY_MODEL_H 3 | #define BASE_ARRAY_MODEL_H 4 | 5 | #include "BaseModel.h" 6 | namespace ui { 7 | class CMenuBaseArrayModel : public CMenuBaseModel 8 | { 9 | public: 10 | // every array model must implement these methods 11 | virtual const char *GetText( int line ) = 0; 12 | 13 | // final methods 14 | int GetColumns() const final override 15 | { 16 | return 1; 17 | } 18 | 19 | const char *GetCellText( int line, int ) final override 20 | { 21 | return GetText( line ); 22 | } 23 | }; 24 | } 25 | #endif // BASE_ARRAY_MODEL_H 26 | -------------------------------------------------------------------------------- /mainui_cpp/Color.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Color.cpp -- color class 3 | Copyright (C) 2017 a1batross 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | -------------------------------------------------------------------------------- /cl_dll/hud/zbs/zbs.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | namespace cl { 4 | class CHudZBS : public CHudBase 5 | { 6 | public: 7 | int Init(void) override; 8 | int VidInit(void) override; 9 | int Draw(float time) override; 10 | void Think(void) override; 11 | void Reset(void) override; 12 | void InitHUDData(void) override; // called every time a server is connected to 13 | void Shutdown(void) override; 14 | 15 | int MsgFunc_ZBSTip(const char *pszName, int iSize, void *pbuf); 16 | int MsgFunc_ZBSLevel(const char *pszName, int iSize, void *pbuf); 17 | 18 | protected: 19 | class impl_t; 20 | impl_t *pimpl; 21 | }; 22 | } -------------------------------------------------------------------------------- /dlls/stdafx.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | stdafx.cpp - Pre-compile header 3 | Copyright (C) 2019 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | -------------------------------------------------------------------------------- /dlls/weapons_msg.cpp: -------------------------------------------------------------------------------- 1 | #include "extdll.h" 2 | #include "util.h" 3 | #include "cbase.h" 4 | #include "player.h" 5 | #include "weapons.h" 6 | 7 | namespace sv { 8 | 9 | // called after weapon switches, to update client's custom weapon prediction 10 | void CBasePlayerWeapon::UpdateItemInfo() 11 | { 12 | CBasePlayer *player = m_pPlayer; 13 | if (player && player->m_pActiveItem == this) { 14 | MESSAGE_BEGIN(MSG_ONE, gmsgBTEWeapon, NULL, player->pev); 15 | WRITE_BYTE(BTE_Weapon_Active); // type, reserved. 16 | WRITE_STRING(STRING(this->pev->classname)); 17 | MESSAGE_END(); 18 | } 19 | 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /cl_dll/stdafx.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | stdafx.cpp - Pre-compile header 3 | Copyright (C) 2019 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | -------------------------------------------------------------------------------- /dlls/globals.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "extdll.h" 3 | #include "util.h" 4 | 5 | namespace sv { 6 | 7 | /* 8 | * Globals initialization 9 | */ 10 | /* 11 | DLL_GLOBAL ULONG g_ulFrameCount; 12 | DLL_GLOBAL ULONG g_ulModelIndexEyes; 13 | DLL_GLOBAL ULONG g_ulModelIndexPlayer; 14 | */ 15 | DLL_GLOBAL Vector g_vecAttackDir; 16 | DLL_GLOBAL int g_iSkillLevel; 17 | DLL_GLOBAL int gDisplayTitle; 18 | DLL_GLOBAL BOOL g_fGameOver; 19 | DLL_GLOBAL const Vector g_vecZero = Vector(0, 0, 0); 20 | DLL_GLOBAL int g_Language; 21 | 22 | DLL_GLOBAL bool g_bIsCzeroGame = false; 23 | DLL_GLOBAL bool g_bEnableCSBot = false; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /SourceSDK/tier1/tier1_exclude.vpc: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------------- 2 | // tier1_exclude.vpc 3 | // 4 | // Project Script 5 | //----------------------------------------------------------------------------- 6 | 7 | $Project 8 | { 9 | $Folder "Link Libraries" 10 | { 11 | // Should match the sites that include this 12 | -$Lib "$LIBPUBLIC\tier1" [$POSIX && !$IS_LIB_PROJECT] 13 | } 14 | 15 | $Folder "Link Libraries" 16 | { 17 | -$File "$SRCDIR\lib\$PLATFORM\tier1$_STATICLIB_EXT" [!$WINDOWS] 18 | -$File "$SRCDIR\lib\public\tier1$_STATICLIB_EXT" [$WINDOWS] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /engine/platform/winrt/winrt_interop.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include "input_ime.h" 9 | 10 | void WinRT_FullscreenMode_Install(int fullscreen); 11 | void WinRT_BackButton_Install(); 12 | void WinRT_SaveVideoMode(int w, int h); 13 | float WinRT_GetDisplayDPI(); 14 | char* WinRT_GetUserName(); 15 | void WinRT_ShellExecute(const char* path); 16 | void WinRT_OpenGameFolderWithExplorer(); 17 | 18 | void WinRT_SetClipboardData(const char* buffer, size_t size); 19 | void WinRT_GetClipboardData(char* buffer, size_t size); 20 | 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif -------------------------------------------------------------------------------- /cl_dll/hud/zbs/zbs_level.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "hud_sub.h" 5 | #include "r_texture.h" 6 | 7 | namespace cl { 8 | 9 | class CHudZBSLevel : public IBaseHudSub 10 | { 11 | public: 12 | CHudZBSLevel(); 13 | int VidInit(void) override; 14 | int Draw(float time) override; 15 | void UpdateLevel(int hp, int att, int wall) 16 | { 17 | m_iLevel_HP = hp; 18 | m_iLevel_ATK = att; 19 | m_iLevel_Wall = wall; 20 | } 21 | 22 | protected: 23 | UniqueTexture m_pTexture_ZBSBoard_BG; 24 | UniqueTexture m_pTexture_ZBSBoard_BG_Wall; 25 | 26 | int m_iLevel_HP; 27 | int m_iLevel_ATK; 28 | int m_iLevel_Wall; 29 | }; 30 | } -------------------------------------------------------------------------------- /SourceSDK/public/mathlib/anorms.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //=============================================================================// 6 | 7 | #ifndef ANORMS_H 8 | #define ANORMS_H 9 | #ifdef _WIN32 10 | #pragma once 11 | #endif 12 | 13 | 14 | #include "mathlib/vector.h" 15 | 16 | 17 | #define NUMVERTEXNORMALS 162 18 | 19 | // the angle between consecutive g_anorms[] vectors is ~14.55 degrees 20 | #define VERTEXNORMAL_CONE_INNER_ANGLE DEG2RAD(7.275) 21 | 22 | extern Vector g_anorms[NUMVERTEXNORMALS]; 23 | 24 | 25 | #endif // ANORMS_H 26 | -------------------------------------------------------------------------------- /dlls/player/player_human_level.h: -------------------------------------------------------------------------------- 1 | #ifndef PLAYER_HUMAN_LEVEL_H 2 | #define PLAYER_HUMAN_LEVEL_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | #include "player/player_mod_strategy.h" 8 | 9 | namespace sv { 10 | 11 | class PlayerExtraHumanLevel_ZBS : public BasePlayerExtra 12 | { 13 | public: 14 | PlayerExtraHumanLevel_ZBS(CBasePlayer *player); 15 | 16 | float GetHealthBonus() const; 17 | float GetAttackBonus() const; 18 | 19 | void LevelUpHealth(); 20 | void LevelUpAttack(); 21 | void Reset(); 22 | void UpdateHUD() const; 23 | 24 | protected: 25 | int m_iHealth; 26 | int m_iAttack; 27 | }; 28 | 29 | } 30 | 31 | #endif -------------------------------------------------------------------------------- /cl_dll/hud/zbs/zbs_scoreboard.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "hud_sub.h" 5 | #include "r_texture.h" 6 | 7 | namespace cl { 8 | 9 | class CHudZBSScoreBoard : public IBaseHudSub 10 | { 11 | public: 12 | int VidInit(void) override; 13 | int Draw(float time) override; 14 | 15 | protected: 16 | UniqueTexture m_pBackground; 17 | wrect_t m_rcTeamnumber[10]; 18 | UniqueTexture m_pTeamnumber; 19 | wrect_t m_rcSelfnumber[10]; 20 | UniqueTexture m_pSelfnumber; 21 | wrect_t m_rcToprecord[10]; 22 | UniqueTexture m_pToprecord; 23 | int m_iSelfKills; 24 | float m_iSelfnumberScale; 25 | float m_flSelfnumberScaleTime; 26 | }; 27 | 28 | } -------------------------------------------------------------------------------- /pm_shared/pm_math.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | pm_math.cpp - f**k you, msvc. 3 | Copyright (C) 2019 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #include "pm_math.h" 17 | -------------------------------------------------------------------------------- /dlls/plane.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "extdll.h" 3 | #include "plane.h" 4 | 5 | CPlane::CPlane() 6 | { 7 | m_fInitialized = FALSE; 8 | } 9 | 10 | NOXREF void CPlane::InitializePlane(const Vector &vecNormal, const Vector &vecPoint) 11 | { 12 | m_vecNormal = vecNormal; 13 | m_fInitialized = TRUE; 14 | m_flDist = DotProduct(m_vecNormal, vecPoint); 15 | } 16 | 17 | NOXREF BOOL CPlane::PointInFront(const Vector &vecPoint) 18 | { 19 | if (!m_fInitialized) 20 | { 21 | return FALSE; 22 | } 23 | 24 | float flFace = DotProduct(m_vecNormal, vecPoint) - m_flDist; 25 | 26 | if (flFace >= 0.0f) 27 | { 28 | return TRUE; 29 | } 30 | 31 | return FALSE; 32 | } 33 | -------------------------------------------------------------------------------- /vgui2_support/vguimatsurface/Clip2D.h: -------------------------------------------------------------------------------- 1 | #ifndef CLIP2D_H 2 | #define CLIP2D_H 3 | 4 | namespace vgui2 5 | { 6 | struct Vertex_t; 7 | } 8 | 9 | void EnableScissor(bool enable); 10 | void SetScissorRect(int left, int top, int right, int bottom); 11 | void GetScissorRect(int &left, int &top, int &right, int &bottom, bool &enabled); 12 | bool ClipLine(const vgui2::Vertex_t *pInVerts, vgui2::Vertex_t *pOutVerts); 13 | bool ClipRect(const vgui2::Vertex_t &inUL, const vgui2::Vertex_t &inLR, vgui2::Vertex_t *pOutUL, vgui2::Vertex_t *pOutLR); 14 | int ClipPolygon(int iCount, vgui2::Vertex_t *pVerts, int iTranslateX, int iTranslateY, vgui2::Vertex_t ***pppOutVertex); 15 | 16 | #endif -------------------------------------------------------------------------------- /cl_dll/hud/hud_centertips.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | namespace cl { 6 | class CHudCenterTips : public CHudBase 7 | { 8 | public: 9 | int Init(void); 10 | int VidInit(void); 11 | int Draw(float flTime); 12 | void Reset(void); 13 | void Shutdown(); 14 | 15 | void InitHUDData(); 16 | 17 | void Clear(); 18 | void Show(std::string text, float time, int style); 19 | CHudMsgFunc(CenterTips); 20 | 21 | private: 22 | UniqueTexture m_pBG[2]; 23 | 24 | float m_flDisplayEnd; 25 | std::string m_szText; 26 | int m_iStyle; 27 | }; 28 | } 29 | 30 | -------------------------------------------------------------------------------- /vgui2_support/vgui2/vgui_key_translation.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //===========================================================================// 6 | 7 | #ifndef VGUI_KEY_TRANSLATION_H 8 | #define VGUI_KEY_TRANSLATION_H 9 | #ifdef _WIN32 10 | #pragma once 11 | #endif 12 | 13 | #include 14 | 15 | // Convert from Windows scan codes to VGUI key codes. 16 | vgui2::KeyCode KeyCode_VirtualKeyToVGUI( int key ); 17 | int KeyCode_VGUIToVirtualKey( vgui2::KeyCode keycode ); 18 | vgui2::KeyCode KeyCode_EngineKeyToVGUI(int key); 19 | 20 | 21 | #endif // VGUI_KEY_TRANSLATION_H 22 | -------------------------------------------------------------------------------- /dlls/skill.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "extdll.h" 3 | #include "util.h" 4 | #include "skill.h" 5 | 6 | namespace sv { 7 | 8 | DLL_GLOBAL skilldata_t gSkillData; 9 | 10 | // take the name of a cvar, tack a digit for the skill level 11 | // on, and return the value.of that Cvar 12 | 13 | NOXREF float GetSkillCvar(char *pName) 14 | { 15 | int iCount; 16 | float flValue; 17 | char szBuffer[64]; 18 | 19 | iCount = Q_sprintf(szBuffer, "%s%d", pName, gSkillData.iSkillLevel); 20 | flValue = CVAR_GET_FLOAT(szBuffer); 21 | 22 | if (flValue <= 0.0f) 23 | { 24 | ALERT(at_console, "\n\n** GetSkillCVar Got a zero for %s **\n\n",szBuffer); 25 | } 26 | 27 | return flValue; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /engine/common/cpu.cpp: -------------------------------------------------------------------------------- 1 | #ifdef XASH_CPUINFO 2 | #include 3 | #endif 4 | 5 | #ifdef XASH_SDL 6 | #include 7 | #endif 8 | 9 | void Cpu_Init(void) 10 | { 11 | #ifdef XASH_CPUINFO 12 | cpuinfo_initialize(); 13 | #endif 14 | } 15 | 16 | const char* Cpu_GetName(void) 17 | { 18 | #ifdef XASH_CPUINFO 19 | return cpuinfo_get_package(0)->name; 20 | #else 21 | return "Unknown"; 22 | #endif 23 | } 24 | 25 | int Cpu_GetInstalledRamMegaBytes(void) 26 | { 27 | #ifdef XASH_SDL 28 | return SDL_GetSystemRAM(); 29 | #else 30 | return 0; 31 | #endif 32 | } 33 | 34 | void Cpu_Shutdown(void) 35 | { 36 | #ifdef XASH_CPUINFO 37 | cpuinfo_deinitialize(); 38 | #endif 39 | } -------------------------------------------------------------------------------- /cl_dll/cs_wpn/bte_weapons.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace cl { 4 | 5 | class CBasePlayer; 6 | class CBasePlayerWeapon; 7 | 8 | class CBTEClientWeapons 9 | { 10 | private: 11 | CBTEClientWeapons(); 12 | 13 | public: 14 | void Init(); 15 | 16 | void PrepEntity(CBasePlayer *pWeaponOwner); 17 | void ActiveWeapon(const char *name); 18 | CBasePlayerWeapon *GetActiveWeaponEntity() 19 | { 20 | return m_pActiveWeapon; 21 | } 22 | 23 | private: 24 | CBasePlayerWeapon *m_pActiveWeapon; 25 | 26 | public: 27 | // singleton accessor 28 | friend CBTEClientWeapons &BTEClientWeapons(); 29 | }; 30 | 31 | // non-msvc needs this... 32 | CBTEClientWeapons &BTEClientWeapons(); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /vgui2_support/interfaces/GameUI/IGameConsole.h: -------------------------------------------------------------------------------- 1 | #ifndef IGAMECONSOLE_H 2 | #define IGAMECONSOLE_H 3 | 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #include "interface.h" 9 | 10 | class Color; 11 | 12 | class IGameConsole : public IBaseInterface 13 | { 14 | public: 15 | virtual void Activate(void) = 0; 16 | virtual void Initialize(void) = 0; 17 | virtual void Hide(void) = 0; 18 | virtual void Clear(void) = 0; 19 | virtual bool IsConsoleVisible(void) = 0; 20 | virtual void Printf(const char *format, ...) = 0; 21 | virtual void DPrintf(const char *format, ...) = 0; 22 | virtual void SetParent(uintp parent) = 0; 23 | }; 24 | 25 | #define GAMECONSOLE_INTERFACE_VERSION "GameConsole003" 26 | #endif -------------------------------------------------------------------------------- /vgui2_support/interfaces/IClientVGUI.h: -------------------------------------------------------------------------------- 1 | #ifndef ICLIENTVGUI_H 2 | #define ICLIENTVGUI_H 3 | 4 | #include 5 | #include "vgui/VGUI.h" 6 | 7 | class IClientVGUI : public IBaseInterface { 8 | public: 9 | virtual void Initialize(CreateInterfaceFn *factories, int count) = 0; 10 | virtual void Start() = 0; 11 | virtual void SetParent(vgui2::VPANEL parent) = 0; 12 | virtual bool UseVGUI1() = 0; 13 | virtual void HideScoreBoard() = 0; 14 | virtual void HideAllVGUIMenu() = 0; 15 | virtual void ActivateClientUI() = 0; 16 | virtual void HideClientUI() = 0; 17 | virtual void Shutdown() = 0; 18 | }; 19 | 20 | #define CLIENTVGUI_INTERFACE_VERSION "VClientVGUI001" 21 | 22 | #endif // ICLIENTVGUI_H 23 | -------------------------------------------------------------------------------- /SourceSDK/mathlib/halton.cpp: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //=====================================================================================// 6 | 7 | #include 8 | 9 | HaltonSequenceGenerator_t::HaltonSequenceGenerator_t(int b) 10 | { 11 | base=b; 12 | fbase=(float) b; 13 | seed=1; 14 | 15 | } 16 | 17 | float HaltonSequenceGenerator_t::GetElement(int elem) 18 | { 19 | int tmpseed=seed; 20 | float ret=0.0; 21 | float base_inv=1.0/fbase; 22 | while(tmpseed) 23 | { 24 | int dig=tmpseed % base; 25 | ret+=((float) dig)*base_inv; 26 | base_inv/=fbase; 27 | tmpseed/=base; 28 | } 29 | return ret; 30 | } 31 | -------------------------------------------------------------------------------- /engine/client/imgui_sprview.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_lcsm_warning.h 3 | Copyright (C) 2020 Moemod Haoyuan 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #pragma once 17 | 18 | void ImGui_SprView_Init(); 19 | void ImGui_SprView_OnGUI(void); 20 | -------------------------------------------------------------------------------- /cl_dll/demo.h: -------------------------------------------------------------------------------- 1 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | #pragma once 8 | #if !defined( DEMOH ) 9 | #define DEMOH 10 | 11 | namespace cl { 12 | 13 | // Types of demo messages we can write/parse 14 | enum 15 | { 16 | TYPE_SNIPERDOT = 0, 17 | TYPE_ZOOM 18 | }; 19 | 20 | void Demo_WriteBuffer( int type, int size, unsigned char *buffer ); 21 | 22 | extern int g_demosniper; 23 | extern int g_demosniperdamage; 24 | extern float g_demosniperorg[3]; 25 | extern float g_demosniperangles[3]; 26 | extern float g_demozoom; 27 | 28 | } 29 | 30 | #endif -------------------------------------------------------------------------------- /dlls/map_manager.h: -------------------------------------------------------------------------------- 1 | #ifndef MAP_MANAGER_H 2 | #define MAP_MANAGER_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | namespace sv { 8 | int MapMgr_GetMapID(const char* szMapName); 9 | char* MapMgr_GetMapBright(const char* szMapName); 10 | char* MapMgr_GetMapSkybox(const char* szMapName); 11 | float MapMgr_GetMapDensity(const char* szMapName); 12 | float MapMgr_GetMapDensity_r(const char* szMapName); 13 | float MapMgr_GetMapDensity_g(const char* szMapName); 14 | float MapMgr_GetMapDensity_b(const char* szMapName); 15 | int MapMgr_GetMapRandomRespawn(const char* szMapName); 16 | unsigned int MapMgr_GetRandomAreaID(); 17 | void MapMgr_LoadMapSafeArea(); 18 | void MapMgr_LoadMapList(); 19 | } 20 | 21 | #endif -------------------------------------------------------------------------------- /engine/client/imgui_imewindow.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_ime_window.h 3 | Copyright (C) 2020 Moemod Haoyuan 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #pragma once 17 | 18 | void ImGui_ImeWindow_Init(); 19 | void ImGui_ImeWindow_OnGUI(void); 20 | -------------------------------------------------------------------------------- /engine/client/imgui_menu_update.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_menu_update.h 3 | Copyright (C) 2021 Moemod Hymei 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | */ 13 | 14 | #pragma once 15 | 16 | namespace ui { 17 | void Update_Initiate(); 18 | void Update_OnGui(); 19 | } 20 | -------------------------------------------------------------------------------- /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 | #pragma once 16 | #ifndef PM_INFO_H 17 | #define PM_INFO_H 18 | 19 | #define MAX_PHYSINFO_STRING 256 20 | #endif//PM_INFO_H 21 | -------------------------------------------------------------------------------- /dlls/cbase/cbase_hash.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace sv { 4 | 5 | typedef enum 6 | { 7 | CLASSNAME 8 | } hash_types_e; 9 | 10 | typedef struct hash_item_s 11 | { 12 | entvars_t *pev; 13 | struct hash_item_s *next; 14 | struct hash_item_s *lastHash; 15 | int pevIndex; 16 | } hash_item_t; 17 | 18 | extern CUtlVector stringsHashTable; 19 | 20 | int CaseInsensitiveHash(const char *string, int iBounds); 21 | void EmptyEntityHashTable(void); 22 | void AddEntityHashValue(entvars_t *pev, const char *value, hash_types_e fieldType); 23 | void RemoveEntityHashValue(entvars_t *pev, const char *value, hash_types_e fieldType); 24 | void printEntities(void); 25 | void loopPerformance(void); 26 | 27 | } -------------------------------------------------------------------------------- /mainui_cpp/imgui_menu/imgui_menu_update.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_menu_update.h 3 | Copyright (C) 2021 Moemod Hymei 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | */ 13 | 14 | #pragma once 15 | 16 | namespace ui { 17 | void Update_Initiate(); 18 | void Update_OnGui(); 19 | } 20 | -------------------------------------------------------------------------------- /Xcode-iOS/CSMoE-iOS/controller/TutorViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // TutorViewController.h 3 | // xash3d-ios 4 | // 5 | // Created by 小白白 on 2019/5/13. 6 | // 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface TutorViewController : UIViewController 13 | @property (retain, nonatomic) IBOutlet UIScrollView *ScrollView; 14 | @property (retain, nonatomic) IBOutlet UIPageControl *PageControl; 15 | @property (retain, nonatomic) IBOutlet UIStackView *TutorContent; 16 | 17 | - (IBAction)ResourceDownloadLinkButtonActivated:(UIButton *)sender; 18 | - (IBAction)OnResourcesReady:(nullable id)sender; 19 | - (IBAction)OnInstallationFinishComfirmed:(id)sender; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /vgui2_support/CGameUIFuncs.h: -------------------------------------------------------------------------------- 1 | #ifndef CGAMEUIFUNCS_H 2 | #define CGAMEUIFUNCS_H 3 | 4 | #include "IGameUIFuncs.h" 5 | 6 | class CGameUIFuncs : public IGameUIFuncs { 7 | public: 8 | virtual bool IsKeyDown(const char *, bool &); 9 | virtual const char * Key_NameForKey(int); 10 | virtual const char * Key_BindingForKey(int); 11 | virtual KeyCode GetVGUI2KeyCodeForBind(const char *); 12 | virtual void GetVideoModes(vmode_t * *, int *); 13 | virtual void GetCurrentVideoMode(int *, int *, int *); 14 | virtual void GetCurrentRenderer(char *, int, int *, int *, int *, int *); 15 | virtual bool IsConnectedToVACSecureServer(); 16 | virtual int Key_KeyStringToKeyNum(const char *); 17 | }; 18 | 19 | #endif // CGAMEUIFUNCS_H 20 | -------------------------------------------------------------------------------- /cl_dll/camera.h: -------------------------------------------------------------------------------- 1 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | 8 | // Camera.h -- defines and such for a 3rd person camera 9 | // NOTE: must include quakedef.h first 10 | #pragma once 11 | #ifndef _CAMERA_H_ 12 | #define _CAMEA_H_ 13 | 14 | namespace cl { 15 | 16 | // pitch, yaw, dist 17 | extern vec3_t cam_ofs; 18 | // Using third person camera 19 | extern int cam_thirdperson; 20 | 21 | void CAM_Init( void ); 22 | void CAM_ClearStates( void ); 23 | void CAM_StartMouseMove(void); 24 | void CAM_EndMouseMove(void); 25 | 26 | } 27 | 28 | #endif // _CAMERA_H_ 29 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/MoeSettings.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "vgui_controls/PropertyDialog.h" 4 | #include "vgui_controls/KeyRepeat.h" 5 | 6 | class CMoeSettings : public vgui2::PropertyDialog 7 | { 8 | DECLARE_CLASS_SIMPLE(CMoeSettings, vgui2::PropertyDialog); 9 | 10 | public: 11 | CMoeSettings(vgui2::Panel *parent); 12 | ~CMoeSettings(void); 13 | 14 | public: 15 | void Run(void); 16 | void Activate(void); 17 | 18 | public: 19 | void OnClose(void); 20 | 21 | public: 22 | MESSAGE_FUNC(OnGameUIHidden, "GameUIHidden"); 23 | 24 | private: 25 | class COptionsSubMoeSettings* m_pOptionsSubMoeSettings; 26 | class COptionsSubButtonSettings* m_pOptionsSubButtonSettings; 27 | class COptionsSubTouch* m_pOptionsSubTouch; 28 | }; -------------------------------------------------------------------------------- /SourceSDK/public/tier0/memdbgoff.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: This header, which must be the final line of a .h file, 4 | // causes all crt methods to stop using debugging versions of the memory allocators. 5 | // NOTE: Use memdbgon.h to re-enable memory debugging. 6 | // 7 | // $NoKeywords: $ 8 | //=============================================================================// 9 | 10 | #ifdef MEM_OVERRIDE_ON 11 | 12 | #undef malloc 13 | #undef realloc 14 | #undef calloc 15 | #undef free 16 | #undef _expand 17 | #undef _msize 18 | #undef new 19 | #undef _aligned_malloc 20 | #undef _aligned_free 21 | #undef _malloc_dbg 22 | 23 | #undef MEM_OVERRIDE_ON 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /SourceSDK/public/vstdlib/cvar.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | // 7 | //=============================================================================// 8 | 9 | #if !defined( CVAR_H ) 10 | #define CVAR_H 11 | #ifdef _WIN32 12 | #pragma once 13 | #endif 14 | 15 | #include "vstdlib/vstdlib.h" 16 | #include "icvar.h" 17 | 18 | 19 | //----------------------------------------------------------------------------- 20 | // Returns a CVar dictionary for tool usage 21 | //----------------------------------------------------------------------------- 22 | VSTDLIB_INTERFACE CreateInterfaceFn VStdLib_GetICVarFactory(); 23 | 24 | 25 | #endif // CVAR_H 26 | -------------------------------------------------------------------------------- /cl_dll/vgui2/IViewport.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_CLIENT_UI_VGUI2_IVIEWPORT_H 2 | #define GAME_CLIENT_UI_VGUI2_IVIEWPORT_H 3 | 4 | class IViewportPanel; 5 | 6 | class IViewport 7 | { 8 | public: 9 | virtual ~IViewport() = 0; 10 | 11 | virtual void UpdateAllPanels() = 0; 12 | virtual void ShowPanel( const char *pName, bool state ) = 0; 13 | virtual void ShowPanel( IViewportPanel* pPanel, bool state ) = 0; 14 | virtual void ShowBackGround( bool bShow ) = 0; 15 | virtual IViewportPanel* FindPanelByName( const char *szPanelName ) = 0; 16 | virtual IViewportPanel* GetActivePanel() = 0; 17 | virtual int GetAllowSpectators(void) = 0; 18 | }; 19 | 20 | inline IViewport::~IViewport() 21 | { 22 | } 23 | 24 | #endif //GAME_CLIENT_UI_VGUI2_IVIEWPORT_H 25 | -------------------------------------------------------------------------------- /SourceSDK/vstdlib/vstdlib_exclude.vpc: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------------- 2 | // vstdlib_exclude.vpc 3 | // 4 | // Project Script 5 | //----------------------------------------------------------------------------- 6 | 7 | $MacroRequired "PLATSUBDIR" 8 | 9 | $Project 10 | { 11 | $Folder "Link Libraries" 12 | { 13 | // Should match the sites that include this in base 14 | -$Lib "$LIBPUBLIC\vstdlib" [$POSIX && !$IS_LIB_PROJECT] 15 | -$Implib vstdlib [$POSIX] 16 | -$File "$SRCDIR\lib\public\$_IMPLIB_PREFIXvstdlib$_IMPLIB_EXT" [$WIN32] 17 | -$File "$SRCDIR\lib\public$PLATSUBDIR\$_IMPLIB_PREFIXvstdlib$_IMPLIB_EXT" [$WIN64] 18 | -$File "$SRCDIR\lib\public\vstdlib_360.lib" [$X360] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Android/app/src/main/res/layout/activity_asset_copy.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | -------------------------------------------------------------------------------- /SourceSDK/vstdlib/coroutine_osx.vpc: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------------- 2 | // COROUTINE_OSX.VPC 3 | // 4 | // Project Script 5 | //----------------------------------------------------------------------------- 6 | 7 | $Macro SRCDIR ".." 8 | 9 | $include "$SRCDIR\vpc_scripts\source_lib_base.vpc" 10 | 11 | $Configuration 12 | { 13 | $Compiler 14 | { 15 | $GCC_ExtraCompilerFlags "-fno-stack-protector" 16 | $PreprocessorDefinitions "$BASE;VSTDLIB_DLL_EXPORT" 17 | } 18 | } 19 | 20 | $Project "coroutine_osx" 21 | { 22 | $Folder "Source Files" 23 | { 24 | $File "coroutine.cpp" 25 | } 26 | 27 | $Folder "Public Header Files" 28 | { 29 | $File "$SRCDIR\public\vstdlib\coroutine.h" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/KeyToggleCheckButton.h: -------------------------------------------------------------------------------- 1 | #ifndef KEYTOGGLECHECKBUTTON_H 2 | #define KEYTOGGLECHECKBUTTON_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | #include 8 | 9 | class CKeyToggleCheckButton : public vgui2::CheckButton 10 | { 11 | public: 12 | CKeyToggleCheckButton(vgui2::Panel *parent, const char *panelName, const char *text, char const *keyname, char const *cmdname); 13 | ~CKeyToggleCheckButton(void); 14 | 15 | public: 16 | void Paint(void); 17 | void Reset(void); 18 | void ApplyChanges(void); 19 | bool HasBeenModified(void); 20 | 21 | private: 22 | typedef vgui2::CheckButton BaseClass; 23 | 24 | private: 25 | char *m_pszKeyName; 26 | char *m_pszCmdName; 27 | bool m_bStartValue; 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /engine/client/imgui_connectprogress.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_connectprogress.h 3 | Copyright (C) 2021 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #pragma once 17 | 18 | #include "common.h" 19 | 20 | void ImGui_ConnectProgress_Init(void); 21 | void ImGui_ConnectProgress_OnGUI(void); 22 | -------------------------------------------------------------------------------- /vgui2_support/interfaces/vgui/IClientVGUI.h: -------------------------------------------------------------------------------- 1 | #ifndef ICLIENTVGUI_H 2 | #define ICLIENTVGUI_H 3 | 4 | #include 5 | #include "VGUI.h" 6 | 7 | class IClientVGUI : public IBaseInterface { 8 | public: 9 | virtual void Initialize(CreateInterfaceFn *factories, int count) = 0; 10 | virtual void Start() = 0; 11 | virtual void SetParent(vgui2::VPANEL parent) = 0; 12 | virtual bool UseVGUI1() = 0; 13 | virtual void HideScoreBoard() = 0; 14 | virtual void HideAllVGUIMenu() = 0; 15 | virtual void ActivateClientUI() = 0; 16 | virtual void HideClientUI() = 0; 17 | virtual void Shutdown() = 0; 18 | virtual void Init() = 0; 19 | virtual void VidInit() = 0; 20 | }; 21 | 22 | #define CLIENTVGUI_INTERFACE_VERSION "VClientVGUI001" 23 | 24 | #endif // ICLIENTVGUI_H 25 | -------------------------------------------------------------------------------- /hydb/MySqlConnectionPool.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | #include 8 | #include "MySqlConnection.h" 9 | #include "DatabaseConfig.h" 10 | 11 | class MySqlConnection; 12 | 13 | class MySqlConnectionPool 14 | { 15 | public: 16 | MySqlConnectionPool(boost::asio::io_context &ioc, const DatabaseConfig &c = GetDatabaseConfig()); 17 | ~MySqlConnectionPool(); 18 | 19 | public: 20 | // ensures not nullptr 21 | std::shared_ptr acquire(); 22 | void clear(); 23 | void reserve(size_t n); 24 | 25 | private: 26 | boost::asio::io_context &ioc; 27 | std::mutex m; 28 | std::vector> v; 29 | DatabaseConfig config; 30 | }; 31 | -------------------------------------------------------------------------------- /mainui_cpp/imgui_menu/imgui_menu_server.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_menu_server.h 3 | Copyright (C) 2021 Moemod Hymei 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | */ 13 | 14 | #pragma once 15 | 16 | #include 17 | #include 18 | 19 | namespace ui { 20 | void Server_OnGui(); 21 | void Server_Open(); 22 | } 23 | -------------------------------------------------------------------------------- /dlls/weapons/RecoilPunch.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | /* 4 | template 5 | concept SecondaryAttackZoom_c requires 6 | { 7 | Vector RecoilPunchAngleDelta = {0,0,-2}; // optional 8 | }; 9 | */ 10 | template 11 | class TRecoilPunch : public CBase 12 | { 13 | public: 14 | //static constexpr float RecoilPunchAngleDelta[] = { -2, 0, 0 }; 15 | 16 | void Recoil(void) 17 | { 18 | CFinal &wpn = static_cast(*this); 19 | auto &&data = wpn.WeaponTemplateDataSource(); 20 | 21 | const auto punch = df::RecoilPunchAngleDelta::Get(data); 22 | CBase::m_pPlayer->pev->punchangle[0] += punch[0]; 23 | CBase::m_pPlayer->pev->punchangle[1] += punch[1]; 24 | CBase::m_pPlayer->pev->punchangle[2] += punch[2]; 25 | } 26 | }; 27 | -------------------------------------------------------------------------------- /SourceSDK/public/tier0/type_traits.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: functionality that is provided in C++11 type_traits, which 4 | // currently isn't supported by the OSX compiler. Sadness. 5 | // 6 | //============================================================================= 7 | #pragma once 8 | 9 | template 10 | struct V_remove_const 11 | { 12 | typedef T type; 13 | }; 14 | 15 | template 16 | struct V_remove_const 17 | { 18 | typedef T type; 19 | }; 20 | 21 | template 22 | struct V_remove_const 23 | { 24 | typedef T type; 25 | }; 26 | 27 | template 28 | struct V_remove_const 29 | { 30 | typedef T type; 31 | }; 32 | 33 | -------------------------------------------------------------------------------- /cl_dll/vgui2/CBackGroundPanel.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_CLIENT_UI_VGUI2_CBACKGROUNDPANEL_H 2 | #define GAME_CLIENT_UI_VGUI2_CBACKGROUNDPANEL_H 3 | 4 | #include 5 | 6 | class CBackGroundPanel : public vgui2::Frame 7 | { 8 | public: 9 | typedef CBackGroundPanel ThisClass; 10 | typedef vgui2::Frame BaseClass; 11 | 12 | public: 13 | CBackGroundPanel( vgui2::Panel* pParent ); 14 | 15 | // don't respond to mouse clicks 16 | void OnMousePressed( vgui2::MouseCode code ) override {} 17 | 18 | vgui2::VPANEL IsWithinTraverse( int x, int y, bool traversePopups ) override { return NULL_HANDLE; } 19 | 20 | void ApplySchemeSettings( vgui2::IScheme* pScheme ) override; 21 | 22 | void PerformLayout() override; 23 | }; 24 | 25 | #endif //GAME_CLIENT_UI_VGUI2_CBACKGROUNDPANEL_H 26 | -------------------------------------------------------------------------------- /engine/client/imgui_lcsm_warning.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_lcsm_warning.h 3 | Copyright (C) 2020 Moemod Haoyuan 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #ifndef CSMOE_IMGUI_LCSM_WARNING_H 17 | #define CSMOE_IMGUI_LCSM_WARNING_H 18 | 19 | void ImGui_LCSM_OnGUI(void); 20 | 21 | 22 | #endif //CSMOE_IMGUI_LCSM_WARNING_H 23 | -------------------------------------------------------------------------------- /engine/platform/macos/TouchBar.h: -------------------------------------------------------------------------------- 1 | /* 2 | TouchBar.h - TouchBar support for macOS 3 | Copyright (C) 2019 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #ifndef LAUNCHER_TOUCHBAR_H 17 | #define LAUNCHER_TOUCHBAR_H 18 | 19 | 20 | void TouchBar_Install(); 21 | 22 | 23 | 24 | #endif //LAUNCHER_TOUCHBAR_H 25 | -------------------------------------------------------------------------------- /cl_dll/input_touch.cpp: -------------------------------------------------------------------------------- 1 | #include "hud.h" 2 | #include "usercmd.h" 3 | #include "cvardef.h" 4 | #include "kbutton.h" 5 | #include "keydefs.h" 6 | #include "input.h" 7 | 8 | namespace cl { 9 | 10 | extern "C" { 11 | 12 | int DLLEXPORT IN_ClientTouchEvent(int type_id, int fingerID, float x, float y, float dx, float dy) 13 | { 14 | touchEventType type = static_cast(type_id); 15 | if (gHUD.m_MoeTouch.TouchEvent(type, fingerID, x, y, dx, dy) && gHUD.m_MoeTouch.m_TouchSwitch->value) 16 | return 1; 17 | 18 | return 0; 19 | } 20 | #if 0 21 | #ifdef _WIN32 22 | void DLLEXPORT IN_ClientMoveEvent(float forwardmove, float sidemove) 23 | { 24 | /**/ 25 | } 26 | 27 | void DLLEXPORT IN_ClientLookEvent(float relyaw, float relpitch) 28 | { 29 | /**/ 30 | } 31 | #endif 32 | #endif 33 | } 34 | 35 | } -------------------------------------------------------------------------------- /dlls/m95tigernet.h: -------------------------------------------------------------------------------- 1 | #include "extdll.h" 2 | #include "util.h" 3 | #include "cbase.h" 4 | #include "player.h" 5 | #include "weapons.h" 6 | 7 | #ifndef CLIENT_DLL 8 | #include "gamemode/mods.h" 9 | #include "gamemode/mod_zb1.h" 10 | #endif 11 | 12 | namespace sv { 13 | #ifndef CLIENT_DLL 14 | class CM95TigerNet : public CBaseEntity 15 | { 16 | public: 17 | CM95TigerNet() 18 | { 19 | m_flLockTime = 1.5s; 20 | m_flRemoveTime = invalid_time_point; 21 | } 22 | 23 | void Spawn(); 24 | void Precache(); 25 | void EXPORT OnTouch(CBaseEntity* pOther); 26 | void EXPORT FlyThink(); 27 | void Remove(); 28 | void SetLockTime(duration_t flTime) 29 | { 30 | m_flLockTime = flTime; 31 | } 32 | 33 | duration_t m_flLockTime; 34 | time_point_t m_flRemoveTime; 35 | }; 36 | #endif 37 | } 38 | -------------------------------------------------------------------------------- /dlls/player/player_signal.h: -------------------------------------------------------------------------------- 1 | #ifndef PLAYER_SIGNAL_H 2 | #define PLAYER_SIGNAL_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | typedef struct lua_State lua_State; 8 | 9 | #define SIGNAL_BUY (1<<0) 10 | #define SIGNAL_BOMB (1<<1) 11 | #define SIGNAL_RESCUE (1<<2) 12 | #define SIGNAL_ESCAPE (1<<3) 13 | #define SIGNAL_VIPSAFETY (1<<4) 14 | 15 | #ifdef CLIENT_DLL 16 | namespace cl { 17 | #else 18 | namespace sv { 19 | #endif 20 | 21 | struct CUnifiedSignals 22 | { 23 | void Update() 24 | { 25 | m_flState = m_flSignal; 26 | m_flSignal = 0; 27 | } 28 | void Signal(int flags) { m_flSignal |= flags; } 29 | int GetSignal() const { return m_flSignal; } 30 | int GetState() const { return m_flState; } 31 | 32 | int m_flSignal = 0; 33 | int m_flState = 0; 34 | }; 35 | 36 | } 37 | 38 | #endif -------------------------------------------------------------------------------- /engine/client/imgui_menu_server.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_menu_server.h 3 | Copyright (C) 2021 Moemod Hymei 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | */ 13 | 14 | #pragma once 15 | 16 | #include 17 | #include 18 | 19 | namespace ui { 20 | void ImGui_Server_Init(); 21 | void ImGui_Server_OnGui(); 22 | void Server_Open(); 23 | } 24 | -------------------------------------------------------------------------------- /cl_dll/hud/zbz/zbz_ghosthunter.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "zbz.h" 5 | #include "gamemode/zbz/zbz_const.h" 6 | #include "hud_sub.h" 7 | #include 8 | 9 | namespace cl { 10 | 11 | enum GhostHunterClass 12 | { 13 | CLASS_GHOSTHUNTER, 14 | CLASS_MASTERHUNTER, 15 | CLASS_TIMEHUNTER, 16 | CLASS_ASCETICHERO, 17 | CLASS_BACKGROUND, 18 | CLASS_HEALHUNTER, 19 | CLASS_MECHANICHERO, 20 | }; 21 | 22 | class CHudZBZ_GhostHunter : public IBaseHudSub 23 | { 24 | public: 25 | CHudZBZ_GhostHunter(void); 26 | int VidInit(void) override; 27 | void Reset(void) override; 28 | int Draw(float time) override; 29 | void SetImageDrawTime(float time); 30 | void SetGhostHunterClass(int type); 31 | private: 32 | float m_flTime; 33 | int m_iType; 34 | UniqueTexture m_iGhostHunterAppear; 35 | 36 | }; 37 | 38 | } -------------------------------------------------------------------------------- /cl_dll/in_defs.h: -------------------------------------------------------------------------------- 1 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | #pragma once 8 | #if !defined( IN_DEFSH ) 9 | #define IN_DEFSH 10 | 11 | #include "angledef.h" 12 | 13 | #ifdef WINAPI_FAMILY 14 | #if (!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)) 15 | #define XASH_WINRT 16 | #endif 17 | #endif 18 | 19 | #if defined(_WIN32) && !defined(XASH_WINRT) 20 | #include 21 | #else 22 | #ifndef PORT_H 23 | typedef struct tagPOINT{ 24 | int x; 25 | int y; 26 | } POINT; 27 | #endif 28 | inline void GetCursorPos(...) {} 29 | inline void SetCursorPos(...) {} 30 | #endif 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /vgui2_support/cso_controls/ColoredButton.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef COLOREDBUTTON_H 3 | #define COLOREDBUTTON_H 4 | 5 | #ifdef _WIN32 6 | #pragma once 7 | #endif 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | #include 14 | #include 15 | 16 | class ColoredButton : public vgui2::Button 17 | { 18 | DECLARE_CLASS_SIMPLE(ColoredButton, Button); 19 | 20 | Color _replaceColor; 21 | public: 22 | ColoredButton(vgui2::Panel *parent, const char *panelName, const char *text) : 23 | Button(parent, panelName, text) {} 24 | 25 | void SetTextColor(Color col) 26 | { 27 | _replaceColor = col; 28 | } 29 | 30 | virtual Color GetButtonFgColor() override 31 | { 32 | return _replaceColor; 33 | } 34 | }; 35 | 36 | #endif -------------------------------------------------------------------------------- /SourceSDK/public/tier0/progressbar.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: Provide a shared place for library fucntions to report progress % for display 4 | // 5 | //=============================================================================// 6 | 7 | #ifndef PROGRESSBAR_H 8 | #define PROGRESSBAR_H 9 | #ifdef _WIN32 10 | #pragma once 11 | #endif 12 | 13 | 14 | PLATFORM_INTERFACE void ReportProgress(char const *job_name, int total_units_to_do, 15 | int n_units_completed); 16 | 17 | typedef void (*ProgressReportHandler_t)( char const*, int, int ); 18 | 19 | // install your own handler. returns previous handler 20 | PLATFORM_INTERFACE ProgressReportHandler_t InstallProgressReportHandler( ProgressReportHandler_t pfn); 21 | 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /common/dll_state.h: -------------------------------------------------------------------------------- 1 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | 8 | //DLL State Flags 9 | 10 | #define DLL_INACTIVE 0 // no dll 11 | #define DLL_ACTIVE 1 // dll is running 12 | #define DLL_PAUSED 2 // dll is paused 13 | #define DLL_CLOSE 3 // closing down dll 14 | #define DLL_TRANS 4 // Level Transition 15 | 16 | // DLL Pause reasons 17 | 18 | #define DLL_NORMAL 0 // User hit Esc or something. 19 | #define DLL_QUIT 4 // Quit now 20 | #define DLL_RESTART 6 // Switch to launcher for linux, does a quit but returns 1 21 | 22 | // DLL Substate info ( not relevant ) 23 | #define ENG_NORMAL (1<<0) 24 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/BitmapImagePanel.h: -------------------------------------------------------------------------------- 1 | #ifndef BITMAPIMAGEPANEL_H 2 | #define BITMAPIMAGEPANEL_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | #include 8 | 9 | class CBitmapImagePanel : public vgui2::Panel 10 | { 11 | public: 12 | CBitmapImagePanel(vgui2::Panel *parent, char const *panelName, char const *filename = NULL); 13 | 14 | public: 15 | virtual void PaintBackground(void); 16 | virtual void setTexture(char const *filename, bool force = false); 17 | virtual void forceReload(void); 18 | 19 | public: 20 | void setDefaultTexture(char const *filename); 21 | 22 | private: 23 | void forceUpload(void); 24 | 25 | private: 26 | typedef vgui2::Panel BaseClass; 27 | 28 | private: 29 | bool m_bUploaded; 30 | int m_nTextureId; 31 | char m_szTexture[128]; 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /cl_dll/input.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #ifndef INPUT_H 3 | #define INPUT_H 4 | 5 | namespace cl { 6 | 7 | extern kbutton_t in_strafe; 8 | extern kbutton_t in_mlook; 9 | extern kbutton_t in_speed; 10 | extern kbutton_t in_jlook; 11 | extern kbutton_t in_forward; 12 | extern kbutton_t in_back; 13 | extern kbutton_t in_moveleft; 14 | extern kbutton_t in_moveright; 15 | 16 | extern cvar_t *m_pitch; 17 | extern cvar_t *m_yaw; 18 | extern cvar_t *m_forward; 19 | extern cvar_t *m_side; 20 | 21 | extern cvar_t *lookstrafe; 22 | extern cvar_t *lookspring; 23 | extern cvar_t *cl_pitchdown; 24 | extern cvar_t *cl_pitchup; 25 | extern cvar_t *cl_yawspeed; 26 | extern cvar_t *cl_sidespeed; 27 | extern cvar_t *cl_forwardspeed; 28 | extern cvar_t *cl_pitchspeed; 29 | extern cvar_t *cl_movespeedkey; 30 | 31 | } 32 | 33 | #endif // INPUT_H 34 | -------------------------------------------------------------------------------- /mainui_cpp/imgui_menu/imgui_menu_msgbox.h: -------------------------------------------------------------------------------- 1 | /* 2 | QuitConfirm.h 3 | Copyright (C) 2021 Moemod Hymei 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | */ 13 | 14 | #pragma once 15 | 16 | #include 17 | #include 18 | 19 | namespace ui { 20 | void MsgBox_OnGui(); 21 | void MsgBox_Open(std::string msg, std::function command = {}); 22 | } 23 | -------------------------------------------------------------------------------- /dlls/tutor_base_states.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "extdll.h" 3 | #include "util.h" 4 | #include "cbase.h" 5 | #include "player.h" 6 | #include "saverestore.h" 7 | #include "globals.h" 8 | #include "game.h" 9 | 10 | #include "bot_include.h" 11 | 12 | namespace sv { 13 | 14 | CBaseTutorStateSystem::CBaseTutorStateSystem() 15 | { 16 | ; 17 | } 18 | 19 | CBaseTutorStateSystem::~CBaseTutorStateSystem() 20 | { 21 | ; 22 | } 23 | 24 | int CBaseTutorStateSystem::GetCurrentStateType() const 25 | { 26 | if (m_currentState != NULL) 27 | { 28 | return m_currentState->GetType(); 29 | } 30 | 31 | return 0; 32 | } 33 | 34 | CBaseTutorState::CBaseTutorState() 35 | { 36 | ; 37 | } 38 | 39 | CBaseTutorState::~CBaseTutorState() 40 | { 41 | ; 42 | } 43 | 44 | int CBaseTutorState::GetType() const 45 | { 46 | return m_type; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /cl_dll/overview.h: -------------------------------------------------------------------------------- 1 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | #pragma once 8 | #ifndef OVERVIEW_H 9 | #define OVERVIEW_H 10 | 11 | 12 | //----------------------------------------------------------------------------- 13 | // Purpose: Handles the drawing of the top-down map and all the things on it 14 | //----------------------------------------------------------------------------- 15 | class CHudOverview : public CHudBase 16 | { 17 | public: 18 | int Init(); 19 | int VidInit(); 20 | 21 | int Draw(float flTime); 22 | void InitHUDData( void ); 23 | 24 | private: 25 | HSPRITE m_hsprPlayer; 26 | HSPRITE m_hsprViewcone; 27 | }; 28 | 29 | 30 | #endif // OVERVIEW_H 31 | -------------------------------------------------------------------------------- /common/wrect.h: -------------------------------------------------------------------------------- 1 | /* 2 | wrect.h - rectangle definition 3 | Copyright (C) 2010 Uncle Mike 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #ifndef WRECT_H 17 | #define WRECT_H 18 | 19 | typedef struct wrect_s 20 | { 21 | int left, right, top, bottom; 22 | } wrect_t; 23 | 24 | typedef struct rectf_s 25 | { 26 | float x, y, w, h; 27 | } rectf_t; 28 | 29 | #endif //WRECT_H -------------------------------------------------------------------------------- /dlls/luash_sv/luash_sv_extern.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | luash_sv_extern.cpp 3 | Copyright (C) 2022 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #include "extdll.h" 17 | #include "util.h" 18 | #include "cbase.h" 19 | #include "player.h" 20 | #include "weapons.h" 21 | 22 | #include "luash.hpp" 23 | 24 | #define EXTERN_TEMPLATE 25 | #include "luash_sv/luash_sv_extern.h" -------------------------------------------------------------------------------- /engine/client/imgui_menu_msgbox.h: -------------------------------------------------------------------------------- 1 | /* 2 | QuitConfirm.h 3 | Copyright (C) 2021 Moemod Hymei 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | */ 13 | 14 | #pragma once 15 | 16 | #include 17 | #include 18 | 19 | namespace ui { 20 | void MsgBox_OnGui(); 21 | void MsgBox_Open(std::string msg, std::function command = {}, float flCloseDelay = 0.0f); 22 | } 23 | -------------------------------------------------------------------------------- /dlls/exportdef.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef EXPORT 3 | #undef EXPORT 4 | #endif 5 | #ifdef DLLEXPORT 6 | #undef DLLEXPORT 7 | #endif 8 | #ifdef _DLLEXPORT 9 | #undef _DLLEXPORT 10 | #endif 11 | #ifdef C_DLLEXPORT 12 | #undef C_DLLEXPORT 13 | #endif 14 | #ifdef EXT_FUNC 15 | #undef EXT_FUNC 16 | #endif 17 | 18 | #if defined _WIN32 || defined __CYGWIN__ 19 | #ifdef __GNUC__ 20 | #define EXPORT __attribute__ ((dllexport)) 21 | #else 22 | #define EXPORT __declspec(dllexport) // Note: actually gcc seems to also supports this syntax. 23 | #endif 24 | #else 25 | #if __GNUC__ >= 4 26 | #define EXPORT __attribute__ ((visibility ("default"))) 27 | #else 28 | #define EXPORT 29 | #endif 30 | #endif 31 | #define DLLEXPORT EXPORT 32 | #define _DLLEXPORT EXPORT 33 | 34 | #define C_DLLEXPORT extern "C" DLLEXPORT 35 | #define EXT_FUNC /*FORCE_STACK_ALIGN*/ 36 | 37 | -------------------------------------------------------------------------------- /mainui_cpp/controls/ScrollView.h: -------------------------------------------------------------------------------- 1 | #ifndef SCROLLVIEW_H 2 | #define SCROLLVIEW_H 3 | 4 | #include "ItemsHolder.h" 5 | namespace ui { 6 | class CMenuScrollView : public CMenuItemsHolder 7 | { 8 | typedef CMenuItemsHolder BaseClass; 9 | public: 10 | CMenuScrollView(); 11 | 12 | void VidInit(); 13 | void Draw(); 14 | const char *Key( int key, int down ); 15 | bool MouseMove( int x, int y ); 16 | 17 | Point GetPositionOffset() const; 18 | 19 | private: 20 | bool IsRectVisible( Point pt, Size sz ); 21 | 22 | Point m_scScrollBarPos; 23 | Size m_scScrollBarSize; 24 | bool m_bScrollBarSliding; 25 | bool m_bDisableScrolling; // can't actually scroll due to item placement 26 | bool m_bHoldingMouse1; 27 | Point m_HoldingPoint; 28 | 29 | int m_iPos; 30 | int m_iMax; 31 | // float m_flOverScrolling; 32 | }; 33 | } 34 | #endif // SCROLLVIEW_H 35 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/BackgroundMenuButton.h: -------------------------------------------------------------------------------- 1 | #ifndef BACKGROUNDMENUBUTTON_H 2 | #define BACKGROUNDMENUBUTTON_H 3 | 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #include 9 | 10 | class CBackgroundMenuButton : public vgui2::Button 11 | { 12 | public: 13 | CBackgroundMenuButton(vgui2::Panel *parent, const char *name); 14 | ~CBackgroundMenuButton(void); 15 | 16 | public: 17 | virtual void SetVisible(bool state); 18 | virtual void ApplySchemeSettings(vgui2::IScheme *pScheme); 19 | 20 | public: 21 | virtual void OnKillFocus(void); 22 | virtual void OnCommand(const char *command); 23 | 24 | protected: 25 | vgui2::Menu *RecursiveLoadGameMenu(KeyValues *datafile); 26 | vgui2::Menu *m_pMenu; 27 | 28 | private: 29 | vgui2::IImage *m_pImage, *m_pMouseOverImage; 30 | typedef vgui2::Button BaseClass; 31 | }; 32 | 33 | #endif -------------------------------------------------------------------------------- /Android/gradle.properties: -------------------------------------------------------------------------------- 1 | ## For more details on how to configure your build environment visit 2 | # http://www.gradle.org/docs/current/userguide/build_environment.html 3 | # 4 | # Specifies the JVM arguments used for the daemon process. 5 | # The setting is particularly useful for tweaking memory settings. 6 | # Default value: -Xmx1024m -XX:MaxPermSize=256m 7 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 8 | # 9 | # When configured, Gradle will run in incubating parallel mode. 10 | # This option should only be used with decoupled projects. More details, visit 11 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 12 | # org.gradle.parallel=true 13 | #Fri Oct 08 22:32:13 CST 2021 14 | org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M" 15 | -------------------------------------------------------------------------------- /engine/platform/iOS/TapicEngine.mm: -------------------------------------------------------------------------------- 1 | /* 2 | TapicEngine.mm - vibrate support for iOS 3 | Copyright (C) 2019 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #import 17 | 18 | #include "TapicEngine.h" 19 | 20 | void TapicEngine_Vibrate(TapicEngineSoundID id) 21 | { 22 | AudioServicesPlaySystemSound(static_cast(id)); 23 | } 24 | -------------------------------------------------------------------------------- /engine/platform/macos/vid_macos.h: -------------------------------------------------------------------------------- 1 | /* 2 | vid_macos.h 3 | Copyright (C) 2020 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #pragma once 17 | 18 | float MacOS_GetDPI(); 19 | float MacOS_TitleBarHeight(); 20 | void MacOS_OpenURL(const char *url); 21 | void MacOS_InstallWindow(); 22 | void MacOS_ToggleWindowButtons(bool bShow); 23 | void MacOS_HiDPI_Scale(int *w, int *h); -------------------------------------------------------------------------------- /vgui2_support/GameUI/EngineInterface.h: -------------------------------------------------------------------------------- 1 | //========= Copyright ?1996-2001, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: Includes all the headers/declarations necessary to access the 4 | // engine interface 5 | // 6 | // $NoKeywords: $ 7 | //============================================================================= 8 | 9 | #ifndef ENGINEINTERFACE_H 10 | #define ENGINEINTERFACE_H 11 | 12 | #ifdef _WIN32 13 | #pragma once 14 | #endif 15 | 16 | // these stupid set of includes are required to use the cdll_int interface 17 | #include 18 | #include "port.h" 19 | #include "xash3d_types.h" 20 | 21 | #include "vgui_api.h" 22 | #include "cdll_int.h" 23 | #include "cvardef.h" 24 | 25 | // engine interface singleton accessor 26 | extern cl_enginefunc_t *engine; 27 | extern class IGameUIFuncs *gameuifuncs; 28 | 29 | #endif // ENGINEINTERFACE_H 30 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/ToolBar.cpp: -------------------------------------------------------------------------------- 1 | #include "EngineInterface.h" 2 | #include "ToolBar.h" 3 | #include 4 | #include 5 | 6 | CToolBar::CToolBar(vgui2::Panel *parent, const char *panelName) : BaseClass(parent, panelName) 7 | { 8 | #if 0 9 | SetSizeable(false); 10 | SetTitleBarVisible(false); 11 | #endif 12 | SetPaintBackgroundEnabled(true); 13 | } 14 | 15 | CToolBar::~CToolBar(void) 16 | { 17 | } 18 | 19 | void CToolBar::ApplySchemeSettings(vgui2::IScheme *pScheme) 20 | { 21 | BaseClass::ApplySchemeSettings(pScheme); 22 | 23 | #ifndef _DEBUG 24 | SetBgColor(Color(128, 128, 128, 64)); 25 | #else 26 | SetBgColor(Color(0, 0, 0, 0)); 27 | #endif 28 | } 29 | 30 | void CToolBar::PerformLayout(void) 31 | { 32 | BaseClass::PerformLayout(); 33 | } 34 | 35 | void CToolBar::PaintBackground(void) 36 | { 37 | BaseClass::PaintBackground(); 38 | } -------------------------------------------------------------------------------- /cpp.hint: -------------------------------------------------------------------------------- 1 | // Hint files help the Visual Studio IDE interpret Visual C++ identifiers 2 | // such as names of functions and macros. 3 | // For more information see https://go.microsoft.com/fwlink/?linkid=865984 4 | #define LINK_ENTITY_TO_CLASS(mapClassName, DLLClassName) LINK_ENTITY_TO_REMINDER(DLLClassName) EntityMetaData GetEntityMetaDataFor(TypeIdentity) { return { REMEMBER_TO_ADD_IN_cbase_typelist_h_(), #mapClassName, WeaponEntityPlaceHolderFactory() }; } 5 | #define LINK_ENTITY_TO_CLASS(mapClassName, DLLClassName) extern "C" EXPORT void mapClassName(entvars_t *pev) { LuaGetClassPtr(#mapClassName, pev) || (GetClassPtr(pev), true); } LINK_ENTITY_TO_REMINDER(DLLClassName) EntityMetaData GetEntityMetaDataFor(TypeIdentity) { return { REMEMBER_TO_ADD_IN_cbase_typelist_h_(), #mapClassName, &mapClassName }; } 6 | -------------------------------------------------------------------------------- /engine/platform/android/dlsym-weak.h: -------------------------------------------------------------------------------- 1 | /* 2 | dlsym-weak.h -- custom dlsym() function to override bionic libc bug on Android <5.0 3 | Copyright (C) 2015-2017 Flying With Gauss 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | #ifndef DLSYM_WEAH_H 16 | #define DLSYM_WEAK_H 17 | 18 | // ------------ dlsym-weak.cpp ------------ // 19 | void* dlsym_weak(void* handle, const char* symbol); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /SourceSDK/tier0/xbox/xbox_console.cpp: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: Xbox console link 4 | // 5 | //=====================================================================================// 6 | 7 | #include "pch_tier0.h" 8 | #include "xbox/xbox_console.h" 9 | #include "tier0/memdbgon.h" 10 | 11 | IXboxConsole *g_pXboxConsole; 12 | 13 | typedef IXboxConsole * (WINAPI *CONSOLEINTERFACEFUNC)( void ); 14 | 15 | void XboxConsoleInit() 16 | { 17 | g_pXboxConsole = NULL; 18 | 19 | HMODULE hDLL = ::LoadLibrary( "vxbdm_360.dll" ); 20 | if ( !hDLL ) 21 | { 22 | return; 23 | } 24 | 25 | CONSOLEINTERFACEFUNC fpnGetConsoleInterface = (CONSOLEINTERFACEFUNC) ::GetProcAddress( hDLL, "GetConsoleInterface" ); 26 | 27 | if ( fpnGetConsoleInterface ) 28 | { 29 | g_pXboxConsole = fpnGetConsoleInterface(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/CvarNegateCheckButton.h: -------------------------------------------------------------------------------- 1 | #ifndef CVARNEGATECHECKBUTTON_H 2 | #define CVARNEGATECHECKBUTTON_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | #include 8 | 9 | class CCvarNegateCheckButton : public vgui2::CheckButton 10 | { 11 | DECLARE_CLASS_SIMPLE(CCvarNegateCheckButton, vgui2::CheckButton); 12 | 13 | public: 14 | CCvarNegateCheckButton(vgui2::Panel *parent, const char *panelName, const char *text, char const *cvarname); 15 | ~CCvarNegateCheckButton(void); 16 | 17 | public: 18 | virtual void SetSelected(bool state); 19 | virtual void Paint(void); 20 | 21 | public: 22 | void Reset(void); 23 | void ApplyChanges(void); 24 | bool HasBeenModified(void); 25 | 26 | private: 27 | MESSAGE_FUNC(OnButtonChecked, "CheckButtonChecked"); 28 | 29 | private: 30 | char *m_pszCvarName; 31 | bool m_bStartState; 32 | }; 33 | 34 | #endif -------------------------------------------------------------------------------- /SourceSDK/public/tier1/checksum_crc.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: Generic CRC functions 4 | // 5 | // $NoKeywords: $ 6 | //=============================================================================// 7 | #ifndef CHECKSUM_CRC_H 8 | #define CHECKSUM_CRC_H 9 | #ifdef _WIN32 10 | #pragma once 11 | #endif 12 | 13 | typedef unsigned int CRC32_t; 14 | 15 | void CRC32_Init( CRC32_t *pulCRC ); 16 | void CRC32_ProcessBuffer( CRC32_t *pulCRC, const void *p, int len ); 17 | void CRC32_Final( CRC32_t *pulCRC ); 18 | CRC32_t CRC32_GetTableEntry( unsigned int slot ); 19 | 20 | inline CRC32_t CRC32_ProcessSingleBuffer( const void *p, int len ) 21 | { 22 | CRC32_t crc; 23 | 24 | CRC32_Init( &crc ); 25 | CRC32_ProcessBuffer( &crc, p, len ); 26 | CRC32_Final( &crc ); 27 | 28 | return crc; 29 | } 30 | 31 | #endif // CHECKSUM_CRC_H 32 | -------------------------------------------------------------------------------- /dlls/cbase/cbase_typelist.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | cbase_entity_register.cpp - CSMoE Gameplay server 3 | Copyright (C) 2019 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #include "extdll.h" 17 | #include "util.h" 18 | #include "cbase.h" 19 | 20 | #include "cbase_typelist.h" 21 | 22 | 23 | 24 | namespace sv{ 25 | 26 | 27 | static_assert(TypeList_Size::value == 79, "what the fuck"); 28 | 29 | } -------------------------------------------------------------------------------- /engine/client/gl_studioshader.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef enum 4 | { 5 | SSV_NORMAL, 6 | SSV_CUBEMAP, 7 | MAX_STUDIOSHADERVARIANTS 8 | } studioshadervariant_e; 9 | 10 | typedef struct studioshader_s { 11 | GLuint program; 12 | GLuint vertex_shader; 13 | GLuint fragment_shader; 14 | struct { 15 | GLint texOffset; 16 | GLint colorMix; 17 | GLint lightInfo; 18 | GLint dLightDir; 19 | GLint boneMat; 20 | GLint muWVP; 21 | GLint worldEye; 22 | GLint texDiffuseMap; 23 | GLint texEnvMap; 24 | GLint glowColor; 25 | } uniform; 26 | struct { 27 | GLint vaPosition; 28 | GLint vaNormal; 29 | GLint vaTexCoord; 30 | } attrib; 31 | } studioshader_t; 32 | extern studioshader_t g_studioshadervariant[MAX_STUDIOSHADERVARIANTS]; 33 | extern studioshader_t *g_pstudioshader; -------------------------------------------------------------------------------- /luash/luash_fwd.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef struct lua_State lua_State; 4 | 5 | namespace luash 6 | { 7 | int OpenLibs(lua_State* L); 8 | 9 | template auto Push(lua_State* L, T&&); 10 | template auto Get(lua_State* L, int N, T& out); 11 | 12 | template void RegisterGlobal(lua_State* L, const char* name, T&& what); 13 | template void SetupRefMetaTable(lua_State* L, T* ptr); 14 | 15 | class ITypeInterface; 16 | void SetupRefTypeInterface(lua_State* L, void* ptr, const ITypeInterface * ti); 17 | void ReleaseRefTypeInterface(lua_State* L, void* ptr); 18 | 19 | // LuaObject at -1, pops it 20 | int LinkPtrToLuaObject(lua_State* L, void* Ptr); 21 | int PushLuaObjectByPtr(lua_State* L, void* Ptr); 22 | int RemoveLuaObject(lua_State* L, void* Ptr); 23 | 24 | template struct ClassTraits; // ThisClass, BaseClass, Members 25 | } -------------------------------------------------------------------------------- /SourceSDK/public/winlite.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | // 7 | //=============================================================================// 8 | 9 | #ifndef WINLITE_H 10 | #define WINLITE_H 11 | #pragma once 12 | 13 | #ifdef _WIN32 14 | // 15 | // Prevent tons of unused windows definitions 16 | // 17 | #ifndef WIN32_LEAN_AND_MEAN 18 | #define WIN32_LEAN_AND_MEAN 19 | #endif 20 | #define NOWINRES 21 | #define NOSERVICE 22 | #define NOMCX 23 | #define NOIME 24 | #if !defined( _X360 ) 25 | #pragma warning(push, 1) 26 | #pragma warning(disable: 4005) 27 | #include 28 | #pragma warning(pop) 29 | #endif 30 | #undef PostMessage 31 | 32 | #pragma warning( disable: 4800 ) // forcing value to bool 'true' or 'false' (performance warning) 33 | 34 | #endif // WIN32 35 | #endif // WINLITE_H 36 | -------------------------------------------------------------------------------- /SourceSDK/tier1/rangecheckedvar.cpp: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //=============================================================================// 6 | 7 | #include "rangecheckedvar.h" 8 | 9 | // memdbgon must be the last include file in a .cpp file!!! 10 | #include "tier0/memdbgon.h" 11 | 12 | bool g_bDoRangeChecks = true; 13 | 14 | 15 | static int g_nDisables = 0; 16 | 17 | 18 | CDisableRangeChecks::CDisableRangeChecks() 19 | { 20 | if ( !ThreadInMainThread() ) 21 | return; 22 | g_nDisables++; 23 | g_bDoRangeChecks = false; 24 | } 25 | 26 | 27 | CDisableRangeChecks::~CDisableRangeChecks() 28 | { 29 | if ( !ThreadInMainThread() ) 30 | return; 31 | Assert( g_nDisables > 0 ); 32 | --g_nDisables; 33 | if ( g_nDisables == 0 ) 34 | { 35 | g_bDoRangeChecks = true; 36 | } 37 | } 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /dlls/player/player_zombie.h: -------------------------------------------------------------------------------- 1 | /* 2 | player_zombie.h - CSMoE Gameplay server : CBasePlayer impl for zombies 3 | Copyright (C) 2018 Moemod Hyakuya 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #ifndef PLAYER_ZOMBIE_H 17 | #define PLAYER_ZOMBIE_H 18 | #ifdef _WIN32 19 | #pragma once 20 | #endif 21 | 22 | #include "gamemode/zb1/zb1_const.h" 23 | 24 | namespace sv { 25 | void PlayerZombie_Precache(); 26 | } 27 | 28 | #endif -------------------------------------------------------------------------------- /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_TYPES_H ) 17 | #define ENTITY_TYPES_H 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_TYPES_H 27 | -------------------------------------------------------------------------------- /cl_dll/luash_cl/luash_cl_extern.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | luash_cl_extern.cpp 3 | Copyright (C) 2022 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #include "cl_dll.h" 17 | #include "triangleapi.h" 18 | #include "r_efx.h" 19 | #include "event_api.h" 20 | #include "demo_api.h" 21 | #include "net_api.h" 22 | #include "ivoicetweak.h" 23 | 24 | #include "luash.hpp" 25 | 26 | #define EXTERN_TEMPLATE 27 | #include "luash_cl/luash_cl_extern.h" -------------------------------------------------------------------------------- /dlls/player/player_account.h: -------------------------------------------------------------------------------- 1 | #ifndef PLAYER_ACCOUNT_H 2 | #define PLAYER_ACCOUNT_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | #ifndef CLIENT_DLL 8 | namespace sv { 9 | class CBasePlayer; 10 | 11 | struct CPlayerAccount 12 | { 13 | int Get() const 14 | { 15 | return m_iAmount; 16 | } 17 | 18 | CPlayerAccount &operator+=(int delta); 19 | 20 | CPlayerAccount &operator-=(int delta) 21 | { 22 | return *this += (-delta); 23 | } 24 | 25 | CPlayerAccount &operator=(int amount) 26 | { 27 | int iDelta = amount - m_iAmount; 28 | return *this += iDelta; 29 | } 30 | 31 | operator int() const { return Get(); } 32 | 33 | void UpdateHUD(CBasePlayer *player, bool bTrackChange = false) const; 34 | void Reset() { m_iAmount = m_iLastAmount = 0; } 35 | 36 | int m_iAmount = 0; 37 | mutable int m_iLastAmount = 0; 38 | }; 39 | } 40 | #else 41 | using CPlayerAccount = int; 42 | #endif 43 | 44 | #endif -------------------------------------------------------------------------------- /dlls/weapons/WeaponIdleDefault.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | /* 4 | template 5 | concept WeaponIdleDefault_c requires 6 | { 7 | T::WeaponIdleTime = 20; // optional 8 | T::ANIM_IDLE1 9 | }; 10 | */ 11 | 12 | template 13 | class TWeaponIdleDefault : public CBase 14 | { 15 | public: 16 | void WeaponIdle(void) override 17 | { 18 | CFinal &wpn = static_cast(*this); 19 | auto &&data = wpn.WeaponTemplateDataSource(); 20 | wpn.ResetEmptySound(); 21 | 22 | CBase::m_pPlayer->GetAutoaimVector(AUTOAIM_10DEGREES); 23 | 24 | if (CBase::m_flTimeWeaponIdle > UTIL_WeaponTimeBase()) 25 | return CBase::WeaponIdle(); 26 | 27 | 28 | CBase::m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + df::WeaponIdleTime::Get(data); 29 | wpn.SendWeaponAnim(df::ANIM_IDLE1::Get(data), wpn.UseDecrement() != FALSE); 30 | 31 | return CBase::WeaponIdle(); 32 | } 33 | }; -------------------------------------------------------------------------------- /vgui2_support/interfaces/IBaseUI.h: -------------------------------------------------------------------------------- 1 | #ifndef IBASEUI_H 2 | #define IBASEUI_H 3 | 4 | #include "tier1/interface.h" 5 | 6 | class IBaseUI : public IBaseInterface { 7 | public: 8 | virtual void Initialize(CreateInterfaceFn *factories, int count) = 0; 9 | virtual void Start(struct cl_enginefuncs_s *engineFuncs, int interfaceVersion) = 0; 10 | virtual void Shutdown() = 0; 11 | virtual int Key_Event(int down, int keynum, const char *pszCurrentBinding) = 0; 12 | virtual void CallEngineSurfaceProc(void* hwnd, unsigned int msg, unsigned int wparam, long lparam) = 0; 13 | virtual void Paint(int x, int y, int right, int bottom) = 0; 14 | virtual void HideGameUI() = 0; 15 | virtual void ActivateGameUI() = 0; 16 | virtual bool IsGameUIVisible(void) = 0; 17 | virtual void HideConsole() = 0; 18 | virtual void ShowConsole() = 0; 19 | }; 20 | 21 | #define BASEUI_INTERFACE_VERSION "BaseUI001" 22 | 23 | #endif // IBASEUI_H 24 | -------------------------------------------------------------------------------- /cl_dll/vgui2/CBackGroundPanel.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "CBackGroundPanel.h" 3 | #include 4 | 5 | CBackGroundPanel::CBackGroundPanel( vgui2::Panel* pParent ) 6 | : BaseClass( pParent, "ViewPortBackGround" ) 7 | { 8 | SetScheme( "ClientScheme" ); 9 | 10 | SetTitleBarVisible( false ); 11 | SetMoveable( false ); 12 | SetSizeable( false ); 13 | SetProportional( true ); 14 | } 15 | 16 | void CBackGroundPanel::ApplySchemeSettings( vgui2::IScheme* pScheme ) 17 | { 18 | BaseClass::ApplySchemeSettings( pScheme ); 19 | 20 | const auto color = pScheme->GetColor( "ViewportBG", Color( 0, 0, 0, 0 ) ); 21 | 22 | SetBgColor( color ); 23 | } 24 | 25 | void CBackGroundPanel::PerformLayout() 26 | { 27 | //Resize ourselves to the screen's size to fill the entire viewport. 28 | int w, h; 29 | 30 | vgui2::surface()->GetScreenSize( w, h ); 31 | 32 | SetBounds( 0, 0, w, h ); 33 | 34 | BaseClass::PerformLayout(); 35 | } 36 | -------------------------------------------------------------------------------- /dlls/cbase/cbase_physint.h: -------------------------------------------------------------------------------- 1 | /* 2 | cbase_physint.h - CSMoE Gameplay server 3 | Copyright (C) 2019 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #ifndef PROJECT_CBASE_PHYSINT_H 17 | #define PROJECT_CBASE_PHYSINT_H 18 | 19 | #include "physint.h" 20 | #include "exportdef.h" 21 | 22 | extern "C" int EXPORT Server_GetPhysicsInterface( int, server_physics_api_t*, physics_interface_t* ); 23 | 24 | 25 | #endif //PROJECT_CBASE_PHYSINT_H 26 | -------------------------------------------------------------------------------- /dlls/player/player_spawnprotection.cpp: -------------------------------------------------------------------------------- 1 | #include "extdll.h" 2 | #include "util.h" 3 | #include "cbase.h" 4 | #include "player.h" 5 | #include "gamerules.h" 6 | #include "client.h" 7 | 8 | namespace sv { 9 | 10 | void CBasePlayer::SpawnProtection_Check() 11 | { 12 | if (!m_bSpawnProtection) 13 | return; 14 | if (gpGlobals->time > m_flTimeSpawnProctionExpires) 15 | { 16 | SpawnProtection_End(); 17 | } 18 | } 19 | 20 | void CBasePlayer::SpawnProtection_Start(duration_t flTime) 21 | { 22 | m_bSpawnProtection = true; 23 | m_flTimeSpawnProctionExpires = gpGlobals->time + flTime; 24 | 25 | 26 | pev->renderfx = kRenderFxGlowShell; 27 | pev->rendercolor = { 255,255,255 }; 28 | pev->renderamt = 1; 29 | pev->takedamage = DAMAGE_NO; 30 | } 31 | 32 | void CBasePlayer::SpawnProtection_End() 33 | { 34 | m_bSpawnProtection = false; 35 | pev->renderfx = kRenderFxNone; 36 | pev->takedamage = DAMAGE_AIM; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /engine/platform/iOS/TapicEngine.h: -------------------------------------------------------------------------------- 1 | /* 2 | TapicEngine.h - vibrate support for iOS 3 | Copyright (C) 2019 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #ifndef TAPICENGINE_H 17 | #define TAPICENGINE_H 18 | 19 | typedef enum TapicEngineSoundID_e { 20 | TapicEngine_Peek = 1519, 21 | TapicEngine_Pop = 1520, 22 | } TapicEngineSoundID; 23 | 24 | void TapicEngine_Vibrate(TapicEngineSoundID id); 25 | 26 | #endif //PROJECT_TAPICENGINE_H 27 | -------------------------------------------------------------------------------- /vgui2_support/vgui2/vgui_surfacelib/FontEffects.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: Font effects that operate on linear rgba data 4 | // 5 | //=====================================================================================// 6 | 7 | #ifndef _FONTEFFECTS_H 8 | #define _FONTEFFECTS_H 9 | 10 | #ifdef _WIN32 11 | #pragma once 12 | #endif 13 | 14 | void ApplyScanlineEffectToTexture( int rgbaWide, int rgbaTall, unsigned char *rgba, int iScanLines ); 15 | void ApplyGaussianBlurToTexture(int rgbaWide, int rgbaTall, unsigned char *rgba, int iBlur ); 16 | void ApplyDropShadowToTexture( int rgbaWide, int rgbaTall, unsigned char *rgba, int iDropShadowOffset ); 17 | void ApplyOutlineToTexture( int rgbaWide, int rgbaTall, unsigned char *rgba, int iOutlineSize ); 18 | void ApplyRotaryEffectToTexture( int rgbaWide, int rgbaTall, unsigned char *rgba, bool bRotary ); 19 | 20 | #endif -------------------------------------------------------------------------------- /vgui2_support/GameUI/CvarToggleCheckButton.h: -------------------------------------------------------------------------------- 1 | #ifndef CVARTOGGLECHECKBUTTON_H 2 | #define CVARTOGGLECHECKBUTTON_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | #include 8 | 9 | class CCvarToggleCheckButton : public vgui2::CheckButton 10 | { 11 | DECLARE_CLASS_SIMPLE(CCvarToggleCheckButton, vgui2::CheckButton); 12 | 13 | public: 14 | CCvarToggleCheckButton(vgui2::Panel *parent, const char *panelName, const char *text, char const *cvarname); 15 | ~CCvarToggleCheckButton(void); 16 | 17 | public: 18 | virtual void SetSelected(bool state); 19 | virtual void Paint(void); 20 | 21 | public: 22 | void Reset(void); 23 | void ApplyChanges(void); 24 | bool HasBeenModified(void); 25 | void ApplySettings(KeyValues *inResourceData); 26 | 27 | private: 28 | MESSAGE_FUNC(OnButtonChecked, "CheckButtonChecked"); 29 | 30 | private: 31 | char *m_pszCvarName; 32 | bool m_bStartValue; 33 | }; 34 | 35 | #endif -------------------------------------------------------------------------------- /cl_dll/vgui2/csmoe/BuyMenu/WeaponImagePanel.h: -------------------------------------------------------------------------------- 1 | #ifndef WEAPONIMAGEPANEL_H 2 | #define WEAPONIMAGEPANEL_H 3 | 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | class WeaponImagePanel : public vgui2::ImagePanel 15 | { 16 | private: 17 | typedef vgui2::ImagePanel BaseClass; 18 | public: 19 | WeaponImagePanel(Panel *parent, const char *name); 20 | 21 | virtual void PaintBackground() override; 22 | 23 | void SetWeapon(const char *weapon); 24 | void SetWeapon(nullptr_t); 25 | private: 26 | virtual void SetImage(vgui2::IImage *image) override { return BaseClass::SetImage(image); } 27 | virtual void SetImage(const char *imageName) override { return BaseClass::SetImage(imageName); } 28 | 29 | bool m_bBanned; 30 | vgui2::IImage *m_pBannedImage; 31 | }; 32 | 33 | #endif -------------------------------------------------------------------------------- /cl_dll/rain.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1996-2004, Shambler Team. 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 | * Shambler Team. All other use, distribution, or modification is prohibited 12 | * without written permission from Shambler Team. 13 | * 14 | ****/ 15 | /* 16 | ====== rain.h ======================================================== 17 | */ 18 | #pragma once 19 | #ifndef __RAIN_H__ 20 | #define __RAIN_H__ 21 | 22 | void ProcessRain( void ); 23 | void ProcessFXObjects( void ); 24 | void ResetRain( void ); 25 | void InitRain( void ); 26 | void DrawRain( void ); 27 | void DrawFXObjects( void ); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /SourceSDK/mathlib/sse.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //=====================================================================================// 6 | 7 | #ifndef _SSE_H 8 | #define _SSE_H 9 | 10 | float _SSE_Sqrt(float x); 11 | float _SSE_RSqrtAccurate(float a); 12 | float _SSE_RSqrtFast(float x); 13 | float FASTCALL _SSE_VectorNormalize(Vector& vec); 14 | void FASTCALL _SSE_VectorNormalizeFast(Vector& vec); 15 | float _SSE_InvRSquared(const float* v); 16 | void _SSE_SinCos(float x, float* s, float* c); 17 | float _SSE_cos( float x); 18 | #ifdef PLATFORM_WINDOWS_PC32 19 | void _SSE2_SinCos(float x, float* s, float* c); 20 | float _SSE2_cos(float x); 21 | #endif 22 | #if 0 23 | void VectorTransformSSE(const float *in1, const matrix3x4_t& in2, float *out1); 24 | void VectorRotateSSE( const float *in1, const matrix3x4_t& in2, float *out1 ); 25 | #endif 26 | 27 | #endif // _SSE_H 28 | -------------------------------------------------------------------------------- /dlls/player/player_account.cpp: -------------------------------------------------------------------------------- 1 | #include "extdll.h" 2 | #include "util.h" 3 | #include "cbase.h" 4 | #include "player.h" 5 | #include "client.h" 6 | 7 | #include "gamemode/mods.h" 8 | 9 | #include 10 | 11 | namespace sv { 12 | 13 | void CBasePlayer::AddAccount(int amount, bool bTrackChange) 14 | { 15 | m_iAccount += amount; 16 | } 17 | 18 | CPlayerAccount &CPlayerAccount::operator+=(int delta) 19 | { 20 | const int iMax = to_int(g_pModRunning->QueryModConfig("MaxMoney", 16000)); 21 | m_iAmount = std::min(std::max(0, m_iAmount + delta), iMax); 22 | 23 | return *this; 24 | } 25 | 26 | void CPlayerAccount::UpdateHUD(CBasePlayer *player, bool bTrackChange) const 27 | { 28 | if (!bTrackChange || m_iAmount != m_iLastAmount) 29 | { 30 | MESSAGE_BEGIN(MSG_ONE, gmsgMoney, NULL, player->pev); 31 | WRITE_LONG(m_iAmount); 32 | WRITE_BYTE(bTrackChange); 33 | MESSAGE_END(); 34 | 35 | m_iLastAmount = m_iAmount; 36 | } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /engine/platform/sdl/events.h: -------------------------------------------------------------------------------- 1 | /* 2 | events.h - SDL event system handlers 3 | Copyright (C) 2015-2017 a1batross 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #pragma once 17 | #ifndef KEYWRAPPER_H 18 | #define KEYWRAPPER_H 19 | 20 | #ifdef XASH_SDL 21 | 22 | void SDLash_RunEvents( void ); 23 | void SDLash_EnableTextInput( int enable, qboolean force ); 24 | int SDLash_JoyInit( int numjoy ); // pass -1 to init every joystick 25 | 26 | #endif // XASH_SDL 27 | #endif // KEYWRAPPER_H 28 | -------------------------------------------------------------------------------- /vgui2_support/vgui_controls/Divider.h: -------------------------------------------------------------------------------- 1 | //========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //=============================================================================// 7 | 8 | #ifndef DIVIDER_H 9 | #define DIVIDER_H 10 | 11 | #ifdef _WIN32 12 | #pragma once 13 | #endif 14 | 15 | #include "Panel.h" 16 | 17 | namespace vgui2 18 | { 19 | 20 | //----------------------------------------------------------------------------- 21 | // Purpose: Thin line used to divide sections in dialogs 22 | //----------------------------------------------------------------------------- 23 | class Divider : public Panel 24 | { 25 | DECLARE_CLASS_SIMPLE( Divider, Panel ); 26 | 27 | public: 28 | Divider(Panel *parent, const char *name); 29 | ~Divider(); 30 | 31 | virtual void ApplySchemeSettings(IScheme *pScheme); 32 | }; 33 | 34 | 35 | } // namespace vgui 36 | 37 | 38 | #endif // DIVIDER_H 39 | -------------------------------------------------------------------------------- /SourceSDK/vstdlib/xbox/___FirstModule.cpp: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // MUST BE THE FIRST MODULE IN THE LINK PROCESS TO ACHIEVE @1 4 | // 5 | // This is a 360 specific trick to force this import library and the new 360 6 | // link option /AUTODEF to put CreateInterface at @1 (360 lacks named exports) and 7 | // first in sequence. Otherwise, the valve interface techique that does a 8 | // GetProcAddress( @1 ) gets the wrong function pointer. All other exported 9 | // functions can appear in any order, but the oridnals should be autogened sequential. 10 | //===========================================================================// 11 | 12 | #include "tier1/tier1.h" 13 | 14 | // Should be the first function that the linker 'sees' as an export 15 | void* CreateInterfaceThunk( const char *pName, int *pReturnCode ) 16 | { 17 | // descend into the real function 18 | return CreateInterface( pName, pReturnCode ); 19 | } 20 | -------------------------------------------------------------------------------- /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 | #ifndef __MINGW32__ 19 | #pragma once 20 | #endif /* not __MINGW32__ */ 21 | #endif 22 | 23 | typedef struct con_nprint_s 24 | { 25 | int index; // Row # 26 | float time_to_live; // # of seconds before it disappears 27 | float color[ 3 ]; // RGB colors ( 0.0 -> 1.0 scale ) 28 | } con_nprint_t; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /dlls/vector.h: -------------------------------------------------------------------------------- 1 | /* 2 | vector.h - CSMoE Foundation : Vector 3 | Copyright (C) 2019 Moemod Yanase 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #pragma once 17 | 18 | #ifdef DotProduct 19 | #undef DotProduct 20 | #endif 21 | 22 | #include "xash3d_types.h" 23 | #include "util/u_vector.hpp" 24 | #include "util/u_vector_angle.hpp" 25 | 26 | #ifndef CLIENT_DLL 27 | namespace sv::moe { 28 | #else 29 | namespace cl::moe { 30 | #endif 31 | 32 | using Vector2D = vec2_t; 33 | using Vector = vec3_t; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /dlls/luash_sv/luash_sv.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | typedef struct lua_State lua_State; 7 | 8 | namespace sv 9 | { 10 | class CBaseEntity; 11 | 12 | void LuaSV_Init(); 13 | void LuaSV_Shutdown(); 14 | lua_State* LuaSV_Get(); 15 | void LuaSV_Exec(const char* str); 16 | 17 | int LuaSV_GlobalReload(lua_State* L); 18 | int LuaSV_GlobalRequire(lua_State* L); 19 | int LuaSV_GlobalPrint(lua_State* L); 20 | 21 | int LuaSV_OpenFileSystemLib(lua_State* L); 22 | int LuaSV_OpenDllfuncLib(lua_State* L); 23 | 24 | template void LuaSetupRefTypeInterface(lua_State* L, CBaseEntity* ptr); 25 | template CBaseEntity* LuaCreateClassPtr(lua_State* L, entvars_t* pev); 26 | 27 | extern std::map g_pfnLuaSetupRefTypeInterfaceMap; 28 | extern std::map g_pfnLuaCreateClassPtrMap; 29 | } 30 | 31 | #include "luash_sv/luash_sv_shared.h" -------------------------------------------------------------------------------- /SourceSDK/public/tier0/vprof_telemetry.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: Real-Time Hierarchical Telemetry Profiling 4 | // 5 | // $NoKeywords: $ 6 | //=============================================================================// 7 | 8 | #ifndef VPROF_TELEMETRY_H 9 | #define VPROF_TELEMETRY_H 10 | 11 | #define tmZone(...) 12 | #define tmTryLockEx(...) 13 | #define tmSetLockStateEx(...) 14 | #define tmEndTryLockEx(...) 15 | #define tmZoneFiltered(...) 16 | #define tmDynamicString(...) "" 17 | #define tmEnter(...) 18 | #define tmMessage(...) 19 | #define tmBeginTimeSpanAt(...) 20 | #define tmEndTimeSpanAt(...) 21 | #define tmLeave(...) 22 | #define TM_ZONE_DEFAULT(...) 23 | #define TM_ZONE_DEFAULT_PARAM(...) 24 | #define TelemetryTick(...) 25 | #define tmPlotI32(...) 26 | #define TelemetrySetLockName(...) 27 | #define tmEndTryLock(...) 28 | #define tmTryLock(...) 29 | #define tmSetLockState(...) 30 | 31 | #endif // VPROF_TELEMETRY_H 32 | -------------------------------------------------------------------------------- /cl_dll/imgui_cl/imgui_cl_buy.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_cl_buy.h 3 | Copyright (C) 2019 Moemod Haoyuan 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | 17 | #ifndef CSMOE_IMGUI_CL_BUY_H 18 | #define CSMOE_IMGUI_CL_BUY_H 19 | 20 | #include 21 | namespace cl { 22 | 23 | class CImGuiBuyMenu { 24 | public: 25 | CImGuiBuyMenu(); 26 | ~CImGuiBuyMenu(); 27 | void OnGUI(); 28 | private: 29 | struct impl_t; 30 | const std::unique_ptr pimpl; 31 | }; 32 | 33 | } 34 | 35 | #endif //CSMOE_IMGUI_CL_BUY_H 36 | -------------------------------------------------------------------------------- /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 | #ifndef __MINGW32__ 19 | #pragma once 20 | #endif /* not __MINGW32__ */ 21 | #endif 22 | 23 | typedef struct demo_api_s 24 | { 25 | int ( *IsRecording ) ( void ); 26 | int ( *IsPlayingback ) ( void ); 27 | int ( *IsTimeDemo ) ( void ); 28 | void ( *WriteBuffer ) ( int size, unsigned char *buffer ); 29 | } demo_api_t; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /mainui_cpp/msvc6/compile.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | echo Setting environment for minimal Visual C++ 6 4 | set MSVCDir=C:\Program Files (x86)\Microsoft Visual Studio\VC98\ 5 | set INCLUDE=%MSVCDir%\include 6 | set LIB=%MSVCDir%\lib 7 | set PATH=%MSVCDir%\bin;%PATH% 8 | 9 | echo -- Compiler is MSVC6 10 | 11 | set XASH3DSRC=..\..\ 12 | set INCLUDES=-I..\ -I..\model -I..\font -I..\controls -I..\menus -I%XASH3DSRC% -I%XASH3DSRC%\engine -I%XASH3DSRC%\pm_shared -I%XASH3DSRC%\common -I..\utl 13 | set SOURCES=..\*.cpp ..\controls\*.cpp ..\menus\*.cpp ..\font\*.cpp ..\menus\dynamic\*.cpp 14 | set DEFINES=/DMY_COMPILER_SUCKS /DPRERELEASE_INTERFACE /DMAINUI_USE_CUSTOM_FONT_RENDER /DXASH_DISABLE_FWGS_EXTENSIONS /Dstrcasecmp=stricmp 15 | set LINKLIBS=gdi32.lib user32.lib 16 | set OUTNAME=menu.dll 17 | rem set DEBUG=/debug 18 | 19 | cl %DEFINES% %SOURCES% %INCLUDES% -o %OUTNAME% /link /dll %LINKLIBS% /out:%OUTNAME% %DEBUG% 20 | 21 | echo -- Compile done. Cleaning... 22 | 23 | del *.obj *.exp *.lib *.ilk 24 | echo -- Done. 25 | -------------------------------------------------------------------------------- /SourceSDK/public/mathlib/angledef.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | enum : size_t 4 | { 5 | // up / down 6 | PITCH = 0, 7 | // left / right 8 | YAW = 1, 9 | // fall over 10 | ROLL = 2 11 | }; 12 | 13 | float anglemod(float a); 14 | //constexpr float anglemod( float a ) 15 | //{ 16 | // return ( 360.0f / 65536 ) * ( (int)( a * ( 65536 / 360.0f ) ) & 65535 ); 17 | //} 18 | 19 | #ifdef M_PI 20 | #undef M_PI 21 | #endif 22 | #ifdef RAD2DEG 23 | #undef RAD2DEG 24 | #endif 25 | #ifdef DEG2RAD 26 | #undef DEG2RAD 27 | #endif 28 | constexpr auto M_PI = 3.14159265358979323846; // matches value in gcc v2 math.h 29 | constexpr float M_PI_F = (float)M_PI; // matches value in gcc v2 math.h 30 | constexpr auto M_PI2 = 6.28318530717958647692; // matches value in gcc v2 math.h 31 | constexpr float M_PI2_F = (float)M_PI2; // matches value in gcc v2 math.h 32 | constexpr float RAD2DEG(float x) { return (x) * static_cast(180.f / M_PI); } 33 | constexpr float DEG2RAD(float x) { return (x) * static_cast(M_PI / 180.f); } -------------------------------------------------------------------------------- /SourceSDK/public/tier0/IOCTLCodes.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | // 7 | //=============================================================================// 8 | #ifndef IOCTLCODES_H 9 | #define IOCTLCODES_H 10 | #pragma once 11 | 12 | // Define the IOCTL codes we will use. The IOCTL code contains a command 13 | // identifier, plus other information about the device, the type of access 14 | // with which the file must have been opened, and the type of buffering. 15 | 16 | // Device type -- in the "User Defined" range." 17 | #define DEVICE_FILE_TYPE 40000 18 | 19 | 20 | // The IOCTL function codes from 0x800 to 0xFFF are for customer use. 21 | 22 | #define IOCTL_WRITE_MSR \ 23 | CTL_CODE( DEVICE_FILE_TYPE, 0x900, METHOD_BUFFERED, FILE_READ_ACCESS ) 24 | 25 | #define IOCTL_READ_MSR \ 26 | CTL_CODE( DEVICE_FILE_TYPE, 0x901, METHOD_BUFFERED, FILE_READ_ACCESS ) 27 | 28 | 29 | #endif IOCTLCODES_H 30 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/CvarTextEntry.h: -------------------------------------------------------------------------------- 1 | //========= Copyright ?1996-2001, Valve LLC, All rights reserved. ============ 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //============================================================================= 7 | 8 | #ifndef CVARTEXTENTRY_H 9 | #define CVARTEXTENTRY_H 10 | #ifdef _WIN32 11 | #pragma once 12 | #endif 13 | 14 | #include 15 | 16 | class CCvarTextEntry : public vgui2::TextEntry 17 | { 18 | public: 19 | CCvarTextEntry(vgui2::Panel *parent, const char *panelName, char const *cvarname); 20 | ~CCvarTextEntry(); 21 | 22 | void OnTextChanged(); 23 | void ApplyChanges(bool immediate = false); 24 | virtual void ApplySchemeSettings(vgui2::IScheme *pScheme); 25 | void Reset(); 26 | bool HasBeenModified(); 27 | 28 | DECLARE_PANELMAP(); 29 | 30 | private: 31 | typedef vgui2::TextEntry BaseClass; 32 | 33 | char *m_pszCvarName; 34 | char m_pszStartValue[64]; 35 | }; 36 | 37 | #endif // CVARTEXTENTRY_H 38 | -------------------------------------------------------------------------------- /dlls/luash_sv/luash_sv_marco.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define FORWARD_ARGUMENT_SINGLE_ITER_M(Z, N, PREFIX) BOOST_PP_COMMA_IF(N) FORWARD_ARGUMENT_SINGLE(PREFIX ## N) 4 | #define FORWARD_ARGUMENT_SINGLE(NAME) std::forward(NAME) 5 | 6 | #define NAMED_ARGUMENT_SINGLE(T, NAME) typename std::type_identity::type NAME 7 | #define ADD_NAMED_ARGUMENT(Z, I, ARGSTYPE_TUPLE) NAMED_ARGUMENT_SINGLE(BOOST_PP_TUPLE_ELEM(I, ARGSTYPE_TUPLE), BOOST_PP_CAT(x, BOOST_PP_DEC(I))) 8 | #define NAMED_ARGUMENT(...) BOOST_PP_IF(BOOST_PP_EQUAL(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__), 1), (), (BOOST_PP_ENUM_SHIFTED(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__), ADD_NAMED_ARGUMENT, (__VA_ARGS__)))) 9 | #define NAMED_ARGUMENT_THIS(THISCLASS, ...) BOOST_PP_IF(BOOST_PP_EQUAL(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__), 1), (THISCLASS *that), (THISCLASS *that, BOOST_PP_ENUM_SHIFTED(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__), ADD_NAMED_ARGUMENT, (__VA_ARGS__)))) 10 | 11 | #define NAMED_ARG_FN_DECL(...) auto BOOST_PP_VARIADIC_ELEM(0, __VA_ARGS__) NAMED_ARGUMENT(__VA_ARGS__) -------------------------------------------------------------------------------- /common/lightstyle.h: -------------------------------------------------------------------------------- 1 | /* 2 | lightstyle.h - lighstyle description 3 | Copyright (C) 2011 Uncle Mike 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #ifndef LIGHTSTYLE_H 17 | #define LIGHTSTYLE_H 18 | 19 | typedef struct 20 | { 21 | char pattern[256]; 22 | float map[256]; 23 | int length; 24 | float value; 25 | int interp; // allow to interpolate this lightstyle (duration in 0.1 secs) 26 | float time; // local time warranties that new style begins from the start, not mid or end of the sequence 27 | } lightstyle_t; 28 | 29 | #endif//LIGHTSTYLE_H -------------------------------------------------------------------------------- /SourceSDK/public/UnicodeFileHelpers.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //=============================================================================// 6 | 7 | #ifndef UNICODEFILEHELPERS_H 8 | #define UNICODEFILEHELPERS_H 9 | #ifdef _WIN32 10 | #pragma once 11 | #endif 12 | 13 | #include 14 | 15 | // helper functions for parsing unicode file buffers 16 | ucs2 *AdvanceOverWhitespace(ucs2 *start); 17 | ucs2 *ReadUnicodeToken(ucs2 *start, ucs2 *token, int tokenBufferSize, bool "ed); 18 | ucs2 *ReadUnicodeTokenNoSpecial(ucs2 *start, ucs2 *token, int tokenBufferSize, bool "ed); 19 | ucs2 *ReadToEndOfLine(ucs2 *start); 20 | 21 | // writing to unicode files via CUtlBuffer 22 | class CUtlBuffer; 23 | void WriteUnicodeString(CUtlBuffer &buffer, const wchar_t *string, bool addQuotes = false); 24 | void WriteAsciiStringAsUnicode(CUtlBuffer &buffer, const char *string, bool addQuotes = false); 25 | 26 | 27 | 28 | #endif // UNICODEFILEHELPERS_H 29 | -------------------------------------------------------------------------------- /dlls/bot/states/cs_bot_defend.cpp: -------------------------------------------------------------------------------- 1 | #include "bot_include.h" 2 | 3 | namespace sv { 4 | 5 | // Begin defusing the bomb 6 | 7 | void DefendState::OnEnter(CCSBot* me) 8 | { 9 | me->DestroyPath(); 10 | m_checkInterval.Start(2.0s); 11 | } 12 | 13 | // Defuse the bomb 14 | 15 | void DefendState::OnUpdate(CCSBot* me) 16 | { 17 | // look around 18 | me->UpdateLookAround(); 19 | 20 | if (!m_checkInterval.IsElapsed()) 21 | return; 22 | 23 | if (!m_defendArea) 24 | { 25 | me->Idle(); 26 | return; 27 | } 28 | 29 | m_checkInterval.Start(2.0s); 30 | if (m_defendArea->Contains(&me->pev->origin)) 31 | { 32 | return; 33 | } 34 | 35 | Vector pos; 36 | m_defendArea->GetClosestPointOnArea(&me->pev->origin, &pos); 37 | if ((pos - me->pev->origin).IsLengthGreaterThan(700.0f)) 38 | { 39 | me->Idle(); 40 | return; 41 | } 42 | 43 | me->SetTask(CCSBot::MOVE_TO_SAFE_AREA); 44 | me->MoveTo(m_defendArea->GetCenter()); 45 | } 46 | 47 | void DefendState::OnExit(CCSBot *me) 48 | { 49 | m_defendArea = nullptr; 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /vgui2_support/interfaces/vgui/IScheme.h: -------------------------------------------------------------------------------- 1 | #ifndef ISCHEME_H 2 | #define ISCHEME_H 3 | 4 | #include 5 | #include "vgui/VGUI.h" 6 | #include "Color.h" 7 | 8 | namespace vgui2 { 9 | class IBorder; 10 | 11 | class IScheme : public IBaseInterface { 12 | public: 13 | // gets a string from the default settings section 14 | virtual const char *GetResourceString(const char *stringName) = 0; 15 | 16 | // returns a pointer to an existing border 17 | virtual IBorder *GetBorder(const char *borderName) = 0; 18 | 19 | // returns a pointer to an existing font 20 | virtual HFont GetFont(const char *fontName, bool proportional = false) = 0; 21 | 22 | // inverse font lookup 23 | //virtual char const *GetFontName( const HFont& font ) = 0; 24 | 25 | // colors 26 | virtual Color GetColor(const char *colorName, Color defaultColor) = 0; 27 | 28 | public: 29 | // deadscheme.cpp 30 | const char *GetFontName(const HFont& font); 31 | }; 32 | } 33 | 34 | #include 35 | 36 | #endif // ISCHEME_H 37 | -------------------------------------------------------------------------------- /public/nodiscard.h: -------------------------------------------------------------------------------- 1 | /* 2 | nodiscard.h - Nodiscard declaration 3 | Copyright (C) 2019 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #ifndef PROJECT_NODISCARD_H 17 | #define PROJECT_NODISCARD_H 18 | 19 | #if _MSC_VER 20 | # if _CRT_HAS_CXX17 21 | # define NODISCARD [[nodiscard]] 22 | # endif 23 | #elif __cplusplus 24 | # if __cplusplus >= 201703L && !defined(NODISCARD) 25 | # define NODISCARD [[nodiscard]] 26 | # endif 27 | #endif 28 | 29 | #ifndef NODISCARD 30 | # define NODISCARD 31 | #endif 32 | 33 | #endif //PROJECT_NODISCARD_H 34 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/MultiplayerAdvancedDialog.h: -------------------------------------------------------------------------------- 1 | #ifndef MULTIPLAYERADVANCEDDIALOG_H 2 | #define MULTIPLAYERADVANCEDDIALOG_H 3 | 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #include 9 | #include "ScriptObject.h" 10 | #include 11 | 12 | class CMultiplayerAdvancedDialog : public vgui2::Frame 13 | { 14 | DECLARE_CLASS_SIMPLE(CMultiplayerAdvancedDialog, vgui2::Frame); 15 | 16 | public: 17 | CMultiplayerAdvancedDialog(vgui2::Panel *parent); 18 | ~CMultiplayerAdvancedDialog(void); 19 | 20 | public: 21 | virtual void Activate(void); 22 | 23 | private: 24 | 25 | void CreateControls(void); 26 | void DestroyControls(void); 27 | void GatherCurrentValues(void); 28 | void SaveValues(void); 29 | 30 | public: 31 | CInfoDescription *m_pDescription; 32 | mpcontrol_t *m_pList; 33 | CPanelListPanel *m_pListPanel; 34 | 35 | public: 36 | virtual void OnCommand(const char *command); 37 | virtual void OnClose(void); 38 | virtual void OnKeyCodeTyped(vgui2::KeyCode code); 39 | }; 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /mainui_cpp/menus/ConnectionProgress.h: -------------------------------------------------------------------------------- 1 | /* 2 | ConnectionProgress.h -- connection progress window 3 | Copyright (C) 2017 mittorn 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | */ 20 | #ifndef CMENUCONNECTIONPROGRESS_H 21 | #define CMENUCONNECTIONPROGRESS_H 22 | namespace ui { 23 | void UI_ConnectionProgress_f(); 24 | } 25 | #endif // CMENUCONNECTIONPROGRESS_H 26 | -------------------------------------------------------------------------------- /vgui2_support/GameUI/OptionsDialog.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "vgui_controls/PropertyDialog.h" 4 | #include "vgui_controls/KeyRepeat.h" 5 | 6 | class COptionsDialog : public vgui2::PropertyDialog 7 | { 8 | DECLARE_CLASS_SIMPLE(COptionsDialog, vgui2::PropertyDialog); 9 | 10 | public: 11 | COptionsDialog(vgui2::Panel *parent); 12 | ~COptionsDialog(void); 13 | 14 | public: 15 | void Run(void); 16 | void Activate(void); 17 | 18 | public: 19 | void OnClose(void); 20 | 21 | public: 22 | MESSAGE_FUNC(OnGameUIHidden, "GameUIHidden"); 23 | 24 | private: 25 | class COptionsSubMultiplayer *m_pOptionsSubMultiplayer; 26 | class COptionsSubKeyboard *m_pOptionsSubKeyboard; 27 | class COptionsSubMouse *m_pOptionsSubMouse; 28 | class COptionsSubAudio *m_pOptionsSubAudio; 29 | //class COptionsSubVideo *m_pOptionsSubVideo; 30 | //class COptionsSubVoice *m_pOptionsSubVoice; 31 | //class COptionsSubAdvanced *m_pOptionsSubAdvanced; 32 | class COptionsSubMoeSettings* m_pOptionsSubMoeSettings; 33 | class COptionsSubTouch* m_pOptionsSubTouch; 34 | }; -------------------------------------------------------------------------------- /vgui2_support/dead_wrapper/deadfilesystem.cpp: -------------------------------------------------------------------------------- 1 | #include "filesystem.h" 2 | #include 3 | 4 | #include "basetypes.h" 5 | #include "unicode_strtools.h" 6 | 7 | extern IFileSystem *g_pFullFileSystem; 8 | 9 | char *GetFileType(const char fileName[], char type[]) 10 | { 11 | int i = strlen(fileName) - 1, j; 12 | char ch; 13 | 14 | for (type[0] = '\0'; i >= 0; i--) 15 | { 16 | if (fileName[i] == '.') 17 | { 18 | for (j = i; fileName[j] != '\0'; j++) 19 | { 20 | ch = fileName[j]; 21 | type[j - i] = ('A' <= ch && ch <= 'Z') ? (ch + 'a' - 'A') : ch; 22 | } 23 | 24 | type[j - i] = '\0'; 25 | break; 26 | } 27 | else if (fileName[i] == '/' || fileName[i] == '\\') 28 | { 29 | break; 30 | } 31 | } 32 | 33 | return type; 34 | } 35 | 36 | bool IFileSystem::GetFileTypeForFullPath(char const *pFullPath, wchar_t *buf, size_t bufSizeInBytes) 37 | { 38 | static char charBuf[32]; 39 | GetFileType(pFullPath, charBuf); 40 | Q_UTF8ToUnicode(charBuf, buf, bufSizeInBytes, STRINGCONVERT_REPLACE); 41 | return false; 42 | } -------------------------------------------------------------------------------- /cl_dll/vgui2/CGameUITestPanel.h: -------------------------------------------------------------------------------- 1 | #ifndef CGAMEUITESTPANEL_H 2 | #define CGAMEUITESTPANEL_H 3 | 4 | #include 5 | #include 6 | #include "IGameUIPanel.h" 7 | 8 | namespace vgui2 9 | { 10 | class RichText; 11 | } 12 | 13 | class CGameUITestPanel : public vgui2::Frame, public IGameUIPanel 14 | { 15 | public: 16 | DECLARE_CLASS_SIMPLE(CGameUITestPanel, Frame); 17 | 18 | public: 19 | CGameUITestPanel(vgui2::VPANEL parent); 20 | virtual ~CGameUITestPanel(); 21 | void OnCommand(const char* command) override; 22 | void Activate() override; 23 | 24 | // IGameUIPanel overrides 25 | const char *GetName() override; 26 | void Reset() override; 27 | void ShowPanel(bool state) override; 28 | virtual void OnGameUIActivated() override; 29 | virtual void OnGameUIDeactivated() override; 30 | 31 | // VGUI functions: 32 | vgui2::VPANEL GetVPanel() override final; 33 | bool IsVisible() override final; 34 | 35 | private: 36 | bool m_bIsOpen = false; 37 | 38 | vgui2::RichText *m_pRichText = nullptr; 39 | }; 40 | 41 | #endif -------------------------------------------------------------------------------- /mainui_cpp/menus/PlayerIntroduceDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2017 a1batross. 3 | PlayerIntroduceDialog.h -- dialog intended to let player introduce themselves: enter nickname 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | // Don't expose class, just few functions 23 | namespace ui { 24 | void UI_PlayerIntroduceDialog_Show(CMenuBaseWindow *pCaller ); 25 | } -------------------------------------------------------------------------------- /engine/platform/emscripten/mods.js.example: -------------------------------------------------------------------------------- 1 | // last field is used to show progress correctly when browser could not determine file size 2 | // You may add human-readable size to display name 3 | // zip -r9 mod.zip gamedir 4 | // Zip support uses BrowserFS ZipFS implementation which may be unstable in some browsers (i'm getting abort in syscall5 sometimes) 5 | // Loading files from heavily compressed zips may freeze 6 | zipMods = [ 7 | ['mod1.zip', 'Mod1 display name (58M)', 60000000], 8 | ['mod2.zip', 'Mod2 display name (39M)', 40000000] 9 | ]; 10 | 11 | // use emscripten file packager with js output 12 | // place game data to 'rodir' folder before packaging to get '/rodir/gamedir' paths after packaging 13 | // python ~/emscripten/tools/file_packager.py mod1.data --preload rodir --indexedDB-name=MODNAME --use-preload-cache --no-heap-copy --lz4 --js-output=mod1.js 14 | // package script already contains file size, so you need to specify size only in name 15 | pkgMods = [ 16 | ['mod1.js','Display name(mod size)'], 17 | ['mod2.js', 'Display name(mod size)'] 18 | ]; 19 | 20 | -------------------------------------------------------------------------------- /mainui_cpp/controls/BaseClientWindow.h: -------------------------------------------------------------------------------- 1 | /* 2 | BaseWindow.h -- base client menu window 3 | Copyright (C) 2018 a1batross 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | #pragma once 16 | #ifndef BASECLIENTWINDOW_H 17 | #define BASECLIENTWINDOW_H 18 | 19 | #include "BaseWindow.h" 20 | namespace ui { 21 | class CMenuBaseClientWindow : public CMenuBaseWindow 22 | { 23 | public: 24 | typedef CMenuBaseWindow BaseClass; 25 | CMenuBaseClientWindow( const char *name = "BaseClientWindow" ); 26 | 27 | const char *Key( int key, int down ) override; 28 | }; 29 | } 30 | #endif // BASECLIENTWINDOW_H 31 | -------------------------------------------------------------------------------- /cl_dll/hud/newhud/NewFontManager.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #ifndef NEWFONTMANAGER_H 3 | #define NEWFONTMANAGER_H 4 | 5 | #include "vgui_controls/controls.h" 6 | #include "vgui/IScheme.h" 7 | 8 | 9 | typedef struct FontText_s 10 | { 11 | char SzFontName[32]; 12 | vgui2::HFont HFont; 13 | }FontText_t; 14 | 15 | namespace cl { 16 | class CHudDrawFontText : public CHudBase 17 | { 18 | public: 19 | CHudDrawFontText(); 20 | 21 | int Init(void); 22 | int VidInit(void); 23 | 24 | FontText_t PushBackFont(const char* SzFontName, bool bProportional = false); 25 | vgui2::HFont TakeOutFont(const char* SzFontName); 26 | 27 | char* GetFontFullName(const char* SzFontName, int SzFontSize); 28 | public: 29 | int GetFontTextWide(const char* SzFontName, int SzFontSize, const wchar_t* str); 30 | int GetFontTextHeight(const char* SzFontName, int SzFontSize); 31 | void DrawFontText(const char* SzFontName, int SzFontSize, int x, int y, int r, int g, int b, int a, const wchar_t* str); 32 | private: 33 | std::vector m_pFont; 34 | }; 35 | } 36 | 37 | 38 | #endif -------------------------------------------------------------------------------- /SourceSDK/public/OfflineMode.h: -------------------------------------------------------------------------------- 1 | //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | //=============================================================================// 6 | 7 | #include 8 | #include 9 | 10 | #define STEAM_OFFLINE_MODE "HKEY_CURRENT_USER\\Software\\Valve\\Steam\\Offline" 11 | #define STEAM_AFS_MODE "HKEY_CURRENT_USER\\Software\\Valve\\Steam\\OfflineAFS" 12 | #define OFFLINE_FILE "Steam\\cached\\offline_" // first part of filename 13 | 14 | inline bool IsSteamInOfflineMode() 15 | { 16 | int offline = 0; 17 | vgui2::system()->GetRegistryInteger( STEAM_OFFLINE_MODE, offline ); 18 | return ( offline == 1 ); 19 | }inline bool IsSteamInAuthenticationFailSafeMode() 20 | { 21 | int offline = 0; 22 | vgui2::system()->GetRegistryInteger( STEAM_AFS_MODE, offline ); 23 | return ( offline == 1 ); 24 | } 25 | 26 | inline bool IsSteamGameServerBrowsingEnabled() 27 | { 28 | return (IsSteamInAuthenticationFailSafeMode() || !IsSteamInOfflineMode()); 29 | } 30 | -------------------------------------------------------------------------------- /SourceSDK/wrapper/deadfilesystem.cpp: -------------------------------------------------------------------------------- 1 | #include "filesystem.h" 2 | #include 3 | #include 4 | 5 | #include "basetypes.h" 6 | #include "../public/unicode_strtools.h" 7 | 8 | extern IFileSystem *g_pFullFileSystem; 9 | 10 | char *GetFileType(const char fileName[], char type[]) 11 | { 12 | int i = strlen(fileName) - 1, j; 13 | char ch; 14 | 15 | for (type[0] = '\0'; i >= 0; i--) 16 | { 17 | if (fileName[i] == '.') 18 | { 19 | for (j = i; fileName[j] != '\0'; j++) 20 | { 21 | ch = fileName[j]; 22 | type[j - i] = ('A' <= ch && ch <= 'Z') ? (ch + 'a' - 'A') : ch; 23 | } 24 | 25 | type[j - i] = '\0'; 26 | break; 27 | } 28 | else if (fileName[i] == '/' || fileName[i] == '\\') 29 | { 30 | break; 31 | } 32 | } 33 | 34 | return type; 35 | } 36 | 37 | bool IFileSystem::GetFileTypeForFullPath(char const *pFullPath, wchar_t *buf, size_t bufSizeInBytes) 38 | { 39 | static char charBuf[32]; 40 | GetFileType(pFullPath, charBuf); 41 | Q_UTF8ToUTF16(charBuf, buf, bufSizeInBytes, STRINGCONVERT_REPLACE); 42 | return false; 43 | } -------------------------------------------------------------------------------- /vgui2_support/vgui2/vgui_surfacelib/vguifont.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | //=============================================================================// 7 | 8 | #ifndef VGUIFONT_H 9 | #define VGUIFONT_H 10 | #ifdef _WIN32 11 | #pragma once 12 | #endif 13 | 14 | // Structure passed to CWin32Font::GetCharsRGBA 15 | struct newChar_t 16 | { 17 | #ifdef _WIN32 18 | char32_t wch; // A new character to generate texture data for 19 | #else 20 | wchar_t wch; // A new character to generate texture data for 21 | #endif 22 | int fontWide; // Texel width of the character 23 | int fontTall; // Texel height of the character 24 | int offset; // Offset into the buffer given to GetCharsRGBA 25 | }; 26 | 27 | #if defined(LINUX) || defined(OSX) || defined(_WIN32) 28 | #include "linuxfont.h" 29 | typedef CLinuxFont font_t; 30 | #elif defined(WIN32) 31 | #include "Win32Font.h" 32 | typedef CWin32Font font_t; 33 | #else 34 | #error 35 | #endif 36 | 37 | 38 | #endif //VGUIFONT_H -------------------------------------------------------------------------------- /Xcode-iOS/CSMoE-iOS/model/launcherdialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | launchdialog.h - iOS lauch dialog 3 | Copyright (C) 2019 MoeMod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #ifndef launcherdialog_h 17 | #define launcherdialog_h 18 | 19 | extern enum XashGameStatus_e 20 | { 21 | XGS_WAITING = 0, 22 | XGS_START, 23 | XGS_SKIP 24 | } g_iStartGameStatus; 25 | 26 | extern int g_iArgc; 27 | extern char **g_pszArgv; 28 | const char *IOS_GetDocsDir(); 29 | const char *IOS_GetBundleDir(); 30 | void IOS_SetDefaultArgs(); 31 | BOOL IOS_IsResourcesReady(); 32 | 33 | #endif /* launcherdialog_h */ 34 | -------------------------------------------------------------------------------- /engine/client/imgui_console.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_console.h 3 | Copyright (C) 2020 Moemod Haoyuan 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #pragma once 17 | 18 | #include "common.h" 19 | 20 | void ImGui_Console_Init(); 21 | void ImGui_Console_OnGUI(void); 22 | void ImGui_Console_Print(const char* txt); 23 | void ImGui_Console_Clear(); 24 | void ImGui_Console_UpdateCommandList(); 25 | void ImGui_ToggleConsole(qboolean x); 26 | int ImGui_Console_AddGenericString(int x, int y, const char* string, rgba_t setColor); 27 | void ImGui_Console_DrawStringLen(const char* pText, int* length, int* height); 28 | 29 | -------------------------------------------------------------------------------- /engine/client/vgui2_surface.h: -------------------------------------------------------------------------------- 1 | /* 2 | imgui_surface.cpp 3 | Copyright (C) 2022 Moemod Hymei 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #pragma once 17 | 18 | int VGUI2_Surface_GetCharWidth(int ch); 19 | int VGUI2_Surface_GetCharHeight(); 20 | int VGUI2_Surface_DrawConsoleString(int x0, int y0, const char* string, byte r, byte g, byte b, byte a); 21 | void VGUI2_Surface_DrawStringLen(const char* pText, int* length, int* height); 22 | void VGUI2_Surface_DrawStringLenUnicode(const wchar_t *ch, int* length, int* height); 23 | int VGUI2_Surface_DrawChar(int x, int y, int ch, byte r, byte g, byte b, byte a); -------------------------------------------------------------------------------- /SourceSDK/public/tier1/diff.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $NoKeywords: $ 6 | // 7 | // Serialization/unserialization buffer 8 | //=============================================================================// 9 | 10 | #ifndef DIFF_H 11 | #define DIFF_H 12 | #pragma once 13 | 14 | int FindDiffs(uint8 const *NewBlock, uint8 const *OldBlock, 15 | int NewSize, int OldSize, int &DiffListSize,uint8 *Output,uint32 OutSize); 16 | 17 | int FindDiffsForLargeFiles(uint8 const *NewBlock, uint8 const *OldBlock, 18 | int NewSize, int OldSize, int &DiffListSize,uint8 *Output, 19 | uint32 OutSize, 20 | int hashsize=65536); 21 | 22 | void ApplyDiffs(uint8 const *OldBlock, uint8 const *DiffList, 23 | int OldSize, int DiffListSize, int &ResultListSize,uint8 *Output,uint32 OutSize); 24 | 25 | int FindDiffsLowMemory(uint8 const *NewBlock, uint8 const *OldBlock, 26 | int NewSize, int OldSize, int &DiffListSize,uint8 *Output,uint32 OutSize); 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /cl_dll/vgui2/game_controls/ICSViewPortMsgs.h: -------------------------------------------------------------------------------- 1 | /* 2 | ICSViewPortMsgs.h - dumped interface from client.dll 3 | Copyright (C) 2019 Moemod Yanase 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | */ 15 | 16 | #pragma once 17 | 18 | class ICSViewPortMsgs 19 | { 20 | public: 21 | virtual int MsgFunc_ForceCam(const char *pszName, int iSize, void *pbuf) = 0; // *(_DWORD *)g_pCSViewPortMsgs 22 | virtual int MsgFunc_ScoreInfo(const char *pszName, int iSize, void *pbuf) = 0; // *(_DWORD *)g_pCSViewPortMsgs + 4 23 | virtual int MsgFunc_Location(const char *pszName, int iSize, void *pbuf) = 0; // *(_DWORD *)g_pCSViewPortMsgs + 8 24 | }; -------------------------------------------------------------------------------- /cl_dll/hud/followicon.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 | #pragma once 17 | #include 18 | 19 | #include "r_texture.h" 20 | namespace cl { 21 | class CHudFollowIcon : public CHudBase 22 | { 23 | public: 24 | int Init(void) override; 25 | int VidInit(void) override; 26 | void Reset(void) override; 27 | int Draw(float time) override; 28 | void Shutdown(void) override; 29 | 30 | public: 31 | int m_iBombTargetsNum; 32 | UniqueTexture m_pTexture_BombAB[2]; 33 | UniqueTexture m_pTexture_Supplybox; 34 | Vector m_vecBombTargets[2]; 35 | }; 36 | } -------------------------------------------------------------------------------- /cl_dll/vgui2/IGameUIPanel.h: -------------------------------------------------------------------------------- 1 | #ifndef IGAMEUIPANEL_H 2 | #define IGAMEUIPANEL_H 3 | 4 | #include 5 | 6 | /** 7 | * A panel that is part of the client's GameUI (pause menu). 8 | */ 9 | class IGameUIPanel 10 | { 11 | public: 12 | virtual ~IGameUIPanel() {} 13 | 14 | /** 15 | * @return identifer name 16 | */ 17 | virtual const char *GetName() = 0; 18 | 19 | /** 20 | * Clears internal state, deactivates it. Panel should look like it has just been created. 21 | */ 22 | virtual void Reset() = 0; 23 | 24 | /** 25 | * Activate VGUI Frame 26 | */ 27 | virtual void ShowPanel( bool state ) = 0; 28 | 29 | /** 30 | * Called when GameUI is shown 31 | */ 32 | virtual void OnGameUIActivated() = 0; 33 | 34 | /** 35 | * Called when GameUI is hidden 36 | */ 37 | virtual void OnGameUIDeactivated() = 0; 38 | 39 | // VGUI functions: 40 | 41 | /** 42 | * @return VGUI panel handle 43 | */ 44 | virtual vgui2::VPANEL GetVPanel() = 0; 45 | 46 | /** 47 | * @return true if panel is visible 48 | */ 49 | virtual bool IsVisible() = 0; 50 | }; 51 | 52 | #endif //IGAMEUIPANEL_H 53 | -------------------------------------------------------------------------------- /cl_dll/vgui2/csmoe/cstriketeammenu.h: -------------------------------------------------------------------------------- 1 | #ifndef CSTEAMMENU_H 2 | #define CSTEAMMENU_H 3 | 4 | #ifdef _WIN32 5 | #pragma once 6 | #endif 7 | 8 | #include "game_controls/teammenu.h" 9 | 10 | class CCSTeamMenu : public CTeamMenu 11 | { 12 | private: 13 | DECLARE_CLASS_SIMPLE(CCSTeamMenu, CTeamMenu); 14 | 15 | public: 16 | CCSTeamMenu(IViewport* pViewPort); 17 | ~CCSTeamMenu(void); 18 | 19 | public: 20 | void Update(void); 21 | bool NeedsUpdate(void) { return true; } 22 | void ShowPanel(bool bShow); 23 | void SetVisible(bool state); 24 | void UpdateGameMode(); 25 | 26 | private: 27 | enum { NUM_TEAMS = 3 }; 28 | 29 | private: 30 | void OnCommand(const char *command); 31 | void SetVisibleButton(const char *textEntryName, bool state); 32 | 33 | private: 34 | bool m_bVIPMap; 35 | 36 | public: 37 | virtual void PaintBackground(void); 38 | virtual void PerformLayout(void); 39 | virtual void ApplySchemeSettings(vgui2::IScheme *pScheme); 40 | virtual vgui2::Panel* CreateControlByName(const char* controlName); 41 | 42 | protected: 43 | void SetupControlSettings(); 44 | }; 45 | 46 | #endif -------------------------------------------------------------------------------- /SourceSDK/public/tier0/valve_off.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: This turns off all Valve-specific #defines. Because we sometimes 4 | // call external include files from inside .cpp files, we need to 5 | // wrap those includes like this: 6 | // #include "tier0/valve_off.h" 7 | // #include 8 | // #include "tier0/valve_on.h" 9 | // 10 | // $NoKeywords: $ 11 | //=============================================================================// 12 | 13 | 14 | #ifdef STEAM 15 | 16 | //----------------------------------------------------------------------------- 17 | // Unicode-related #defines (see wchartypes.h) 18 | //----------------------------------------------------------------------------- 19 | #undef char 20 | 21 | 22 | //----------------------------------------------------------------------------- 23 | // Memory-related #defines 24 | //----------------------------------------------------------------------------- 25 | #undef malloc 26 | #undef realloc 27 | #undef _expand 28 | #undef free 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /SourceSDK/public/mathlib/bumpvects.h: -------------------------------------------------------------------------------- 1 | //========= Copyright Valve Corporation, All rights reserved. ============// 2 | // 3 | // Purpose: 4 | // 5 | // $Workfile: $ 6 | // $Date: $ 7 | // $NoKeywords: $ 8 | //=============================================================================// 9 | 10 | #ifndef BUMPVECTS_H 11 | #define BUMPVECTS_H 12 | 13 | #ifdef _WIN32 14 | #pragma once 15 | #endif 16 | 17 | #include "mathlib/mathlib.h" 18 | 19 | #define OO_SQRT_2 0.70710676908493042f 20 | #define OO_SQRT_3 0.57735025882720947f 21 | #define OO_SQRT_6 0.40824821591377258f 22 | // sqrt( 2 / 3 ) 23 | #define OO_SQRT_2_OVER_3 0.81649661064147949f 24 | 25 | #define NUM_BUMP_VECTS 3 26 | 27 | const TableVector g_localBumpBasis[NUM_BUMP_VECTS] = 28 | { 29 | { OO_SQRT_2_OVER_3, 0.0f, OO_SQRT_3 }, 30 | { -OO_SQRT_6, OO_SQRT_2, OO_SQRT_3 }, 31 | { -OO_SQRT_6, -OO_SQRT_2, OO_SQRT_3 } 32 | }; 33 | 34 | void GetBumpNormals( const Vector& sVect, const Vector& tVect, const Vector& flatNormal, 35 | const Vector& phongNormal, Vector bumpNormals[NUM_BUMP_VECTS] ); 36 | 37 | #endif // BUMPVECTS_H 38 | --------------------------------------------------------------------------------