AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Critical Hit Modifier (https://forums.alliedmods.net/showthread.php?t=69743)

pRED* 04-10-2008 16:07

Critical Hit Modifier
 
3 Attachment(s)
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.

CrimsonGT 04-10-2008 16:14

Re: Critical Hit Modifier
 
Very nice! <3

DontWannaName 04-10-2008 20:50

Re: Critical Hit Modifier
 
hmmmm will this put me on the custom tab? :P

BrutalGoerge 04-10-2008 22:01

Re: Critical Hit Modifier
 
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.
:)

pRED* 04-10-2008 22:40

Re: Critical Hit Modifier
 
Fixed.

DontWannaName: nope.

BrutalGoerge 04-10-2008 22:59

Re: Critical Hit Modifier
 
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. :D


Excellent work though, I have been wanting a SM plugin like this since TF2 came out.

pRED* 04-10-2008 23:19

Re: Critical Hit Modifier
 
It turns the plugin off, so it will go back to normal chances.

Peoples Army 04-10-2008 23:41

Re: Critical Hit Modifier
 
gj pred defiantly nice plugin :attack:

WoZeR 04-11-2008 00:06

Re: Critical Hit Modifier
 
Quote:

Originally Posted by Peoples Army (Post 609537)
gj pred defiantly nice plugin :attack:

I agree, I offered to host his babies.

Dominator 04-11-2008 01:00

Re: Critical Hit Modifier
 
hey how come when I click to download the plugin it says it cannot be compiled?


All times are GMT -4. The time now is 04:05.

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