Raised This Month: $168 Target: $400
 42% 

hpAntiCamp


Post New Thread Reply   
 
Thread Tools Display Modes
Author
psychocoder
Member
Join Date: Jan 2009
Location: Germany
Plugin ID:
1608
Plugin Version:
0.1
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Old 04-15-2010 , 12:20   hpAntiCamp
    Reply With Quote #1

    high performance AntiCamp


    This Plugin is a stand allown anticamp Plugin which base on my Anticamp in dodRealismPhysics http://forums.alliedmods.net/showthread.php?p=835667
    In the next version of my realism plugin I would delete the anti camp and bring out a faster version of the realism plugin. Therefore I wrote a new Anticamp which had low overhead and use a better camper detection.

    This plugin slap a player if he camps. A player get a time how long he can move (default 60s), if he camps 55 seconds than move 5 seconds he can camp the next time 60-55+2*5=15s. Camping is also stay on a position and only move left right left.

    MG and Bazuka is allowed to camp, but if player with mg switch to pistole than it is not allowed to camp.

    Configuration:
    • sm_hpanticamp_version - show version of the plugin
    The next CVars must write in sourcemod.cfg or map config file
    • sv_hpanticamp_enable 1 - enable or disable plugin (0 =off, 1=on, default: 1)
    • sv_hpanticamp_max_camp_time 60 - how many seconds a player can camp (default: 60)
    • sv_hpanticamp_slap_diff_time 10 - if a player is slaped for camping, this CVAR say in how many seconds the player slaped again if he not move (defaut: 10)
    • sv_hpanticamp_slap_dmg 20 - slap damage for camping (defaut: 20)


    Installation:
    • Copy hpAntiCamp.smx to addons/sourcemod/plugins
    • put CVars in the file ../cfg/sourcemod/sourcemod.cfg
    • type sm plugins refresh in server console
    Changelog:

    Version 0.1.0 [2010-04-15]
    first realease to community
    Attached Files
    File Type: sp Get Plugin or Get Source (hpAntiCamp.sp - 1275 views - 9.1 KB)
    __________________

    Last edited by psychocoder; 04-16-2010 at 02:51.
    psychocoder is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 04-15-2010 , 13:39   Re: hpAntiCamp
    Reply With Quote #2

    and the server load with all the calculations is... fine?
    __________________
    shustas is offline
    psychocoder
    Member
    Join Date: Jan 2009
    Location: Germany
    Old 04-16-2010 , 02:40   Re: hpAntiCamp
    Reply With Quote #3

    Yes the load is fine. Not all calculation run every time. Test it and you see that your server fps is not changed.

    Please keep in mined that any plugin make a overhead but I have a look that the overhead is minimized. This is not the final, I know that some parts can made faster and in future releases I would more optimize this parts.
    __________________
    psychocoder is offline
    Obliterous
    Junior Member
    Join Date: May 2010
    Old 05-12-2010 , 11:29   Re: hpAntiCamp
    Reply With Quote #4

    How about a var so that it only affects people that haven't left the spawn room?
    Obliterous is offline
    darycoll
    New Member
    Join Date: May 2010
    Old 05-15-2010 , 05:18   Re: hpAntiCamp
    Reply With Quote #5

    good morning I would like quil pass in 20 seconds how fair has the place of 60 thank you
    darycoll is offline
    foenetik
    Junior Member
    Join Date: Nov 2008
    Old 11-04-2010 , 11:57   Re: hpAntiCamp
    Reply With Quote #6

    Hi,

    it works good thank you...

    but, can you or anyone write some Cvars for this Plugin ,,,Please?

    1# allow camping for CTs on de_maps
    2# allow camping for CTs if bomb dropped
    3# allow camping for Ts if bomb planted
    4# allow camping for Ts on cs_maps
    5# Minimum Health stop the Slap


    Thank you...
    best regards Fanta
    __________________

    Last edited by foenetik; 11-04-2010 at 14:05.
    foenetik is offline
    tigerox
    AlliedModders Donor
    Join Date: Oct 2008
    Location: Canada
    Old 11-04-2010 , 18:37   Re: hpAntiCamp
    Reply With Quote #7

    Quote:
    Originally Posted by psychocoder View Post
    Yes the load is fine. Not all calculation run every time. Test it and you see that your server fps is not changed.

    Please keep in mined that any plugin make a overhead but I have a look that the overhead is minimized. This is not the final, I know that some parts can made faster and in future releases I would more optimize this parts.
    I think this would be much faster if you used the players eyeangles instead of their positions. You would just need to see if their angles have changed from their spawn angles instead of looking at the distance between their position and spawn.
    __________________
    tigerox is offline
    Marverlous
    Senior Member
    Join Date: May 2013
    Old 06-19-2013 , 00:54   Re: hpAntiCamp
    Reply With Quote #8

    can anyone make this so that the player receive knockback when slapped? maybe drug them too?

    Last edited by Marverlous; 06-28-2013 at 05:03.
    Marverlous 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 09:37.


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