AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Admin Push out of the way! v 1.2 (https://forums.alliedmods.net/showthread.php?t=16463)

jsauce 08-12-2005 16:19

Admin Push out of the way! v 1.2
 
1 Attachment(s)
Code:

/*
* AMXX Mod script.
*
*  Admin Push out of the way! v 1.2
*  created by jsauce
*
*
*  Have you ever been playing on a map like cs_militia and too many terrorists have
*  gone down the sewers? Well it really ticked me off when I would get stuck in a corner
*  because someone decided to plant his ass right next to mine. This would usually result
*  in my death if I am getting shot and cannot move. This plugin takes care of that nonsense
*  once and for all. If your the admin and someone is in your way they are forced to move out
*  of the way. This plugin will not force other admins to move, hopefully you don't have to deal
*  with that. Also you wouldn't want another admin moving you. Admin has its privledges.
*
*
*  NOTE:
*  Okay a little bit about the push level. It's set to a default of 10, if that's too powerful
*  for you, lower it. However, if you think it needs to be stronger make the value higher. To
*  give you an idea I set to 100 during tests with bots and anyone that touched me flew right
*  across the screen. Be careful with this value. By setting it too high you could potentially
*  kill players who are too close to a wall if they touch you.
*
*

*  four defined:       
*  ADMIN is set to ADMIN_LEVEL_A
*  IMMUNE is used for ADMIN_IMMUNITY check. request v3x!
*  NON_ATTACKONLY can be changed if you want to be able to move players when your in attack.
*  AUTOSENSE can be used to detect whether a map matches a predefined one you setup.
*
*  If you want to use AUTOSENSE create a file in your configs directory called
*  adminpushconfig.cfg. In this file one line at a time add a map name you would like
*  to have. On map change if the current map matches a map in the mapconfig file, it will
*  automatically enable the plugin. This is useful if you only want to have this running
*  during a few maps like cs_militia. Example config:
*
*  cs_militia
*  cs_siege
*  de_train
*
*
*
*  1.2 added define IS_IN_USE to check if use key is pressed. Request ScubaSteve3465
*      small bugfix, should not now reverse the effect if you enable on attack. Rather it
*      will allow it to work when attacking or not attacking. Sorry about that.       
*  1.1 added cvar for push level. default 10 is a normal push. added autosense. added immunity, requested by v3x!
*  1.0 initial release
*
*/
#include <amxmodx>
#include <engine>
#include <cstrike>

- 1.1 changes -

v3x wanted it to check immunity it now does.
It also has an autosense feature that will allow people to use a config file to setup whether they want the plugin to be actively pushing people when on certain maps.

I also added the ability for the admin to set the push level which is default at 10, but can be changed with the cvar amx_adminpushlevel. Lower = less force, higher = more force.

- 1.2 changes -

Added the ability to make it so if you leave the define IS_IN_USE line uncommented, it will only work if you push the use key. So you can run into users freely but if you want them to move, you can press the use key.

Commenting this line will set it back to normal, meaning anyone who runs into you or you run into them they get moved. For best effect its best to have NON_ATTACKONLY commented if you plan to use the IS_IN_USE feature. If not, then it will still check to make sure you are not attacking first.

Okay I fixed a bug which caused the reverse effect when commenting NON_ATTACKONLY out. This would cause it to simply act in the opposite way only working when attacking and not working at all when not attacking. This was never the plan, so it has been fixed. Should not work to if you comment out NON_ATTACKONLY it works all the time, attacking or not.

-USAGE -

The cvar amx_adminpush is set to 1 by default. Setting it to 0 will turn off this plugin. This plugin will automatically move a player who is touching you or if you touch them. So basically if they get in your way they get moved.

Hawk552 08-12-2005 17:51

Great plugin. I would use it for a more simple server, but I have Jedi Force Grab and about 100 more plugins running so I don't really need it. Once it gets approved, 5/5.

Blitz 08-12-2005 18:02

Nice. :)
This will be very useful.

CubicVirtuoso 08-12-2005 18:17

Yea man this plugin rocks Very nice job I love the idea. Pushing people :) We were pushing people off buildings in svencoop.

n0obie4life 08-13-2005 00:19

Sounds like proding from worms :D

v3x 08-14-2005 00:05

I'd be pissed if someone pushed me off the thing in CT spawn on assault, haha.

n0obie4life 08-14-2005 01:14

teh roof?

jsauce 08-14-2005 01:54

Well I was thinking in my next revision I can give the admin the ability to change the force he pushes with. I know some of the guys I play with like the plugin they think its funny to bounce up and down on top of me when we're playing others don't like it so much especially in the sewers of militia because they don't get to force their way in and get all the kills. I didn't want to have it so that you could abuse it. It literally was born from one admin on our server screaming at a player because he wouldn't move. Everytime for like 4 rounds the player would follow the admin and sit next to him in the sewer. I think this is way better than the admin blowing his temper and banning the player.

v3x 08-14-2005 01:58

Make it so admins with ADMIN_IMMUNITY aren't affected by the push. ;)

CubicVirtuoso 08-14-2005 03:12

Man i jus tfound a really cool thing about this plugin. In svencoop when you do playerstacks you can jump up in the air with someone on top of you and launch them like TFC sniper shots... it is the coolest thing man this plugin rocks... so many cool things you can do with it.


All times are GMT -4. The time now is 13:32.

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