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

Anti behind & anti site v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay       
Bobs
Member
Join Date: Oct 2011
Old 02-28-2012 , 13:12   Anti behind & anti site v1.0
Reply With Quote #1

Anti Behind (And Site) 1.0


Why make this plugin?:
I made this plugin Because, i seen alot of knife servers needed this plugin, and i have not seen a plugin like this, then i decided to make it.

Description:
This plugin blocks a player come from Behind & Site With a Knife OR WEAPON - Anti Behind / Anti Site.
This plugin in mostly being used in knife servers, but it can of course be used in normal server.
There is also screenfade when someone comes from behind / site as a warning.
Fadescreen colors:
Attacker = Red Screen for 2 Sec (Editable)
Victim = Blue Transperency Screen For 0.6 Sec (Editable)

How to put in server:
1. Download the file below | anti_behind.amxx (sma) |
2. Put in this folder destination: ...\addons\amxmodx\plugins
3. Go to this folder destination: ...\addons\amxmodx\configs
4. Open plugins.ini and type: anti_behind.amxx
5. Restart server or change map.

Cvars:
Code:
ab_slap '1 / 0' - 1 = On Slap When BackStab | 0 = Off Slap When BackStab
Edit Angle & Damage
Change thoose two defines in .sma, if you want:
Code:
#define BACKSTAB_ANGLE 93.0
#define BACKSTAB_MAX_DAMAGE 0.0
Requirements:
Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
ChangeLog:
Code:
Version 1.0 : N/A
Version 1.1 : Cvar added: "ab_slap"
Credits:
Credits: None Atm.
Attached Files
File Type: sma Get Plugin or Get Source (anti_behind.sma - 1377 views - 3.7 KB)

Last edited by Bobs; 02-29-2012 at 11:02.
Bobs is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-28-2012 , 14:48   Re: Anti behind & anti site v1.0
Reply With Quote #2

Any reason you hook CmdStart rather that Ham_Weapon_PrimaryAttack with "weapon_knife" class ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Bobs
Member
Join Date: Oct 2011
Old 02-28-2012 , 15:11   Re: Anti behind & anti site v1.0
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Any reason you hook CmdStart rather that Ham_Weapon_PrimaryAttack with "weapon_knife" class ?
Sry, Conner - but i don't really understand that. I am not 100% English and i tryed to translate that you said, but i didnt really understand
Bobs is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-28-2012 , 15:27   Re: Anti behind & anti site v1.0
Reply With Quote #4

CmdStart is called all the time and a lot of time.

PrimaryAttack would be called only when you use +attack/2 with the knife.

He asks why you're using CmdStart.
__________________
Arkshine is offline
Bobs
Member
Join Date: Oct 2011
Old 02-28-2012 , 15:31   Re: Anti behind & anti site v1.0
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
CmdStart is called all the time and a lot of time.

PrimaryAttack would be called only when you use +attack/2 with the knife.

He asks why you're using CmdStart.
Oh, i can't do that in HamPrim yet, is it a big problem enough to get it unapproved?

Last edited by Bobs; 02-28-2012 at 15:49.
Bobs is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-29-2012 , 06:56   Re: Anti behind & anti site v1.0
Reply With Quote #6

It will be one of requirements for sure.

Also why are you using this stick fm_trace_target rather than get_user_aiming ?
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-29-2012 at 07:17.
ConnorMcLeod is offline
Bobs
Member
Join Date: Oct 2011
Old 02-29-2012 , 09:06   Re: Anti behind & anti site v1.0
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
It will be one of requirements for sure.

Also why are you using this stick fm_trace_target rather than get_user_aiming ?
get_user_aiming isnt really usefull in this plugins, it is nothing to do with it.
But get_user_aiming on the Angle could be done, but there is no different, if it that you mean.
Bobs is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-29-2012 , 10:28   Re: Anti behind & anti site v1.0
Reply With Quote #8

Pre review : In order you plugin being reviewed, change following things :

Hook knife PrimaryAttack and SecondaryAttack instead of CmdStart, will be very more performant
Use get_user_aiming instead of velocity_by_aim + TraceLine, get_user_aiming return also pHit so it's the same and more performant.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Bobs
Member
Join Date: Oct 2011
Old 02-29-2012 , 10:54   Re: Anti behind & anti site v1.0
Reply With Quote #9

Okay Connor, i am going to try to make thoose steps - thanks for the performance of plugin.
Bobs is offline
Olaizola
New Member
Join Date: Apr 2011
Location: Romania
Old 03-01-2012 , 02:46   Re: Anti behind & anti site v1.0
Reply With Quote #10

This plugin doesn't work!
If you shoot an enemy, you are punished and if you shoot a teammate you are not punished!
That's the point of it?
Olaizola is offline
Old 03-01-2012, 04:05
yamin
This message has been deleted by ConnorMcLeod. Reason: Threadjack attempt or answer to that attempt
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 20:00.


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