Giter Site home page Giter Site logo

crimsontautology / sm-weapon-only Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 46 KB

Fistful of Frags plugin that forces players to use only a certain type of weapon

License: GNU General Public License v3.0

SourcePawn 71.13% Makefile 28.87%
sourcemod sourcepawn fistful-of-frags

sm-weapon-only's Introduction

sm-weapon-only

Build Status GitHub stars GitHub issues GitHub pull requests GitHub All Releases

Fistful of Frags plugin to force players to use one type of weapon only. Allows for dual wielding the same type of weapon.

Requirements

Installation

Make sure your server has SourceMod installed. See Installing SourceMod. If you are new to managing SourceMod on a server be sure to read the 'Installing Plugins' section from the official SourceMod Wiki.

Download the latest release and copy the contents of addons to your server's addons directory. It is recommended to restart your server after installing.

To confirm the plugin is installed correctly, on your server's console type:

sm plugins list

Optional: Make a new directory on your server custom/hl2weapons and the copy the contents of scripts to it to enable Half Life 2 weapons. These weapons are extremly buggy so do this at your own risk.

Usage

Commands

NOTE: All commands can be run from the in-game chat by replacing sm_ with ! or /. For example sm_rtv can be called with !rtv.

Command Accepts Values SM Admin Flag Description
sm_only None None Slay Set to one type of weapon only.
sm_give None None Slay Give yourself a weapon

Console Variables

Command Accepts Values Description
sm_weapon_only boolean 0-1 Set to 1 to enable the weapon only plugin
sm_weapon_only_weapon string weapon_* The class name of the weapon (e.g. weapon_remington_army)

Compiling

If you are new to SourceMod development be sure to read the 'Compiling SourceMod Plugins' page from the official SourceMod Wiki.

You will need the spcomp compiler from the latest stable release of SourceMod. Download it from here and uncompress it to a folder. The compiler spcomp is located in addons/sourcemod/scripting/; you may wish to add this folder to your path.

Once you have SourceMod downloaded you can then compile using the included Makefile.

cd sm-weapon-only
make SPCOMP=/path/to/addons/sourcemod/scripting/spcomp

Other included Makefile targets that you may find useful for development:

# compile plugin with DEBUG enabled
make DEBUG=1

# pass additonal flags to spcomp
make SPFLAGS="-E -w207"

# install plugins and required files to local srcds install
make install SRCDS=/path/to/srcds

# uninstall plugins and required files from local srcds install
make uninstall SRCDS=/path/to/srcds

Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

GNU General Public License v3.0

sm-weapon-only's People

Contributors

crimsontautology avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

sm-weapon-only's Issues

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.