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

[TF2] Random Melee Crits


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thesupremecommander
Member
Join Date: Apr 2012
Plugin ID:
4052
Plugin Version:
1.4.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
A plugin that can disable random crits on all weapons except for melee weapons.
Unapprover:
Reason for Unapproving:
Functionality now in game (tf_weapon_criticals_melee cvar)
Old 01-14-2014 , 16:43   [TF2] Random Melee Crits
Reply With Quote #1

Melee Random Crits
A plugin for SourceMod that can disable random crits on all weapons except for melee weapons.

Features
  • adds "no random crits" attribute to all non-melee weapons in order to allow weapons to function normally with crit boosts.

Usage

CVars
  • random_melee_crits_version - Melee Random Crits version
  • random_melee_crits_selection <0|1|2> - sets which weapons should be allowed to randomly crit (0: no weapons, 1: melee weapons, 2: all weapons)
  • random_melee_crits_debug - set whether the nocrit attribute is visible

Requirements
  • SourceMod
  • TF2Attributes
  • TF2Items
  • TF2ItemsInfo

Changelog

1.4.0 (2014-01-13)
  • made TF2Items a required dependency (fixes hooking errors)
  • fixed variable shadowing warning

1.3.2 (2014-01-12)
  • fixed nocrits tag not being set for only melee crits

1.3.1 (2014-01-12)
  • moved tag set to timer

1.3.0 (2014-01-12)
  • added handling of tf_weapon_criticals
  • added proper removal of attributes when switching states

1.2.0 (2014-01-07)
  • fixed race condition with TF2Items (bug in TF2Items?)
  • added debug
  • removed removal of attributes

1.1.0 (2014-01-07)
  • fixed plugin not using correct slot for melee
  • added nocrits tag when enabled
  • added enable/disable hook

1.0.1 (2013-10-02)
  • fixed documentation

1.0.0 (2013-10-02)
  • initial release

Installation
  1. Place plugins/random-melee-crits.smx in your plugins directory.

Download
  1. plugins/random-melee-crits.smx
  2. scripting/random-melee-crits.sp

Last edited by RedSword; 09-08-2015 at 12:29. Reason: Changing status from "Ready for review" to "(none)".
thesupremecommander is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 09-08-2015 , 12:28   Re: [TF2] Random Melee Crits
Reply With Quote #2

Quote:
Reason for Unapproving:
Functionality now in game (tf_weapon_criticals_melee cvar)
Changing status from "Ready for review" to "(none)".
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-08-2015 , 14:31   Re: [TF2] Random Melee Crits
Reply With Quote #3

Since this has been bumped anyway, you can replicate what this plugin did with these settings:

Code:
tf_weapon_criticals 0
tf_weapon_criticals_melee 2
For the second cvar:
Code:
Controls random crits for melee weapons. 0 - Melee weapons do not randomly crit. 1 - Melee weapons can randomly crit only if tf_weapon_criticals is also enabled. 2 - Melee weapons can always randomly crit regardless of the tf_weapon_criticals setting.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply



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:07.


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