Revision Difference
Volume_Prefabs#561585
<cat>Dev.World</cat>
<title>Volume Prefabs</title>
<upload src="2f4/8d820ee62eccd5b.png" size="94188" name="image.png" />
Volume Prefabs are a collection of various triggers that have their unique effects once players enter the prefab. Almost all volumes have a 1x1x1 cube collider. Almost all are completely invisible in-game but apply specific effects to the player when interacted with.
#Terrain Trigger
As long as a player remains inside of this trigger, collisions with the terrain will be ignored. If you want to make an entrance into a cave or other structure that needs the player to go through the terrain, this trigger is for you.
⤶
Keep in mind that all underground structures must be inside of this trigger to prevent players from instantly dying due to antihack. The alternative solution is disabling the antihack protection for terrain using this parameter: `+antihack.terrain_protection 0`⤶
⤶
Some prefabs like cave, sewer and bunker parts already contain a terrain trigger – you don't need to add it again. You also cannot currently remove these built-in triggers from those prefabs.⤶
While a player is touching this trigger, collisions with the terrain will be ignored. If you want to make an entrance into a cave or other structure that needs the player to go through the terrain, this trigger is for you. To make the terrain clear, see “Alpha” in the Terrain tab.
⤶
Some triggers have other triggers or volumes built in, Terrain Trigger being one of them. ⤶
##Terrain Trigger has this volume built into it:⤶
- Environmentalvolumeunderground⤶
⤶
Keep in mind that all player-accessible underground areas must be inside of this trigger to prevent players from instantly dying and being kicked due to antihack. The alternative solution is disabling the antihack protection for terrain using this parameter: `+antihack.terrain_protection 0` (Not recommended)⤶
⤶
#*Terrain Trigger Noenv⤶
This does the exact same thing as the Terrain Trigger, just without the Environmentvolumeunderground volume. This is great for surface caves and monuments where you don’t want the screen to darken in areas under terrain.⤶
#Water Trigger
While players are inside of this trigger, visibility and interactions for all water related objects will be disabled, it will remove swimming and blurred vision but visibility becomes extremely dark as water triggers are usually needed underground. This may be helpful when your underground structure goes below the ocean level.
While a player is touching this trigger, all water on the map is temporarily removed for them, allowing them to move as if the water was never there. This is typically used to have underground areas that go under the ocean level. To ensure a seamless transition and avoid the sudden disappearance of water, it is recommended to block sightlines between players and any existing water when they enter the water trigger.
##Water Trigger has this volume built into it:⤶
- Environmentalvolumeunderground⤶
⤶
#*Water Trigger Noenv⤶
This does the exact same thing as the Water Trigger, just without the Environmentvolumeunderground volume. ⤶
#Water Culling Volume
Pretty much does the same thing as Water Trigger, except it does not make the whole area around you dark.
⤶
#Invisible Collider⤶
It's an invisible 1x1x1 meter cube that basically works like an invisible wall. Blocks projectiles and players.
⤶
#Prevent Player Movment⤶
(typo is a part of the prefab name) This works like an invisible collider but only for players – other forms of interactions with this wall (throwing/shooting through the wall, movement for NPCs) will remain active. You would most likely use this to stop a jump exploit in your monument without impacting PvP.⤶
This prefab culls (hides) the area of water within it. This area still acts as water, so players can still swim through it.
<upload src="b55f2/8dc50018bac29ec.png" size="183151" name="unnamed.png" />⤶
This is typically used in combination with the Water Trigger to have surface monuments that go under ocean level.
##Before⤶
<upload src="b55f2/8dc5001a9fe3eed.png" size="327455" name="unnamed (1).png" />⤶
##After⤶
<upload src="b55f2/8dc5001ba55f204.png" size="351226" name="unnamed (2).png" />⤶
⤶
⤶
#Invisible Collider⤶
Simply an invisible wall. Blocks projectiles and players.⤶
⤶
#Prevent Movment Volume⤶
Invisible wall that only affects players. NPCs, grenades, bullets, etc. are unaffected. Typically used to prevent players from getting in spots you don’t want them in. (Yes it is spelled Movment in the game files)⤶
#Ladder Trigger
When a player touches this trigger and they walk into the wall, the player will start climbing up. This will be helpful when you want to create a custom climbing prop or make static ladder prefabs usable.
This trigger is used to make anything climbable. When a player is touching it, it allows them to climb. This will be helpful when you want to create a custom climbing prop or make static ladder prefabs usable.
#Environment Volumes
There are five environment volumes that change the visuals around you. This may be suitable for better immersion inside various types of design – buildings, underground structure, caves, etc. Since 2021, new environment building variants have been added to let artists have more control over the visuals on a scene – **Building**, **BuildingDark** and **BuildingVeryDark**.
These prefabs change the visuals for a player, allowing for better immersion depending on the location of where it is used.
##EnvironmentVolumeBuilding
Makes the image slightly darker, just like when you are inside of a monument building or player base. Disables ambient sounds. (wind/bird sounds)
##EnvironmentVolumeBuildingDark⤶
Same functionality as EnvironmentVolumeBuilding, but with the stronger darkening effect.
##EnvironmentVolumeBuildingVeryDark⤶
Darkest variant of EnvironmentVolumeBuilding. It is not exactly pitch black, but it's really close to it.
##EnvironmentVolumeUnderground⤶
Makes everything completely dark, just like inside of a Water Trigger, except you will be able to see and interact with the water inside this trigger.
##EnvironmentVolumeTraintunnles⤶
(that's not a typo) Disables sun and sky dome, making everything around you very dark. Probably has no use in open area, but will be a great addition for any large underground structures – this will avoid any kind of situations when sun might glitch through geometry beyond the shadow draw distance.
⤶
#Hurt Triggers⤶
Their name are pretty much self-explanatory. Deals a certain amount of damage to player when colliding with this volume, higher volume type means more damage and lesser time to kill. There are four types of hurt triggers:⤶
Slightly darkens the player’s view, and makes shadows more prominent. Muffles/Reduces wind and bird noises.
⤶
##*EnvironmentVolumeBuildingDark⤶
Darkens the player’s view more, and makes shadows much more prominent. Muffles/Reduces wind and bird noises.
⤶
##*EnvironmentVolumeBuildingVeryDark⤶
Darkens the player’s view to nearly pitch black. Muffles/Reduces wind and bird noises.
⤶
##EnvironmentVolumeUnderground⤶
Fully darkens the player’s view. Removes Wind/Bird sounds. Adds cave ambience sounds.
⤶
##EnvironmentVolumeTraintunnles⤶
Disables the sun and skybox, making the sky pitch black. Adds a black fog that reduces view distance to around 125 meters. Probably has no use in open area, but will be a great addition for any large underground structures – this will avoid any kind of situations when sun might glitch through geometry beyond the shadow draw distance.
⤶
##EnvironmentVolumeUnderwaterLab⤶
(Unconfirmed, will update once fully tested)⤶
⤶
##EnvironmentVolumeNoSunlight⤶
(Unconfirmed, will update once fully tested)⤶
⤶
#Damage Triggers⤶
Their name are self-explanatory. Deals a certain amount of damage to player when colliding with this volume, higher volume type means more damage and lesser time to kill. Works and sounds the same as barbed wire. ⤶
There are four types of hurt triggers:⤶
* `Damage Trigger Low`
* `Damage Trigger Med`
* `Damage Trigger High`
* `Damage Trigger Death` 💀
⤶
You can see hurt triggers in action when trying to stand inside a working car shredder or under falling rocks at Giant Excavator Pit. `Damage Trigger Death` obviously just instantly kills anybody who colliders with this volume. (does not kill you if you have god mode enabled, but will slow you down)⤶
#Bandit Swamp Fog FX
<upload src="2f4/8d8202ccbdb8562.png" size="2366506" name="image.png" />
This is a volumetric fog from the Bandit Camp monument. No description needed.
#Safezonesphere
Safe Zone is a volume trigger a sphere collider (2 meter radius by default). Safe zone on custom maps works the same way as on outpost/bandit camp. You shoot – you die and receive a 30 minute long ban.
<bug>If you combine custom safe zones with vanilla safe zones, you will have a hostility marker visible whenever you attack or just shoot, even if there is no safe zone near you. Unfortunately the only solution is removing all default Rust safezone monuments.</bug>
#Radiation Spheres
There are three types of radiation sources:
* `Radiation High`
* `Radiation Med`
* `Radiation Low`
They have a corresponding radiation level and will do slower or faster damage on player, depending on source type. When it comes to vanilla approach for radiation levels, it's usually preferred to cover tier 3 monuments and best loot points with highest radiation level, especially if players are not meant to stay there for long, just like on top of launch site. `Med` and `Low` variants will fit the best for majority of your custom monuments.
#Comfort Volume
A sphere shaped volume that provides you comfort when staying inside of it. Perhaps a good thing to implement at safe zones for players to heal themselves slowly.
#Heat Volume
Currently it's purpose remains unknown. Need to be clarified.
<validate>It seems like volume does nothing in-game - needs more checks and, most likely, a fix if it's a confirmed broken prefab.</validate>
⤶
#Trigger Force⤶
Assumed to be a moving force just like on conveyor belts at Giant Excavator Pit. Their shape is not a standard one and may be confused to work with. Unfortunately it does not seem to work in-game.⤶
⤶
<validate>Requires additional tests – so far it looks like a broken prefab</validate>⤶
#Chair Invisible Static
An invisible variant of a handmade chair. Doesn't decay but can be destroyed with an ``ent kill`` command. Avoid using it on invisible chairs because there will be no way to add it back.
⤶
# List of Prefabs with Built-in Triggers & Volumes⤶
Coming very soon!⤶
Information gathered provided by the [Rust Map Making](https://discord.com/invite/HPmTWVa) community.