Thread: Panic v1.0
View Single Post
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 03-15-2019 , 16:48   Re: Panic v1.0
Reply With Quote #2

PreThink is called hundreds of times per second, a bad place to send uncontrolled messages from.
Use "Health" event with a task instead.

PHP Code:
random_num(01000) <= panic_chance 
People would expect a chance CVAR to be in "percents", at least specify 2 is actually 0.2%

You only need to cache msgid once in plugin_init, message ids don't change during game.

Feature suggestion: Add a way to restore the player back to normal (for example, when they score a kill). Otherwise, it becomes a certain death without a way to gain hp.
__________________

Last edited by <VeCo>; 03-16-2019 at 06:13.
<VeCo> is offline