Code Monkey home page Code Monkey logo

swiftly_deathmatch's Introduction

SwiftlyLogo

[Swiftly] Deathmatch

A simple plugin for swiftly that implements the basic functionality of a Deathmatch/FFA server.

Downloads Contributors Issues License


Installation πŸ‘€

  1. Download the newest release.
  2. Everything is drag & drop, so i think you can do it!
  3. Setup database connection in addons/swiftly/configs/databases.json with the key swiftly_deathmatch like in the following example:
{
    "swiftly_deathmatch": {
        "host": "...",
        "username": "...",
        "password": "...",
        "database": "...",
        "port": 3306
    }
}

(!) Don't forget to replace the ... with the actual values !!

  1. While developing the plugin, I have been using a config with a few settings, that works for a basic Deathmatch/FFA server, if you want to use the same settings as me, use the provided cfg in the archive, if not, make your own settings (cvars).

Features ✨

  • Instant Respawning after death.
  • HP Regen on kill.
  • Ammo Refill on kill.
  • Choosing the guns through a menu (!guns) or through chat commands (!ak47, !m4a4, !m4a1, !deagle, etc)

Configuring the plugin 🧐

  • After installing the plugin, you should change the default prefix and the default translation messages from addons/swiftly/translations/translation.swiftly_deathmatch.json (optional).
  • To change the value of the HP Regen, edit addons/swiftly/configs/plugins/deathmatch.json.

How does it work? πŸ€”

  • When the player connects for the first time, it inserts a new field into the player_guns table in DB with the following structure: steamid, primarygun, secondarygun.
  • When a player chooses a weapon (from the guns menu or through a chat command), it inserts that gun into the DB (wheter it is a primary or a secondary weapon) and next time he reconnects on the server he will have that weapon, so no need for choosing the same weapon everytime you reconnect.

Plugins to use with πŸ’‘

  • swiftly_rank - It provides an smooth experience without any flaws and it is easy to install.
  • swiftly_removedefaultmessages - It removes the annoying default messages from the chat (such as joining a team, etc)

TODO πŸ›‘οΈ

  • Command Cooldown (will be done ASAP).
  • Killstreak messages in the chat.

Creating A Pull Request πŸ˜ƒ

  1. Fork the Project
  2. Create your Feature Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Open a Pull Request

Have ideas/Found bugs? πŸ’‘

Join Swiftly Discord Server and send a message in the topic from πŸ“•β•Žplugins-sharing of this plugin!

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.