Garry's Mod

Garry's Mod

This item is incompatible with Garry's Mod. Please see the instructions page for reasons why this item might not work within Garry's Mod.
318 ratings
Anti-Cave Crash for Evocity V2D
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Roleplay
File Size
Posted
Updated
2.444 KB
7 Dec, 2012 @ 1:03pm
20 Dec, 2014 @ 5:41am
6 Change Notes ( view )

Subscribe to download
Anti-Cave Crash for Evocity V2D

Description
A fully working customizable anti-cave crash system for rp_evocity_v2d!

Features
  • Various Area Sizes
  • Various Punishment Options
  • Developer Support
  • Map Cleanup Support
  • Entities get removed if they enter the area.
  • Uses Sources own trigger system.
Options
There's a few configurable options which should help you get your desired effect.

Punishment Styles
Using cave_severity and the following number, we can set the action to be taken;
  • 0 : Do nothing
  • 1 : Teleports the player away from the cave and notifies them to not go near it. (DEFAULT)
  • 2 : Kills the player and notifies them not to go near it
  • 3 : Kicks the player with a reason of "You're not allowed to be near here".
  • 4 : Designed for Custom Behaviour
Area to restrict from
Using cave_strength and the following number, we can set how large we want the area to be
  • 1 : Covers the area just around the edge of the cave and everything in front of it. Lake is fully accessible.
  • 2 : The same as 1, however extends itself to just under half of the lake area. (DEFAULT)
  • 3 : Covers almost the entire lake area.
Developers

Two functions have been exposed to you, one called GAMEMODE:HandleCaveUser(player, severity) which allows you to create your own behavior as to how to handle a player that is in the area. Although not required, it is recommended to set severity (or cave_severity) to 4 for display sake.

The other is called GAMEMODE:HandleEntity(ent,severity). This allows you to control how entities (non player) are handled.

Other Notes
The severity can be changed on the fly, however the "strength" requires a map reload / cleanup to take effect.
36 Comments
Novel 10 Feb, 2019 @ 10:37am 
well. where is the original workshop map?
Teddi  [author] 10 Feb, 2019 @ 10:34am 
No idea, haven't tested this in years.
Novel 10 Feb, 2019 @ 3:58am 
does it create script errors?
Verda 1 Dec, 2016 @ 1:57pm 
Thanks bro, this has come in handy more than once
Teddi  [author] 5 Oct, 2016 @ 2:53pm 
Because Robotboy doesn't like the icon and feels it should be more "descript".
greybatter97 5 Oct, 2016 @ 1:11pm 
Why is it flagged?
Teddi  [author] 6 Sep, 2015 @ 3:05pm 
Short answer is you don't!
RoboRexton 6 Sep, 2015 @ 2:09pm 
How do I remove the "This server is protected by Version 5.01 of Teddi's anti-cave system." from the chatbox?
K.Z.I 12 Mar, 2015 @ 11:33am 
Why is the cave crashing the game anyway?
Teddi  [author] 24 Dec, 2014 @ 10:10am 
Well that depends on the severity. I can't stop users from spawning things inside the cave without being somewhat more intrusive with the code. I will see what I can do though.