Introduction
I should warn you now that this tutorial is not for beginners. I will assume a strong basic understanding of Half-Life map editing.
Some people may be curious to know how the special effects work in my map Gmdm2. This series of tutorials will explain how to recreate these effects within the framework of the Gmdm2 mod. It won?t explain how to recreate them in normal Half-Life because?.well, that?s impossible. You can create similar effects without my mod., but they won?t be as good. For example, you could create a rolling boulder from world brushes rather than a model; you would not be able to create the dust trail and ripple effects.
I will write this tutorial as though you are working with me on the example maps. You don?t have to do this of course! If you do want to follow the tutorials and compile the example maps as you go, you will need to download my mod. first:I should point out that very little of the mod. is my own work. It is based on Spirit of Half-Life, with additional doors code by James Bielby. I used the Spirit FGD file for making my map, since I was too lazy to augment it with my changes. I will assume that you are also working with the Spirit FGD, which you can download here:You can download the example maps for each tutorial separately, or you can get them all at once here:
Part one: doors
Gmdm2 features shootable doors that change the routes between areas. There are a number of important properties to note:
Load the example map ?map1?. I have made all the geometry and lighting for you. I have also built the example sets of doors with which we shall work, but I haven?t set any of their special properties yet. All I have done is set them to move in the right direction by the right amount, and given them names. Compile the example map if you like, to see what we are starting with. At the moment the doors will not open.
Before we make a control system for the doors, we need to change some of their properties. Use the entity report to select all 3 doors, and give them the following properties:
This method may seem overly complicated. Trust that I have good reasons for using it! You will find it necessary when setting up more complicated situations. Compile the map and test what happens. You must shoot the door to open it.
Now we will make a more complex system. Create a relay with:
Compile the map; you will find that only one of the doors can be used to trigger the sequence; in order to close them, you will have to go around to the correct side to shoot this door. Only the doors that have the master key set will trigger the sequence. You could, of course, make these parts stay stationary if you wished.
This completes the first tutorial. In the next tutorial, I will show you how to make a basic train that interacts correctly with the doors. In the final tutorial, I will show you how to transform this train into a rolling boulder.
Continue to part 2 >>>
I should warn you now that this tutorial is not for beginners. I will assume a strong basic understanding of Half-Life map editing.
Some people may be curious to know how the special effects work in my map Gmdm2. This series of tutorials will explain how to recreate these effects within the framework of the Gmdm2 mod. It won?t explain how to recreate them in normal Half-Life because?.well, that?s impossible. You can create similar effects without my mod., but they won?t be as good. For example, you could create a rolling boulder from world brushes rather than a model; you would not be able to create the dust trail and ripple effects.
I will write this tutorial as though you are working with me on the example maps. You don?t have to do this of course! If you do want to follow the tutorials and compile the example maps as you go, you will need to download my mod. first:I should point out that very little of the mod. is my own work. It is based on Spirit of Half-Life, with additional doors code by James Bielby. I used the Spirit FGD file for making my map, since I was too lazy to augment it with my changes. I will assume that you are also working with the Spirit FGD, which you can download here:You can download the example maps for each tutorial separately, or you can get them all at once here:
Part one: doors
Gmdm2 features shootable doors that change the routes between areas. There are a number of important properties to note:
- Doors have several moving parts, which do not get out of synchronisation
- Doors are triggered by shooting
- You can choose which parts of a door can be shot
- Doors have a delay before they may be triggered again
- Doors can have a different sequence for opening than for closing
Load the example map ?map1?. I have made all the geometry and lighting for you. I have also built the example sets of doors with which we shall work, but I haven?t set any of their special properties yet. All I have done is set them to move in the right direction by the right amount, and given them names. Compile the example map if you like, to see what we are starting with. At the moment the doors will not open.
Before we make a control system for the doors, we need to change some of their properties. Use the entity report to select all 3 doors, and give them the following properties:
- Delay before close -1
- Damage inflicted when blocked 1000
- Health 1
- Move sound Track door (7)
- Stop sound Chunk (4)
- Don?t link
- Toggle
- Name door2_relay
- Target door2_mm
- restart 10
- Name door2_mm
- door2 0
- Master door2_relay
This method may seem overly complicated. Trust that I have good reasons for using it! You will find it necessary when setting up more complicated situations. Compile the map and test what happens. You must shoot the door to open it.
Now we will make a more complex system. Create a relay with:
- Name door1_relay
- Target door1_mm1
- target2 door1_mm2
- restart 10
- Name door1_mm1
- door1_1 0
- door1_2 1.5
- Name door1_mm2
- door1_1 1.5
- door1_2 0
- Master door1_relay
Compile the map; you will find that only one of the doors can be used to trigger the sequence; in order to close them, you will have to go around to the correct side to shoot this door. Only the doors that have the master key set will trigger the sequence. You could, of course, make these parts stay stationary if you wished.
This completes the first tutorial. In the next tutorial, I will show you how to make a basic train that interacts correctly with the doors. In the final tutorial, I will show you how to transform this train into a rolling boulder.
Continue to part 2 >>>