AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   WalkGuard - no camping/climbing/bug using - V1.3.2 (https://forums.alliedmods.net/showthread.php?t=55245)

mogel 05-17-2007 12:43

WalkGuard - no camping/climbing/bug using - V1.3.2
 
2 Attachment(s)
Introduction


with WalkGuard can u define 3 zones
  • camper-zone
  • for all players or a specific team
  • usefull for typical camper-places ... the player can use this places for tactical wait ... but get damage after some seconds (defined it in the zone)
  • player get a centered message for camping
  • block-zone
  • blocks a specific area, like the SkyWalkGuard from HLGuard ... but the player will not teleport and stuck
  • cheater-zone
  • for all players or a specific team
  • players that entered this zone get killed
  • usefull for map-bugs (defuse on de_nuke)
sometimes i play on a dod-server with wc3-mod ... on this server it is not allowed to walk on higher areas ... if a admin online the player get killed ... if no admin online some player break the rules (e.g. use teleport on dod_charlie to allies-spawn) ... simply define a camper-zone on higher areas and define a cheater-zone on spawn ... the rules can't broken



Commands & CVar's
  • walkguardmenu - opens the menu (amx_rcon rights needed)
  • wg_damage - sets the damage in camper-zones
  • wg_botdamage - sets the damage for bot's in camper-zones
  • wg_immunity - admin's (with immunity) can pass the zone (not block-zone)
  • wg_direction - slaps a player with random direction (default 1)
  • wg_botdirection - same for bot's
changes on cvar's will work after new round
bot's are stupid and can't read ... it's a good idea that u don't change wg_botdamage :mrgreen:



Installation

copy the plugin to your plugins-directory ... add it to plugins.ini ... and copy the walkguard.txt to data/lang-directory ... restart the map



Video

see the plugin in action, on cs_italy ... http://www.youtube.com/watch?v=IAM3KEC_0-8


Changes

Code:

1.0.0
    - Release
1.1.0
    - added admin-immunity
1.2.0
    - added disable for the random slap-direction
1.2.1
    - fixed slap-direction
1.3.0
    - added delay for freeze-time
    - change setupunit from 2 to 1
1.3.1
    - fixed player-bug (disconnect in camper-zone)
    - change to fakemeta (thanks to djmd378)
1.3.2
    - removed fakemeta_util by djmd378

hand, mogel

Bend3R 05-17-2007 12:46

Re: WalkGuard
 
nice.

YamiKaitou 05-17-2007 13:02

Re: WalkGuard
 
Code:

Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Tag mismatch on line 236
Warning: Tag mismatch on line 365
Header size:          2216 bytes
Code size:            32168 bytes
Data size:            9972 bytes
Stack/heap size:      16384 bytes; max. usage is unknown, due to recursion
Total requirements:  60740 bytes

2 Warnings.
Done.

Just pointing it out. Using local 1.76d compiler

mogel 05-17-2007 13:20

Re: WalkGuard
 
... fixed ...

Alka 05-17-2007 13:35

Re: WalkGuard
 
man...this is to c00L ! Gj *:P* +k

Da_sk8rboy 05-17-2007 15:36

Re: WalkGuard
 
i don't understand the last part in the video;
He jumped on a box, how does that make him a cheater?
Other than that, it looks good.

Alka 05-17-2007 15:45

Re: WalkGuard
 
Yeah...you'r right! "Cheater zone",...maybe an "restrict/bug zone"(rename it) or something else...! Because cheaters don't use specific zones...:wink:

Quote:

Originally Posted by mogel (Post 477741)
... make a cheater-box on the roof of bombside b and all cheater get killed :twisted:

Neh...that is a bug zone :P...Player can use that bug...he can't name "cheater"! :D

mogel 05-17-2007 15:47

Re: WalkGuard
 
Hi,

Quote:

Originally Posted by Da_sk8rboy (Post 477737)
i don't understand the last part in the video;
He jumped on a box, how does that make him a cheater?
Other than that, it looks good.

it demonstrate only the functions of this box ... on de_nuke u can defuse the bomb on bombside a from the roof of bombside b ... make a cheater-box on the roof of bombside b and all cheater get killed :twisted:

hand, mogel

Da_sk8rboy 05-17-2007 15:59

Re: WalkGuard
 
hmm, i still don't believe the name is correct for what it does. maybe Glitch zone or something..

Howdy! 05-17-2007 16:53

Re: WalkGuard
 
Aye, i made separate plugins to this with certain locations now its easy to do with this. GJ :up:

stupok 05-17-2007 18:47

Re: WalkGuard
 
I really like this idea! I think it's actually very useful.

It's cool just to see how you can make an invisible entity and highlight it and change its size.

Good job, mogel.

Liquidz 05-17-2007 20:06

Re: WalkGuard
 
interesting.

Crusher918 05-18-2007 17:56

Re: WalkGuard
 
Quote:

Originally Posted by stupok69 (Post 477771)
I really like this idea! I think it's actually very useful.

It's cool just to see how you can make an invisible entity and highlight it and change its size.

Good job, mogel.


True, The video is awesome. It makes me wanna try it ^.^

GHW_Chronic 05-19-2007 03:41

Re: WalkGuard
 
very nice interface.

vittu 05-19-2007 15:30

Re: WalkGuard
 
So this is somewhat similar in functionality to:
OOB
only better in that it creates entities that can just block or catch touch instead of needing to cycle a task to check location?

mogel 05-19-2007 15:43

Re: WalkGuard
 
Hi,

Quote:

Originally Posted by vittu (Post 478367)
only better in that it creates entities that can just block or catch touch instead of needing to cycle a task to check location?

the plugins do the same ... but a loop (in oob) need always cpu ... i simply wait for the touch-event from the engine -> less cpu

hand, mogel

vittu 05-19-2007 17:28

Re: WalkGuard
 
Yea that's what I said, guess I take a look at the code and see how efficient it is just wish it was in fakemeta not engine. Probably end up using it over oob since this would be a better method.


A request: add an option (admin flag, whatever) to allow admins the ability to bypass the guarded areas.

mogel 05-20-2007 03:01

Re: WalkGuard
 
Hi,

Quote:

Originally Posted by vittu (Post 478411)
A request: add an option (admin flag, whatever) to allow admins the ability to bypass the guarded areas.

[x] done ... set wg_immunity to 1

hand, mogel

iggy_bus 05-21-2007 13:25

Re: WalkGuard - V1.1
 
If you wait to countdown to finish it starts to slap you and take away the health but when it starts to slap you, you are unable to get away from the zone.

f.e. In de_cbble, I have put whole terror tower as camp zone and if noob gets slapped he can not get down because he has no control.

Can you make it so it only takes your health away or at least slaps you only the first time ?

Alka 05-21-2007 13:29

Re: WalkGuard - V1.1
 
change in source (.sma) this
Code:

  if (is_user_bot(player))
  {
  user_slap(player, get_pcvar_num(pcv_botdamage), 1)
  } else
  {
  user_slap(player, get_pcvar_num(pcv_damage), 1)
  }

->
Code:

  if (is_user_bot(player))
  {
  user_slap(player, get_pcvar_num(pcv_botdamage), 0)
  } else
  {
  user_slap(player, get_pcvar_num(pcv_damage), 0)
  }

:wink:

mogel 05-21-2007 14:29

Re: WalkGuard - V1.2
 
Hi,

that's not backward compatibility ... but ... set wg_direction to 0 ... 8)

hand, mogel

iggy_bus 05-22-2007 14:44

Re: WalkGuard - V1.2
 
Quote:

Originally Posted by mogel (Post 479045)
Hi,

that's not backward compatibility ... but ... set wg_direction to 0 ... 8)

hand, mogel

gj man ;)

