RepositoryC#AUÚc
roflmuffin

roflmuffin/CounterStrikeSharp

CounterStrikeSharp allows you to write server plugins in C# for Counter-Strike 2/Source2/CS2

1.4ksao
260fork
97issue
2lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: metamod-source

#1 Repository của tuần

2
TINIX TRENDING·Chủ đề: counter-strike-2

#2 Repository của tuần

2
TINIX TRENDING·Chủ đề: source2

#2 Repository của tuần

🔫 Viết plugin C# cho CS2 server một cách hiện đại

CounterStrikeSharp là một khung modding server-side cho Counter-Strike 2, dựa trên .NET 8 và Metamod:Source, cho phép phát triển plugin bằng C#.

CounterStrikeSharp là một khung modding cho phía server của Counter-Strike 2. Dự án xây dựng một lớp scripting .NET 8 lên trên Metamod Source Plugin, cho phép các nhà phát triển tạo ra các plugin tương tác với máy chủ game bằng ngôn ngữ hiện đại là C#, từ đó hỗ trợ viết mã dễ bảo trì và kiểm thử.

✨ Điểm nổi bật

  • Lệnh console & server: hỗ trợ đăng ký và xử lý lệnh như css_mycommand
  • Lệnh chat: xử lý lệnh từ prefix ! hoặc /
  • Fake ConVars: mô phỏng biến console chưa được reverse engineering đầy đủ
  • Xử lý sự kiện game: lắng nghe và phát sự kiện như player_death
  • Timer dựa tick: tạo timer lặp lại theo thời gian game
  • Listener kết nối người dùng: theo dõi kết nối, ngắt kết nối, bắt đầu bản đồ
  • Truy cập Schema: đọc/ghi thông tin người chơi như vũ khí, tiền, vị trí

💡 Vì sao đáng chú ý

CounterStrikeSharp không chỉ là một công cụ modding đơn thuần — nó mang C# và .NET 8 vào môi trường Source 2, nơi thường chỉ có C++. Điều này mở ra khả năng viết plugin dễ đọc, dễ test và tích hợp thư viện bên thứ ba như SQLite. Dự án còn cung cấp ví dụ thực tế như plugin Warcraft, cho thấy tiềm lực xử lý sự kiện, lệnh và thực thể (entity).


#CounterStrike2 #CSharp #MetamodSource #Source2 #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC#
nickj609/GameModeManager

A Counter-Strike 2 server plugin to help administrators manage custom game modes, settings, and map rotations.

72
Nov 23, 2026
RepositoryRust
LaihoE/demoparser

Counter-Strike 2 replay parser for Python and JavaScript

750
Nov 29, 2026
RepositoryC#
shobhit-pathak/MatchZy

MatchZy is a plugin for CS2 (Counter Strike 2) for running and managing practice/pugs/scrims/matches with easy configuration and Get5 (G5API/G5V) support as well!

510
Nov 13, 2026
RepositoryC#
B3none/cs2-retakes

CS2 implementation of retakes. Based on the version for CS:GO by Splewis.

323
Nov 25, 2026
RepositoryC#
antonpup/CounterStrike2GSI

A C# library to interface with the Game State Integration found in Counter-Strike 2.

185
Nov 18, 2026
RepositoryC#
ianlucas/cs2-css-inventory-simulator

A CounterStrikeSharp plugin for integrating with CS2 Inventory Simulator

149
Nov 18, 2026
RepositoryC#
samyycX/CS2-PlayerModelChanger

A lightweighted counterstrikesharp plugin to change player model.

138
Oct 9, 2026
RepositoryRust
Valthrun/valthrun-cs2

Valthrun an open source external CS2 read only kernel gameplay enhancer.

817
Oct 6, 2026
RepositoryC++
IMXNOOBX/cs2-external-esp

Simple external ESP for Counter-Strike 2, after many years, the codebase has been modernized for clarity and ease of use, with a redesigned interface, noticeable performance improvements, and several new quality-of-life features.

636
Nov 18, 2026