Call of duty bo3: Rain: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Intro == Several elements are needed to add rain into a MP/ZM map: * Clientscript for rain on player (rather than placing rain FXs in the map) * Weathergrime Volume (cont...") |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
* Volume decals with special raindrop material | * Volume decals with special raindrop material | ||
* Outdoor Occlusion Volume to kill rain FX indoors | * Outdoor Occlusion Volume to kill rain FX indoors | ||
NOTE: This is not a super-mega step-by-step hold-your-hand type tutorial, its for advanced Radiant users to an extend | |||
== Clientscript == | == Clientscript == | ||
Line 73: | Line 75: | ||
== Outdoor volume == | == Outdoor volume == | ||
* | * In radiant you have to add an outdoor volume covering your whole playable area. ( Make sure to check enabled0-3, else the rain goes through your brushes still ) | ||
* The Pitch is set for Rain straight down, this can set set also for angled Rain | * The Pitch is set for Rain straight down, this can set set also for angled Rain | ||
* Make a copy of zm_usermap.gsc and copy that into your map folder. Make sure to include it into your zone. | |||
* Open the file and find this line: | |||
level util::set_lighting_state( 1 ); | |||
And replace with this: | |||
level util::set_lighting_state( 0 ); | |||
== Assets == | == Assets == | ||
* Download example Asylum / Verruckt map setup with Rain and LightStates [ HERE | * Download example Asylum / Verruckt map setup with Rain and LightStates [https://mega.nz/#!xZl1kZQJ!BrdPtjc18-v1XXAMfrgJiUGY8DBAo1c6EpNf-bJobGY HERE] | ||
== Snow? == | |||
[https://wiki.ardivee.com/article/snow/ This way ] | |||
== Credits == | == Credits == |
Latest revision as of 00:27, 19 June 2019
Intro
Several elements are needed to add rain into a MP/ZM map:
- Clientscript for rain on player (rather than placing rain FXs in the map)
- Weathergrime Volume (controls size and pitch of rain drop impacts)
- Volume decals with special raindrop material
- Outdoor Occlusion Volume to kill rain FX indoors
NOTE: This is not a super-mega step-by-step hold-your-hand type tutorial, its for advanced Radiant users to an extend
Clientscript
- Script is included in the assets on last part
- Here is the main script that controls the player Rain:
function rain_player( localclientnum ) { self endon( "disconnect" ); self endon( "entityshutdown" ); self.rain_fx_tag = Spawn( localClientNum, self.origin, "script_model" ); self.rain_fx_tag setModel("tag_origin"); self.rain_fx = PlayFxOnTag( localClientNum, level._effect[ "player_rain" ], self.rain_fx_tag, "tag_origin" ); SetFXIgnorePause( localClientNum, self.rain_fx, true ); SetFXOutdoor( localClientNum , self.rain_fx); while(1) { waitrealtime( 0.1 ); if(level.rain_fx_enabled) { if(!isdefined(self.rain_fx)) { self.rain_fx = PlayFxOnTag( localClientNum, level._effect[ "player_rain" ], self.rain_fx_tag, "tag_origin" ); SetFXIgnorePause( localClientNum, self.rain_fx, true ); SetFXOutdoor( localClientNum , self.rain_fx); } self.rain_fx_tag.origin = self.origin; } else { if(isdefined(self.rain_fx)) { DeleteFX( localclientnum, self.rain_fx ); self.rain_fx = undefined; } } } }
Weathergrime Volume
- The volume decal will not display anything until the rain setting in the weathergrime volume is > 0
- The higher the rain setting (0-1) the more rain drops will appear
- You must also set the WeatherPitch to 90 which indicates the rain is coming from above
- The tiling will dictate how the drops are set on the volume decals
Volume Decals
- You must place a volume decal on every surface where rain drops should appear
- There are 2 stock materials for raindrops:
t7_decal_raindrops t7_decal_raindrops_fast
- You must rotate the volume decal as per usual to get the material to show
- If Weathergrime Volume is properly setup you should see the rain drops in Radiant
- You can use the feathering to attenuate raindrops on the non Z axis (depending how you rotate the decal)
Outdoor volume
- In radiant you have to add an outdoor volume covering your whole playable area. ( Make sure to check enabled0-3, else the rain goes through your brushes still )
- The Pitch is set for Rain straight down, this can set set also for angled Rain
- Make a copy of zm_usermap.gsc and copy that into your map folder. Make sure to include it into your zone.
- Open the file and find this line:
level util::set_lighting_state( 1 );
And replace with this:
level util::set_lighting_state( 0 );
Assets
- Download example Asylum / Verruckt map setup with Rain and LightStates HERE
Snow?
Credits
Ardivee
ZeRoY
Treyarch