btw, great plugin, more than use full ;)

redvsblue 05-22-2007 21:13

Re: WalkGuard - V1.2
 
hope gets approved

i really enjoy when a plugin gets it's own video

iggy_bus 05-23-2007 17:48

Re: WalkGuard - V1.2
 
ups..."wg_direction 0" doesn't work.
When slapped, players fly around :(

vittu 05-23-2007 17:56

Re: WalkGuard - V1.2
 
Maybe a better option would be to just make it act like a trigger_hurt where it wont slap but just remove hp instead.


Also I didn't check very well, but is there any way we could set the amount of time before a person can return to a camp spot without punishment? ie resets on new round, 0-would never allow a return to that spot, 30-player would need to wait 30 seconds before the timer resets for him to be able to return without punishment.

Oh and please add 1 to setupunits if possible.

mogel 05-24-2007 00:50

Re: WalkGuard - V1.2
 
Hi,

Quote:

Originally Posted by iggy_bus (Post 479860)
ups..."wg_direction 0" doesn't work.
When slapped, players fly around :(

bug in user_slap() :( ... fixed ... and now u can see in the logs ... camping kill's :)

Code:

"mogel<10><STEAM_ID_LAN><TERRORIST>" committed suicide with "camping" (world)
hand, mogel

iggy_bus 05-25-2007 21:38

Re: WalkGuard - V1.2.1
 
great, now it is ok ;)

Maurice 05-26-2007 09:50

Re: WalkGuard - V1.2.1
 
This is a briljant plugin! one of the greatest and most needed for me but it can even be better if it would be possible to make triangle boxes and change the degrees of the boxes. Also it would be fantastic if it was possible to have the oppertunity to make the no walk areas bullet proof.

I do not know if any of these ideas are possible to add to the plugin but without these ideas the plugin is still amazing.
If it will be possible i will use it to add the van in the picture beneed to my assault server.
http://www.counter-strikers.nl/downl...lt_car0018.jpg

iggy_bus 05-26-2007 19:14

Re: WalkGuard - V1.2.1
 
Here is one suggestion:

I often have set terror spawn as camping zone to 30 sec slap, but I have 10 sec freezetime and camp counts during these 10 sec so it gives 20 sec to players to leave spawn which is often not enough and annoying.

Can you set some delay for plugin on the round start ?

mogel 05-28-2007 03:11

Re: WalkGuard - V1.3
 
Hi,

added freeze-time and change setupunit 2 to 1

hand, mogel

iggy_bus 06-01-2007 07:13

Re: WalkGuard - V1.3
 
amxx error log:

Code:

L 06/01/2007 - 09:56:40: Start of error session.
L 06/01/2007 - 09:56:40: Info (map "de_train") (logfile "error_060107.log")
L 06/01/2007 - 09:56:40: [ENGINE] Invalid player 7 (not in-game)
L 06/01/2007 - 09:56:40: [AMXX] Displaying debug trace (plugin "walkguard.amxx")
L 06/01/2007 - 09:56:40: [AMXX] Run time error 10: native error (native "fake_touch")
L 06/01/2007 - 09:56:40: [AMXX]    [0] engine_stocks.inc::fakedamage (line 38)
L 06/01/2007 - 09:56:40: [AMXX]    [1] php1ApXNp.sma::ZoneModeCamper (line 263)
L 06/01/2007 - 11:08:17: Start of error session.
L 06/01/2007 - 11:08:17: Info (map "de_inferno") (logfile "error_060107.log")
L 06/01/2007 - 11:08:17: [ENGINE] Invalid player 22 (not in-game)
L 06/01/2007 - 11:08:17: [AMXX] Displaying debug trace (plugin "walkguard.amxx")
L 06/01/2007 - 11:08:17: [AMXX] Run time error 10: native error (native "fake_touch")
L 06/01/2007 - 11:08:17: [AMXX]    [0] engine_stocks.inc::fakedamage (line 38)
L 06/01/2007 - 11:08:17: [AMXX]    [1] php1ApXNp.sma::ZoneModeCamper (line 263)


mogel 06-01-2007 07:35

Re: WalkGuard - V1.3
 
Hi,

thx ... correcting on sunday ... i'm not at home

hand, mogel

Arkshine 06-01-2007 22:47

Re: WalkGuard - V1.3
 
@mogel

I can see that there is a zone-mode 'block all player'. Is there possible to add 'block CT only' and "block Terro only" please ?

st3reo 06-02-2007 15:14

Re: WalkGuard - V1.3
 
hey, I`d also have a request to make.
I use the cheat zone to stop CT from rushing onto the terrorists, and stay on "their side" of the map, but I`d really like to set a timer for that so the cheat zones stop having effect after a certain amount of time (ex. 1 min)
If you could make this happen I would be gratefull
thanks,

vittu 06-02-2007 16:06

Re: WalkGuard - V1.3
 
Quote:

Originally Posted by arkshine (Post 484720)
@mogel

I can see that there is a zone-mode 'block all player'. Is there possible to add 'block CT only' and "block Terro only" please ?

Not really possible with the way it's done, you can't make a solid object only be solid for some things and not others... "block mode" creates a solid entity, it's too bad though cause would have been nice to only allow a certain team or even optional admins to be able to pass thru...



hand, ...

djmd378 06-03-2007 02:57

Re: WalkGuard
 
1 Attachment(s)
Quote:

Originally Posted by vittu (Post 478411)
Yea that's what I said, guess I take a look at the code and see how efficient it is just wish it was in fakemeta not engine. Probably end up using it over oob since this would be a better method.

Here, fakemeta version (untested):

(requires fakemeta_util)

mogel 06-03-2007 06:29

Re: WalkGuard - V1.3
 
Hi,

Quote:

Originally Posted by vittu (Post 484994)
Quote:

Originally Posted by arkshine (Post 484720)
@mogel
I can see that there is a zone-mode 'block all player'. Is there possible to add 'block CT only' and "block Terro only" please ?

Not really possible with the way it's done, you can't make a solid object only be solid for some things and not others... "block mode" creates a solid entity, it's too bad though cause would have been nice to only allow a certain team or even optional admins to be able to pass thru...

it is possible with teleport ... but that can crash your server ... and that's why it is not implemented

@djmd378
thanks for fakemeta version

@iggy_bus
bug is fixed

@st3reo
i make a rush-zone if i change the menu-frontend ... but current no time

hand, mogel

iggy_bus 06-03-2007 12:21

Re: WalkGuard - no camping/climbing/bug using - V1.3.1
 
thanks but there is a problem now:
Code:

Plugin failed to compile! Please try contacting the author.

Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/2/4/7/4/5/16620.attach(8) : fatal error 100: cannot read from file: "fakemeta_util"

Compilation aborted.
1 Error.


mogel 06-03-2007 14:14

Re: WalkGuard - no camping/climbing/bug using - V1.3.1
 
Hi,

added the amxx-file to attachments

hand, mogel

seiskakoo 06-04-2007 08:53

Re: WalkGuard - no camping/climbing/bug using - V1.3.1
 
Quote:

Originally Posted by iggy_bus (Post 485233)
thanks but there is a problem now:
Code:

Plugin failed to compile! Please try contacting the author.

Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/2/4/7/4/5/16620.attach(8) : fatal error 100: cannot read from file: "fakemeta_util"

Compilation aborted.
1 Error.



i'm getting the same error as him. I need the working source code that can compile, thanks.


All times are GMT -4. The time now is 19:49.

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