Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Language: EN | RU

NextClient

Documentation index

NextClient extends Counter-Strike 1.6 for players and developers of server modifications using AMX Mod X. NextClient has integrated some features from csldr.

The official version of NextClient ships without a Steam emulator. The Next21 team does not develop one. The GitHub version requires a purchased copy of Counter-Strike 1.6 and a running Steam client.

Some antivirus engines flag NextClient binaries. These are heuristic false positives caused by runtime detouring of engine functions. Official builds are produced from the source code of this repository by GitHub Actions and carry a signed build provenance attestation. Details and false positive reporting: docs/reporting-av-false-positives.md.

Getting started

To work on the client source, follow the build and IDE setup guide.

Main features

  • Windows and Linux support (x86)
  • Protector - protects the client from malicious commands from the server
  • Ability to change the master server (the default ms is tsarvar.com)
  • Advanced video settings - FOV fix on 16:9 resolutions, ability to adjust FOV and separately adjust FOV for first person model
  • Advanced killfeed - support for advanced killfeed regamedll, displaying kill icons: through the wall, through smoke, without aiming, jumping, dominating, etc.
  • Advanced crosshair settings - added new crosshair types: dot, T-shaped, circle
  • Advanced radar - generated maps with automatic layer selection, player names, teammate health when provided by the server, movement trails, objective markers and a full-map view
  • Discord integration: current server, connecting and demo playback in the activity, and joining friends through Discord, including launching the game
  • 2 GUI schemes with the ability to change them through the settings, and the ability to add your own schemes without deleting the old ones
  • HTML interface support in GameUI based on CEF (Chromium Embedded Framework) with a JS API for interacting with the client (Windows only)
  • Display more than 255hp when using server module
  • Display number and size of remaining files, total file size and download speed when connected to the server
  • Color chat in console
  • Various improvements from csldr for viewmodel:
    • Adjustable origin
    • Alternative bob from CS:GO 1.0.0.40
    • Sway/lag
    • Viewmodel shifting can be disabled
    • Client-side weapon inspecting
    • Bone controlled camera movement

Features for AMX Mod X developers

  • Cvars sandbox, the ability to change cvars for a client (from a limited list) while a client is on the server
  • Killfeed customization
  • Sprite API, control of sprites on the screen
  • Extended FOV message
  • Support for viewmodel effects
  • Weapon sound replacement
  • Mouse inversion
  • Client verification and hardware ID (HWID) request
  • Client platform reporting (Windows or Linux) through the NextClient server API
  • Separate precache for regular cs 1.6 client and NextClient
  • Precache of hud.txt and other standard resources

New cvars

Click to expand
Cvar name Default value Available in sandbox* Description
viewmodel_disable_shift 0 Yes Disable viewmodel shifting (when looking up or down).
viewmodel_offset_x 0 Yes
viewmodel_offset_y 0 Yes
viewmodel_offset_z 0 Yes
camera_movement_scale 1.0 Yes Camera movement scale.
camera_movement_interp 0 Yes Smooths out camera movement when switching weapons. Recommended value is 0.1. Set to 0 to disable smoothing.
viewmodel_fov 90 Yes Min: 70
Max: 100
cl_crosshair_type 0 Yes Crosshair type. 0 - crosshair, 1 - T-shaped, 2 - circle, 3 - dot.
cl_bob_camera 1 Yes View origin bob, does nothing with cl_bobstyle 2.
cl_bobstyle 0 Yes 0 for default bob, 1 for old style bob and 2 for CS:GO style bob.
cl_bobamt_vert 0.13 Yes Vertical scale for CS:GO style bob.
cl_bobamt_lat 0.32 Yes Lateral scale for CS:GO style bob.
cl_bob_lower_amt 8.0 Yes Specifies how much the viewmodel moves inwards for CS:GO style bob.
cl_rollangle 0 Yes Screen roll angle when strafing or looking (Quake effect).
cl_rollspeed 200.0 Yes Screen roll speed when strafing or looking (Quake effect).
viewmodel_lag_style 0 Yes Viewmodel sway style. 0 is off, 1 is HL2 style and 2 is CS:S/CS:GO style.
viewmodel_lag_scale 1.0 Yes Scale of the viewmodel sway.
viewmodel_lag_speed 8.0 Yes Speed of the viewmodel sway. (HL2 sway only)
fov_horplus 0 No Enables Hor+ scaling for FOV. Fixes the FOV when playing with aspect ratios besides 4:3.
fov_angle 90 No (use ncl_setfov instead) Min: 70
Max: 100
fov_lerp 0 No (use ncl_setfov instead) FOV interpolation time in seconds.
hud_deathnotice_max 5 Yes The maximum number of killfeed entries that can be displayed.
hud_deathnotice_old 0 No Enable the old style of killfeed.
http_max_active_requests 5 No
http_max_requests_retries 3 No
cl_discordrpc 1 No Show what you're playing in Discord.
cl_discordrpc_server 1 No Show the server name in Discord. When 0, friends can't join you either.
cl_discordrpc_join 1 No Let Discord friends join your server.
hud_radar_mode 1 No Radar mode: 0 - classic, 1 - advanced.
hud_radar_scale 1.15 No Radar size. Min: 0.5
Max: 3.0
hud_radar_map_scale 0.8 No Map zoom. Min: 0.25
Max: 3.0
hud_radar_map_shift 0 No Shift the map near its edges to keep the player marker inside the radar.
hud_radar_opacity 100 No Map and background opacity, from 0 to 100 percent.
hud_radar_round 1 No Radar shape: 0 - square, 1 - round.
hud_radar_fullmap 1 No Show the full map while the scoreboard is open.
hud_radar_shift_scoreboard 1 No Shift the scoreboard to make room for the radar.
hud_radar_rotate 1 No Rotate the map with the view direction.
hud_radar_names 0 No Show player names.
hud_radar_health 0 No Show teammate health bars when the server provides HealthInfo data.
hud_radar_tracks 0 No Show teammate movement trails.
hud_radar_map_mode 5 No Map source: 1 - overview, 5 - generated textured layers, 6 - generated flat layers.
hud_radar_map_mask 1 No Clip the overview map to the radar shape.
hud_radar_map_smoothing 0 No Smooth the edges of generated map geometry.
hud_radar_bg 0 No Radar background: 0 - black, 1 - blurred game image.
hud_radar_health_size 1.0 No Health bar size. Min: 0.3
Max: 4.0
hud_radar_name_size 0.8 No Player name size. Min: 0.6
Max: 2.0
hud_radar_allies 1 No 1: show teammates whose data was sent by the server; 0: also require line of sight.

