Coder Social home page Coder Social logo

scp-tranquilizergun's Introduction

Tranquilizer Gun

A custom weapon plugin for SCP:SL Smod2 servers that adds a tranquilizer gun. When a player is shot, they are temporarily ragdolled for the duration of the tranquilization. This gun has a configurable limited amount of uses and magazine size, as well as further configurations for weapon damage and fire rate.

Installation

  • Smod2 must be installed for this to work.
  • ItemManager must be installed for this to work.
  1. Grab the latest release of TranquilizerGun.
  2. Place TranquilizerGun.dll in your server's sm_plugins folder.

Commands

Command Description
IMGIVE <playerID> 105 Gives a tranquilizer gun to the player identified by playerID.

Configuration

Config Option Value Type Default Value Description
tranqgun_enable Bool True Whether TranquilizerGun should be enabled on server start.
tranqgun_use_ghostmode Bool False Instead of teleporting players to the void, make them invisible for the duration of tranquilization. REQUIRES SM_ENABLE_GHOSTMODE
tranqgun_damage Int 0 Damage dealt by the tranquilizer gun.
tranqgun_firerate Float 3 Time (in seconds) between each shot. Can be ignored with magazine size of 1.
tranqgun_magazine Int 1 Amount of shots per magazine.
tranqgun_reserveammo Int 2 Default reserve ammo for each player.
tranqgun_duration Float 5 Time (in seconds) the target is tranquilized for.
tranqgun_spawns RList 096chamber RList of locations to spawn the gun. Valid locations are: 049chamber, 096chamber, 173armory, surfacenuke, nuke, bathrooms.

*Note that all configs should go in your server config file, not config_remoteadmin.txt

Place any suggestions/problems in issues!

scp-tranquilizergun's People

Contributors

neonwizard avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

joker-119

scp-tranquilizergun's Issues

Having trouble working the plugin

hi i have followed the instructions to install the mod placing the .dll into the sm_plugins folder however i dont believe the plugin is actually working despite the fact that i have another plugin installed that actually tells me which plugins are active on my server both this and item manager come up as active.

my main reason for beleiving that the plugin is not working is due to the fact that the imgive command keeps coming up as does not exit that and i cant find the tranqgun anywhere in game, ,y server is hosted on zap hosting so im not sure if perhaps that is the issue here but any help would be greatly appreciated

Valid Spawn Locations not working

Hello!

I tried using the plugin but when I use any of the listed valid locations for spawning it says in console that its not a valid location so im not sure what im doing wrong if I am.

Tranquilized players survive nuke

If a player is tranquilized when the nuke detonates, they will evade the damage and wake up in the nuked facility. When a player wakes up, check if facility is detonated and if their position is within the facility.

New feature

SCP can be tranquilized by one shot.
How to make it random? Or make what SCPs need more shots to be tranquilized.

IMGIVE command doesn't work

I tried to add the Tranq gun to myself but it said that it doesn't exist, but the gun can be found in SCP-096's chamber. I use the steam tool and MultiAdmin typed out 2 warnings:
[WARN] [xyz.wizardlywonders.TranquilizerGun] Trying to access a config setting that isn't registered to the plugin, this is bad practice.
[WARN] [DEFAULT_CONFIG_RESOLVER] Default setting for config SM_ENABLE_GHOSTMODE does not exist

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.