Giter Club home page Giter Club logo

himenekocn / csgo2_tiny_server_plugin_system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huoji120/csgo2_tiny_server_plugin_system

0.0 1.0 0.0 23.99 MB

a server plugin system for cs2 server,power by lua

Home Page: https://forums.alliedmods.net/showthread.php?t=344182

License: GNU Affero General Public License v3.0

Shell 5.03% C++ 62.52% Python 6.45% C 10.33% Emacs Lisp 0.06% Java 11.16% Assembly 0.02% Makefile 3.91% CMake 0.13% Batchfile 0.03% M4 0.33% Vim Script 0.03%

csgo2_tiny_server_plugin_system's Introduction

about this project

name: "cs2 server plugin system"
author: "huoji"
description: "a server plugin system for cs2 server,power by lua"
note:

This is only experimental, with the aim of filling in the gap before the release of source2mod. Please do not treat it as a long-term plugin, and I will not provide support 

credit

https://github.com/alliedmodders/hl2sdk/
https://github.com/Source2ZE/CS2Fixes/
https://github.com/bruhmoment21/cs2-sdk/
https://github.com/neverlosecc/source2sdk

feature list

  1. lua plugin system
  2. metamod compatible
  3. vscript patch, support vscript plugin and vscript compatible
  4. http/https request method

warning

The loader has injection behavior, and I cannot guarantee whether it will be marked by VAC (I am not sure if the server has VAC protection). I am not responsible for this

also, the loader will be recognized as a malicious program by antivirus software because injection behavior

Usage

  1. use vs2019 compile csgo2.dll and loader.exe
  2. create a config.json in loader.exe directory:
{
  "servers": [
    {
        "dll": "your path in csgo2.dll in vs2019 complie",
        "path": "path for cs2.exe",
        "command": "cs2.exe server run command"
    }
  ]
}

example:

{
  "servers": [
    {
      "dll": "C:\\Users\\Administrator\\Desktop\\loader\\csgo2.dll",
      "path": "C:\\Program Files (x86)\\steam\\steamapps\\common\\Counter-Strike Global Offensive\\game\\bin\\win64\\cs2.exe",
      "command": "-ip 0.0.0.0 -dedicated -game csgo -console -usercon +game_type 0 +game_mode 0 +mp_maxrounds 30 -maxplayers_override 64 +exec server.cfg +exec gamemode_retakecasual.cfg +map de_dust2 +mp_endmatch_votenextleveltime 20 +mp_endmatch_votenextmap 1 +hostname xxxxxx"
    }
  ]
}

  1. run loader.exe as administrator, cs2 server will start
  2. create huoji_scripts in cs2.exe dirctory
  3. create plugin dirctory name ,like funny_trash is my plugin name
  4. put your own plugin script in you plugin dircory name

Test Plugin

api and plugin example: https://github.com/huoji120/cs2_funny_trash_plugin

csgo2_tiny_server_plugin_system's People

Contributors

huoji120 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.