View Single Post
Author Message
pRED*
Join Date: Dec 2006
Old 04-10-2008 , 16: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 - 18705 views - 920 Bytes)
File Type: smx crits.smx (1.9 KB, 6704 views)

Last edited by pRED*; 04-12-2008 at 19:12.
pRED* is offline