Giter VIP home page Giter VIP logo

stamina's Introduction

TF2 Stamina Sprinting

IMAGE ALT TEXT HERE

Description

Allows players to sprint using a stamina meter by double tapping w (forward button).

Requirements

Plugin for Team Fortress 2
Requires Sourcemod 1.8+ and Metamod 1.10+

Convar settings

sm_stamina_enabled - Enables/Disables stamina sprinting.
sm_stamina_speed - Speed increase value when sprinting.
sm_stamina_class - Bit-Wise operation to determine which class can sprint.
sm_stamina_drain - How fast to drain stamina, 0.1 is fastest.
sm_stamina_regen - How fast to regenerate stamina, 0.1 is fastest.
sm_stamina_hudx - X coordinate of HUD display.
sm_stamina_hudy - Y coordinate of HUD display.
sm_stamina_team - 0 - None, 1 - Both, 2 - Red, 3 - Blue.

Installation

1. Place stamina.smx to addons/sourcemod/plugins/
2. Place stamina.cfg to cfg/sourcemod/ and edit your convars to fit your needs

Class Type Bit-Wise

Scout =		1
Sniper =	2
Soldier =	4
Demoman =	8
Medic =		16
Heavy =		32
Pyro =		64
Spy =		128
Engineer =	256

To use sm_stamina_class, add the values of whatever class you want stamina sprinting to work for 
For example if i wanted only pyro and medic to have stamina sprinting, i would add 64 + 16 = 80
I would then set sm_stamina_class 80 
511 will enable all class to use stamina sprinting

Overrides

This plugin is enabled for all clients who joins the server
If you want to limit this to an admin flag then set your admin overrides to 
sm_stamina_override

Plugin must be reloaded if you change the override.

stamina's People

Stargazers

 avatar

Watchers

 avatar

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.