Call of Duty 4: Portals1

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Jump to: navigation, search

By One_Richard

Rgn warning.png
Nutshell.png
This tutorial will show you how to apply portals in to a single prefab house.

There are two textures we use for portals:

Portals 1.jpg Portals 2.jpg

They can be found in Textures > Locale > Tools


Example

This is a basic prefab of a house with a couple of doors, windows, some objects inside and some exterior details.

House1.jpg


Thinking about creating a cell, what I do first is to simplify the prefab by selecting all those structurals elements that can interfere with portals by making them non structurals and change them in to detail.

With the brushes selected in the 2D window you can Right Click> Make Detail or simply go to Menu>Selection>Make Detail.

House2.jpg


Note that all those elements changed in to detail now in the 2D window are displayed as green.

House3.jpg


Press F to open the filter window, Uncheck some options including ¨Detail¨, This will hide unnecessary elements, leaving a basic structure more easy to work with.

House4.jpg


Next step is to seal all exits, windows and doors of the prefab with the texture Portal No Draw. to prevent errors, make sure that all brushes are aligned to the outer edge of the walls and everything is correctly sealed with no leaking.

House5.jpg


Now, select all the exterior faces of the Portal No Draw brushes by holding Shift+Control and Left click with your mouse, then apply to it the texture Portal.

House6.jpg


If everything is ok, in game, any object inside this house wont be draw when player are in the outside (unless they look trough a window or Door).

House7.jpg


Same happen if you are inside, objects outside wont be draw when players are inside. we have a full working ¨Cell¨

House8.jpg


When placing the prefab in your map, it will work as an independent cell but also will be ready for outdoor portas.

House11.jpg


Though is a good idea to open up some stock prefabs in order to see how their portals are done.

House9.jpg


Doesn´t matter how complex they look, their portals are done most the same way. see the basic structure?

House10.jpg

Portals ingame with /r_showportals 1 :

Iw3mp2010122920022471.png