AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Pain Shock Free (https://forums.alliedmods.net/showthread.php?t=49945)

Simon Logic 01-16-2007 06:27

Pain Shock Free
 
1 Attachment(s)
Info (RUS):
When a player is hit he slows down a bit because of a pain shock.
Sometimes it's very annoying, especially when playing dynamic style
mod, e.g. CSDM. This plugin can turn off original player's slowdown
on bullet hit.

Requirements:
* CS/CZ mod
* AMX/X 1.7x or higher
* Fakemeta module

New cvars:
* amx_painshockfree <0|1> (default=1)

History:
1.0.0 [2007-01-16]
* first release

PS
* Also you can try plugin by Connor which uses direct access to slowdown attribute (hack): click here

Lord_Destros 01-16-2007 09:31

Re: Pain Shock Free
 
Meh, this is already a feature in both realism mods (working and non-working) but I couldn't find it independently so nj for now.

Simon Logic 01-16-2007 09:42

Re: Pain Shock Free
 
Well, i was looking too long for this feature and nobody helped me. So i've decided to make my own. Here it is.

VEN 01-16-2007 12:15

Re: Pain Shock Free
 
Choose an appropriate Modification and Category.

Cheap_Suit 01-16-2007 12:59

Re: Pain Shock Free
 
Nice. I tried to do this long time ago too but failed.

godlike 01-16-2007 13:24

Re: Pain Shock Free
 
You failed? theres no such thing ... nice plugin gj.

VEN 01-16-2007 15:51

Re: Pain Shock Free
 
Fix release date in the versions history.
To increace performance you can check if groundent != 0 before its validity check.

Simon Logic 01-17-2007 06:40

Re: Pain Shock Free
 
i can go further. calculate g_maxplayers per server in plugin_init and make a check for groundent > g_maxplayers? =) this leads to eternal miserable optimizations! even valve's programmers do not mess with this stuff.

VEN 01-17-2007 10:58

Re: Pain Shock Free
 
Most of the time groundent will be equal to 0 (and not to > maxclients) so it's possible to omit validity check almost entirely. But of course you are not obligated to do that, it was just a performance hint.

ali_zkz 05-05-2007 05:27

Re: Pain Shock Free
 
very good
+karma


All times are GMT -4. The time now is 19:33.

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