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

Push away v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
artos
Senior Member
Join Date: Mar 2010
Old 04-14-2013 , 08:40   Push away v1.2
Reply With Quote #1

Push away!
Simple noobs prevention.
Version: 1.2, Last update: 14.04.2013

INFO:
This plugin allows players to push each other by attacking them with knife. This is very simple and useful because when a player blocks the path you can simply push him away, great, isn't it?

After the version 1.1 you can pull the others by pressing +USE (Default E key) and attack them with knife.

CVARS:
Quote:
amx_pushaway_team - 0 = off, 1 = TT only, 2 = CT only, 3 = Team related, 4 = Everyone can pull/push everyone
amx_pushaway_type - Allow pulling/pushing 0 = Push only, 1 = Pull only, 2 = Both
amx_pushaway_power - Pull/Knockback power multiplier (No decimal numbers!)
amx_pushaway_injump - Allow pulling/pushing when in midair 1 = ON, 0 = OFF
amx_pushaway_button - 0 = Both, 1 = Right click only
CREDITS:
Me - Plugin.
jamil_hamida - First plugin idea.
ANTICHRISTUS - "Pulling" idea.
ConnorMcLeod - Helped with optimizing code.

CHANGELOG:
Quote:
1.0 - First Release.
1.1 - Added feature: Pulling players by pressing +USE and attacking.
1.2 - Optimized code. Thanks to ConnorMcLeod.
Attached Files
File Type: sma Get Plugin or Get Source (amx_pushaway.sma - 991 views - 4.0 KB)
__________________

Last edited by artos; 04-14-2013 at 10:11.
artos is offline
Send a message via Skype™ to artos
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-14-2013 , 09:15   Re: Pushaway
Reply With Quote #2

Remove client_PreThink forward, you don't need it.
All checks can be made in TraceAttack forward.

Also, in TraceAttack, you don't need to make any checks on victim, just check that attack index is between 1 and maxplayers.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
artos
Senior Member
Join Date: Mar 2010
Old 04-14-2013 , 09:56   Re: Pushaway
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Remove client_PreThink forward, you don't need it.
All checks can be made in TraceAttack forward.

Also, in TraceAttack, you don't need to make any checks on victim, just check that attack index is between 1 and maxplayers.
Thank you! I didn't know that.

Updated!
__________________
artos is offline
Send a message via Skype™ to artos
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 04-16-2013 , 06:05   Re: Push away v1.2
Reply With Quote #4

Feels like it will be abused a whole lot on a public server with 30+ players on. When you are aiming, someone comes up behind you and pulls you aside, and the battle begins.

Not sure what mod this is for though.

Last edited by jingojang; 04-16-2013 at 06:05.
jingojang is offline
artos
Senior Member
Join Date: Mar 2010
Old 04-16-2013 , 08:02   Re: Push away v1.2
Reply With Quote #5

Quote:
Originally Posted by jingojang View Post
Feels like it will be abused a whole lot on a public server with 30+ players on. When you are aiming, someone comes up behind you and pulls you aside, and the battle begins.

Not sure what mod this is for though.
I were asked to make it work without ZP so I've done it. This can be useful on JB servers when prisoner blocks the cell entry.
__________________
artos is offline
Send a message via Skype™ to artos
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 04-16-2013 , 09:35   Re: Push away v1.2
Reply With Quote #6

You gotta be careful for abusive players. Maybe add a counter? Like if he used it for more than two times a minute or so, deny him that ability for like 5 minutes. I can simply keep pressing use on a player and that would keep slapping him.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Old 04-16-2013, 09:43
tonykaram1993
This message has been deleted by tonykaram1993. Reason: internet lag: double post :(
Reply



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 00:11.


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