AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   hpAntiCamp (https://forums.alliedmods.net/showthread.php?t=124327)

psychocoder 04-15-2010 12:20

hpAntiCamp
 
1 Attachment(s)
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

shustas 04-15-2010 13:39

Re: hpAntiCamp
 
and the server load with all the calculations is... fine?

psychocoder 04-16-2010 02:40

Re: hpAntiCamp
 
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.

Obliterous 05-12-2010 11:29

Re: hpAntiCamp
 
How about a var so that it only affects people that haven't left the spawn room?

darycoll 05-15-2010 05:18

Re: hpAntiCamp
 
good morning I would like quil pass in 20 seconds how fair has the place of 60 thank you

foenetik 11-04-2010 11:57

Re: hpAntiCamp
 
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

tigerox 11-04-2010 18:37

Re: hpAntiCamp
 
Quote:

Originally Posted by psychocoder (Post 1151684)
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.

Marverlous 06-19-2013 00:54

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


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

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