*Can the server change the value of a cvar using the cvars sandbox feature.

Console commands

Command Purpose
toggle <command> <value1> <value2> [value3...] Applies the specified values to a command in sequence, returning to the first after the last.
+toggle <command> [<held> <released>] Applies one value while a key is held and another when released. The values default to 1 and 0 respectively.
bindlist Prints all key bindings to the console.
lookat Inspects the weapon; bound to V by default.
next_version Prints the NextClient build version and module versions.

Examples:

bind "F6" "toggle hud_radar_mode 0 1"
bind "F7" "+toggle hud_radar_names"
bindlist

Installation

Windows

Automatic installation

Download NextClient-<tag>-setup.exe from the releases and follow the installation wizard.

Manual installation

  1. NextClient requires engine build 8684. Select the "steam_legacy - Pre-25th Anniversary Build" beta branch in Steam and use the official game files.
  2. Copy the entire Counter-Strike 1.6 (Half-Life) folder to a separate folder outside of the Steam folder
  3. Copy all NextClient files to the folder where you copied all the CS 1.6 files
  4. Start Steam.
  5. Run the game via cstrike.exe

Linux

Requirements for GitHub Actions archives:

  • x86_64 Linux with 32-bit x86 execution support and 32-bit glibc 2.43 or later.
  • 32-bit C++ runtime libraries: on Ubuntu, the packages are libstdc++6:i386 (libstdc++.so.6 with GLIBCXX_3.4.32 or later) and libgcc-s1:i386 (libgcc_s.so.1).
  • Installed and running Steam, its Steam Runtime, and native Linux game files from the steam_legacy branch.
  • 32-bit SDL2 and OpenGL driver libraries. The advanced radar requires OpenGL 2.1 and framebuffer object support (GL_ARB_framebuffer_object or OpenGL 3.0 or later).

Install the 32-bit C++ runtime libraries on Ubuntu:

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libstdc++6:i386 libgcc-s1:i386

Installation:

  1. Select the "steam_legacy - Pre-25th Anniversary Build" beta branch in Steam and install the native Linux version of the game.
  2. Copy the entire Counter-Strike 1.6 (Half-Life) folder to a separate folder outside of the Steam folder.
  3. Extract the archive into the folder where you copied all the CS 1.6 files, replacing files. The root of that folder must contain hw.so, cstrike.exe and nextclient.sh.
  4. Start Steam.
  5. In a terminal, enter the copied game folder, set executable permissions and run the script:
cd "/path/to/Half-Life-NextClient"
chmod +x nextclient.sh cstrike.exe
./nextclient.sh

nextclient.sh runs the native Linux client through the Steam Runtime. It finds the runtime in regular and Snap Steam installations. Arguments are passed to the game, for example ./nextclient.sh -windowed.

Use a separate game copy outside the Steam folder. Installing NextClient in Steam's managed game folder risks a VAC ban.

Changing the master server

The configuration file is platform\config\MasterServer.vdf.

"MasterServer"
{
   "Selected"     "1"       // Item number from the Servers section. Numbering starts from 0.
   "CacheServers" "false"   // In case the master server is unavailable, the servers will be taken from the cache.
                            // The cache contains servers from the last request that was fully completed.
   "Servers"
   {
      "Steam"
      {
         "address" "hl1master.steampowered.com:27011" // Master server address.
         "site"    ""       // Not used.
         "region"  "0x03"   // Region code, see https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol#Region_codes.
      }
      "Tsarvar"
      {
         "address" "ms.tsarvar.com:27010"
         "site"    "https://tsarvar.com/"
         "region"  "0xFF"
      }
   }
}

Thanks

Thanks to everyone who supports the project with bug reports, suggestions and words of encouragement.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages