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

[TF2] tf_weapon_criticals 0 simulator


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FlaminSarge
Veteran Member
Join Date: Jul 2010
Plugin ID:
2845
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Simulates tf_weapon_criticals 0 on a server with tf_weapon_criticals 1. Useful for use with other plugins that depend on the CalcIsAttackCritical forward
    Old 03-20-2012 , 19:53   [TF2] tf_weapon_criticals 0 simulator
    Reply With Quote #1

    This plugin should no longer be needed as of SM 1.6 (or something).

    Basically just provides tf_weapon_criticals 0 while still allowing the TF2_CalcIsAttackCritical forward to fire.
    For use with any plugin that depends on that forward.

    Cvars (cvar default value : description):
    sm_tf_wep_crit_ver 1.2 : version number
    sm_tf_weapon_criticals 0 : Enable/disable criticals. Functions just like tf_weapon_criticals does.

    LEAVE tf_weapon_criticals 1 WHILE USING THIS PLUGIN.

    Changelog:

    Code:
    03/26/2012 (v1.2)
    *Now properly modifies sv_tags
    
    03/20/2012 (v1.1)
    *Fixed Gunslinger, charging crits.
    
    03/20/2012 (v1.0)
    *Initial release
    Previous total plugin views - 48
    Attached Files
    File Type: sp Get Plugin or Get Source (tf_weapon_criticals.sp - 1681 views - 3.6 KB)
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.

    Last edited by FlaminSarge; 07-27-2023 at 23:51.
    FlaminSarge is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 03-20-2012 , 21:04   Re: [TF] tf_weapon_criticals 0 simulator
    Reply With Quote #2

    Reserved, I guess.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 03-21-2012 , 01:05   Re: [TF] tf_weapon_criticals 0 simulator
    Reply With Quote #3

    Y U NO hook Weapon_ShootPosition intead of using TF2_CalcIsAttackCritical?
    Leonardo is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 03-21-2012 , 01:13   Re: [TF] tf_weapon_criticals 0 simulator
    Reply With Quote #4

    Because this plugin is specifically about criticals?

    And Weapon_ShootPosition has an issue with knives?
    I would mention gamedata, but eh.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 03-26-2012 , 07:33   Re: [TF] tf_weapon_criticals 0 simulator
    Reply With Quote #5

    This needs to add the required "nocrits" tag when enabled.
    Due to the risk of servers being delisted due to running this plugin, I have no choice but to unapprove it for now.
    __________________

    Last edited by asherkin; 03-26-2012 at 07:34.
    asherkin is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 03-26-2012 , 16:55   Re: [TF] tf_weapon_criticals 0 simulator
    Reply With Quote #6

    Fixed.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    cool_myll
    SourceMod Donor
    Join Date: Aug 2011
    Old 06-23-2013 , 12:50   Re: [TF2] tf_weapon_criticals 0 simulator
    Reply With Quote #7

    People complaining that they hear the crit sound now but there isnt any crit. Is it a sideeffect of the plugin?
    __________________
    cool_myll is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 06-24-2013 , 00:04   Re: [TF2] tf_weapon_criticals 0 simulator
    Reply With Quote #8

    It's possible, since some weapons calculate crits clientside as well for the sounds and animations. I'm not sure how to fix that, sadly. However, with an upcoming SM TF2 extension update (hopefully), this plugin will no longer be needed as TF2_CalcIsAttackCritical will work with crits disabled.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.

    Last edited by FlaminSarge; 06-24-2013 at 00:04.
    FlaminSarge is offline
    cool_myll
    SourceMod Donor
    Join Date: Aug 2011
    Old 06-24-2013 , 13:20   Re: [TF2] tf_weapon_criticals 0 simulator
    Reply With Quote #9

    Quote:
    Originally Posted by FlaminSarge View Post
    It's possible, since some weapons calculate crits clientside as well for the sounds and animations. I'm not sure how to fix that, sadly. However, with an upcoming SM TF2 extension update (hopefully), this plugin will no longer be needed as TF2_CalcIsAttackCritical will work with crits disabled.
    SM TF2 extension? Something you are working on? I wanted to try this to see if it fixes this bug?

    http://www.youtube.com/watch?v=LOY5S6ZW4HI

    MasteroftheXP suggested it here: http://forums.alliedmods.net/showpos...&postcount=198
    __________________
    cool_myll is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 06-24-2013 , 16:02   Re: [TF2] tf_weapon_criticals 0 simulator
    Reply With Quote #10

    http://bugs.alliedmods.net/show_bug.cgi?id=5576

    The Bazaar Bargain is weird.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge 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 20:24.


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