GithubHelp home page GithubHelp logo

deafps / cs2-pug-lua Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 1.0 219 KB

A Counter-Strike: 2 Server Pug & Prac plugin written in LUA

Home Page: https://x.com/DEAFPS_

Lua 100.00%
cs2 lua source2 vscript metamod

cs2-pug-lua's Introduction

A Counter-Strike: 2 Server Pug & Prac plugin written in LUA

⚠ This Lua project will not receive any more features due to the limitations of the Lua API! Lua VScript is intentionally disabled by Valve! It is expected to be replaced by Pulse in the future, and will likely be completely removed from the game when that happens. Depend on Lua at your own risk.

alt text

Dependencies

This plugin requires unlocking LUA VScript!

Lua Unlocker MetaMod Plugin: https://github.com/Source2ZE/LuaUnlocker

Lua Patcher (use if you are not using MetaMod, and make sure your server runs -insecure): https://github.com/bklol/vscriptPatch

Installing

  • Unzip into your servers game/csgo folder and
  • Add exec dea_pugplugin to your servers gamemode cfg (e.g. gamemode_competitive.cfg)

Configuration

  • To configure the plugin head to game/csgo/scripts/vscripts/pug_cfg.lua

    Feel free to change the variables to what you desire! Make sure to read their --comments

    ⚠ Disable autokickOnMapChange if your server crashes after using changemap

  • To whitelist players add their SteamID3 to the allowedPlayers table in whitelist.lua

  • To add admins edit the adminPlayers table in pug_cfg.lua

  • To add custom nade lineups for the Pracc mode navigate to game/csgo/cfg/dea_pugplugin_praccnades.cfg and follow the example given there

Admin Commands

  • adminhelp --Prints these commands into chat
  • adminsay hello --Prints a message in chat with a admin nametag
  • startpug --Starts the pug
  • pausepug --Pauses the pug
  • unpausepug --Unpauses the pug
  • restartpug --Compleatly restarts the pug
  • scramble --Shuffles teams
  • rewarmup --Restarts warmup phase
  • pugkick id --Kicks the player (use status to get the player id you want to kick)
  • changemap de_dust2 --Changes map

Pracc Commands

  • pracc --Enables pracc mode
  • pracchelp --prints these commands in chat
  • savenade "mynade" "type" "description" --Saves a nade lineup with the given name, description and type. Valid types: smoke, he, falsh, molly
  • loadnade mynade --Loads a nade lineup
  • importnade "code" --Imports a nade from a nade code
  • allsmoke --Shows all saved smokes
  • allmolly --Shows all saved molotovs
  • allhe --Shows all saved HE nades
  • allflash --Shows all saved flashes

Author

@DEAFPS_

cs2-pug-lua's People

Contributors

crashzk avatar deafps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ferks-fk

cs2-pug-lua's Issues

improvements

add the .ready or .r command, such as .pause, .unpause.
add knife round on the start to define what team will be CT or T
add infinity money on warmup

Round knife system

Would it be possible to implement a round knife system? So the winner of the knife round chooses the team he wants to play, CT or TR via chat, command.

Cannot use any commands

Hey, i installed an clean server with the files you said required and also your pug files but commands is not working

Error when I'm joining the server

Hi,

When I'm joining the server I get this error Script Runtime Error: /home/container/game/csgo/scripts/vscripts/dea.lua:394: attempt to call method 'TimerExists' (a nil value) stack traceback: /home/container/game/csgo/scripts/vscripts/dea.lua:394: in function </home/container/game/csgo/scripts/vscripts/dea.lua:390> in my server console and that timer with Waiting for players doesn't work.

Thanks for your time.

Can you add this features?

  1. Can you add a function that will show the player is ready after using the player_ping command in the chat.
    For example:
    [after use player_ping] Player1 is ready!
    [If he uses it again] Player1 is not ready!

  2. And can you add autokick for afk players and penalties for left the game after it starts like ban for 5-10-20 minutes

  3. Please add pugban command

Support colored messages with LuaHudcoreCS2

It would be possible to implement color support in messages using LuaHudcoreCS2?

I know that currently the script already supports colored messages, but using LuaAdvertCS2 we have a conflict with the message prefix, the message prefix is ​​duplicated.

image

Then, if I deactivate the CS2 PUG Lua script, the message prefixes become normal again.

Anyway, I believe that adding support for making messages colored by LuaHudcoreCS2 will solve the problem. Or would there be a simpler fix?

Default CS2 Movement Settings

Hi, how can i configure this plugin to default cs2 movement settings?
Cuz the "VNL" in your config seems to be weird i think, players moving so fast

Suggestions:

Hi, I wanted to see if you could add a knife only round and have the winner choose sides (CT OR TT).

Set text when you perform an action

Hi, I wanted to see if you could add text when logging in some command for example:
adminlogin pw -> You are logged in as admin correctly

Activate or not a cut round before pug

Hello, I tested and configured your plugin on my server, it is excellent.

I tried to be able to integrate the possibility of adding or not a cut round, then that the winners choose to stay or change and that the match begins but I don't know much about it.

I saw that this topic had already been discussed

But I think it's possible with choices for the cutround winners directly in the chat, for example written 1 (CT's) or written 2 (T's)
So with this choice
If 1 player (winner of the cutround) writes 1 and is already CT's, the pug starts otherwise changes team then the pug starts

I saw a plugin that uses this technique for a votemap where 1 corresponds to the first map of the mapcycle so if 1 = de_dust2 if I write 1 at the time of voting (choice of the map) I vote for de_dust2

It's the same for the cutround knowing here that 1 will always be in the choices the CT's, you compare the choice, if is the same team no switch otherwise switch, then the pug starts :)

Best regard

Ready tag

players cant see who ready and who not ready, so please show [ready] rdy notready etc tags on scoreboard or chat please,
and goodluck its so good pl.

Can't connect to the server if i load the script

Hi
Im having if this issue, if i load the pug lua script everyone cant join the server

Example:
[#4065060375 UDP steamid:[email protected]:63649] closed by app, linger requested but not needed (2039) NETWORK_DISCONNECT_KICKED
Removing Steam Net Connection for 27.79.208.223:63649, handle #4065060375
CloseSteamNetConnection handle #4065060375 (userdata -1)
Removing Steam Net Connection for 27.79.208.223:63649, handle #4065060375

When i connect it just and then turn back to the main screen of the game
Can you help me fix this, thank you!

Fixed waiting for players message

Message waiting for players, would it be possible to leave it fixed in the HUD message?

image

The chat message would remain in the flood, but the HUD Center message would remain fixed until the 10 players were ready and the pug began.

It would be possible? I believe this makes it easier for the player to identify how many players are missing and such.

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.