Raised This Month: $32 Target: $400
 8% 

Pain Shock Free


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   VEN (29)
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 01-16-2007 , 06:27   Pain Shock Free
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (pain_shock_free.sma - 7492 views - 2.8 KB)

Last edited by Simon Logic; 03-10-2009 at 08:37. Reason: added url to connor's plugin
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 01-16-2007 , 09:31   Re: Pain Shock Free
Reply With Quote #2

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.
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 01-16-2007 , 09:42   Re: Pain Shock Free
Reply With Quote #3

Well, i was looking too long for this feature and nobody helped me. So i've decided to make my own. Here it is.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
VEN
Veteran Member
Join Date: Jan 2005
Old 01-16-2007 , 12:15   Re: Pain Shock Free
Reply With Quote #4

Choose an appropriate Modification and Category.
VEN is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 01-16-2007 , 12:59   Re: Pain Shock Free
Reply With Quote #5

Nice. I tried to do this long time ago too but failed.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
godlike
Senior Member
Join Date: Apr 2005
Old 01-16-2007 , 13:24   Re: Pain Shock Free
Reply With Quote #6

You failed? theres no such thing ... nice plugin gj.
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-16-2007 , 15:51   Re: Pain Shock Free
Reply With Quote #7

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

Last edited by VEN; 01-16-2007 at 15:53.
VEN is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 01-17-2007 , 06:40   Re: Pain Shock Free
Reply With Quote #8

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.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
VEN
Veteran Member
Join Date: Jan 2005
Old 01-17-2007 , 10:58   Re: Pain Shock Free
Reply With Quote #9

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.

Last edited by VEN; 01-17-2007 at 11:02.
VEN is offline
ali_zkz
Member
Join Date: Jan 2006
Old 05-05-2007 , 05:27   Re: Pain Shock Free
Reply With Quote #10

very good
+karma
ali_zkz 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 16:42.


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