Mapping CoD4 ( tuto )


125 - Using Water


Source : Zeroy Wiki

The Basics



For this example, using mp_test.map;
Heli model removed and replace the ground brush with a Curve Patch (15x15)
then used the Patch tool 'Y' to change the ground level

Image

After selecting a water texture (aftermath_water here) i create a Terrain Patch (8x8) and place it slightly under main ground level

Image

Using the Texture tool 'S' I then strech the texture on X and Y quite a bit to remove the small riddles effect

This step usually requires tweaking after test in-game

Image

Water Sound/Effects



To add water sound/effects its quite simple: Select the water patch just created above and clone it using [ spacebar ].

Image Make sure to re-align the patch as the clone function will move the patch 1 unit X and 1 unit Y.

Once cloned apply the Tool Texture called Clipwater_player, (Alpha Blend)

Image Note that not all water texture can be alpha blended!

For this part re-select the original water patch created and place the 2D view in the Z axis.
Press 'V' on keyboard to bring up the vertices then using the mouse drag the middle points of the patch (this will be the area alpha-blended/transparent)

Image

Now press 'G' on keyboard to bring up the gVertex Editor, tick the 'alpha' option and select the amount of alpha required using the slider, look at the 3D window to see real-time results;

Image

When happy with results click Apply then de-select all and save!
The result - Note you can see the Crate trough water now

Image

Prefab


You can download the map prefab used above : HERE

Source : Zeroy Wiki