Giter VIP home page Giter VIP logo

ttt-laststand's Introduction

ttt-laststand

NOTICE: This Addon only works for the "Trouble in Terrorist Town" and "TTT2" gamemodes.

Features

This is a passive feature for TTT. When an Innocent is last alive, they can wait out an amount of time (configurable) and have a chance (configurable) to become a Detective.

ConVars

  • ttt_laststand_enable (def: 1) - Is the Last Stand feature enabled?
  • ttt_laststand_chance (def: 1.0) - Chance the last Innocent will become a Detective. (0.0 - 1.0)
  • ttt_laststand_time (def: 60) - Time (seconds) the Innocent must wait before becoming a Detective.
  • ttt_laststand_credits (def: 2) - Number of credits the Innocent will receive upon becoming a Detective.
  • ttt_laststand_multiple (def: 0) - Can more than one Innocent be turned into a Detective per round? (Ex: If a new Detective revives somebody and then dies.)
  • ttt_laststand_strict (def: 0) - Do Innocents become a Detective if they killed an Innocent last?

Server Infos

Add it to your server by following this guide: http://wiki.garrysmod.com/page/Server/Workshop

You can add the following items to your translation file, to translate this addon:

  • "laststand_name"
  • "laststand_alert"
  • "laststand_block"
  • "laststand_update"
  • "laststand_survived"
  • "laststand_cancel"

Source

The whole source code can be found on GitHub, feel free to contribute.

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.