Raised This Month: $51 Target: $400
 12% 

[TF2] Stamina Sprinting v.1.2 [4/29/2017]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Plugin ID:
5515
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Allows sprinting using a stamina meter
Old 02-04-2017 , 18:20   [TF2] Stamina Sprinting v.1.2 [4/29/2017]
Reply With Quote #1

[TF2] Stamina Sprinting v.1.2


Introduction:
Quote:
Allows players to sprint using a stamina meter by double tapping w (forward button).
You can set how fast the stamina meter drains/regenerate and which class can use the sprint feature.
Installation:
Quote:
  • Download and drag files to correct directories
  • smx files goes to addons/sourcemod/plugins folder and .cfg files goes to cfg/sourcemod
  • Set up your configuration in cfg/sourcemod
  • Double tap w (forward key) and hold to sprint
  • Profit!
Dependency:
Quote:
  • Sourcemod 1.8+
  • Metamod 1.10+
  • Morecolors to compile
Convars:
Quote:
  • sm_stamina_enabled (default: 1) - Enables/Disables stamina sprinting.
  • sm_stamina_speed (default: 1.75) - Speed increase value when sprinting. (1.0 is normal speed)
  • sm_stamina_drain (default: 0.1) - How fast to drain stamina, 0.1 is fastest.
  • sm_stamina_regen (default: 0.5) - How fast to regenerate stamina, 0.1 is fastest.
  • sm_stamina_hudx (default: 0.0) - X coordinate of HUD display.
  • sm_stamina_hudy (default: 1.0) - Y coordinate of HUD display.
  • sm_stamina_class (default: 511) - Bit-Wise operation to determine which class can sprint.
  • sm_stamina_team (default: 1) - Which team can use sprinting, 0 - None, 1 - Both, 2 - Red, 3 - Blue.
Class Type Bit-Wise:
Quote:
Code:
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:
Quote:
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.
Changelog:
Quote:
1.2 -
  • Code cleanup
  • Added license file
1.1 -
  • Added sm_stamina_team to determine which team sprint
  • Added IsPlayerAlive check for OnPlayerRunCmd forward
1.0 - Released
Download
Source
__________________

Last edited by Chaosxk; 04-29-2017 at 15:52.
Chaosxk is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode