Monthly Target: $400 Donations: $131
 32% 

Critical Hit Modifier


Post New Thread Reply   
 
Thread Tools Display Modes
Author
pRED*
Join Date: Dec 2006
Plugin ID:
349
Plugin Version:
0.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    168 
    Plugin Description:
    Simple plugin to modify the chance of getting a critical hit
    Old 04-10-2008 , 17:07   Critical Hit Modifier
    Reply With Quote #1

    Simple plugin that lets you modify the chance of getting a critical hit.

    Cvars:

    sm_crits_enabled default: 1
    sm_crits_chance default: 1.00

    If enabled it will give you sm_crits_chance of getting a critical hit (default is 100% chance).

    I'll leave it up to other people to make more advanced critical editing, this is just an example.

    NB: This requires snapshot build 2016/2017 to run. Otherwise it won't do anything.

    NB2: As explained in the tf2 include file for the new forward, critical hits are decided client side for the firer and on the server. Since this can only modify the server result, the shooter will see their shot as being the original, not what it was modified to. Hits should show up correctly.
    Attached Files
    File Type: sp Get Plugin or Get Source (crits.sp - 15577 views - 920 Bytes)
    File Type: smx crits.smx (1.9 KB, 5495 views)

    Last edited by pRED*; 04-12-2008 at 20:12.
    pRED* is offline
    CrimsonGT
    Veteran Member
    Join Date: Oct 2007
    Location: Gainesville, FL
    Old 04-10-2008 , 17:14   Re: Critical Hit Modifier
    Reply With Quote #2

    Very nice! <3
    CrimsonGT is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 04-10-2008 , 21:50   Re: Critical Hit Modifier
    Reply With Quote #3

    hmmmm will this put me on the custom tab?
    __________________

    DontWannaName is offline
    BrutalGoerge
    SourceMod Donor
    Join Date: Jul 2007
    Old 04-10-2008 , 23:01   Re: Critical Hit Modifier
    Reply With Quote #4

    You can see the crits if you fire projectiles such as the demoman bombs and soldier rockets

    sm_crits_chance 1.00 actually gives you no crits
    sm_crits_chance 0 gives you 100%

    Works good though, just looks like you made something backwards in your code.
    __________________
    My Pluggies If you like, consider to me.

    Last edited by BrutalGoerge; 04-10-2008 at 23:14.
    BrutalGoerge is offline
    pRED*
    Join Date: Dec 2006
    Old 04-10-2008 , 23:40   Re: Critical Hit Modifier
    Reply With Quote #5

    Fixed.

    DontWannaName: nope.
    pRED* is offline
    BrutalGoerge
    SourceMod Donor
    Join Date: Jul 2007
    Old 04-10-2008 , 23:59   Re: Critical Hit Modifier
    Reply With Quote #6

    Is sm_crits_enabled meant to turn the plugin on/off, or turn crits on off?
    Cuz I think I got some crits with it set to 0.

    If someone can make some separate settings for melee crits, then I will love them forever.


    Excellent work though, I have been wanting a SM plugin like this since TF2 came out.
    __________________
    My Pluggies If you like, consider to me.

    Last edited by BrutalGoerge; 04-11-2008 at 00:03.
    BrutalGoerge is offline
    pRED*
    Join Date: Dec 2006
    Old 04-11-2008 , 00:19   Re: Critical Hit Modifier
    Reply With Quote #7

    It turns the plugin off, so it will go back to normal chances.
    pRED* is offline
    Peoples Army
    SourceMod Donor
    Join Date: Mar 2007
    Old 04-11-2008 , 00:41   Re: Critical Hit Modifier
    Reply With Quote #8

    gj pred defiantly nice plugin
    Peoples Army is offline
    WoZeR
    Donor
    Join Date: Nov 2007
    Old 04-11-2008 , 01:06   Re: Critical Hit Modifier
    Reply With Quote #9

    Quote:
    Originally Posted by Peoples Army View Post
    gj pred defiantly nice plugin
    I agree, I offered to host his babies.
    WoZeR is offline
    Dominator
    Senior Member
    Join Date: Mar 2008
    Old 04-11-2008 , 02:00   Re: Critical Hit Modifier
    Reply With Quote #10

    hey how come when I click to download the plugin it says it cannot be compiled?
    Dominator is offline
    Reply


    Thread Tools
    Display Modes

    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 03:47.


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