This time a different GUIDE was followed which allowed me to set up a custom game class within the unreal script. The 'Classes' in UDK which I have come to learn work like a family tree, where there is parent classes at the top which branch out into sub classes or extensions of the parent classes. Take the 'UTGame' class for example (as this was the one I wanted to take parts from) is just an extension of another class stated further back in the tree.
The image below show the folder that was created and the unreal scripts that had to be inside in order to run my own game type.
Custom game mode folder tree |
Here is defined what kind of game this is. In this case my game (GaryGame) extends the UDKGame class. |
This class allowed me to gain all the functionality of the UTPlayerController which enables my character to move around and crouch. |
This is my custom sound class which extends the UTPawnSoundGroup, this is where I have now placed my custom footstep sounds. |
With this in place I had to let UDK know where to look for my custom class so that the unreal script could be recompiled correctly, this had to specified within the UDK configuration file "DefaultEngin.ini" as shown below.
Now with my custom game mode functioning (AT LAST) the next step is to revisit the issue surrounding the footstep sounds.
No comments:
Post a Comment