ShooterGame exploring
Contents
Exploring the functionality of the ShooterGame example
The purpose of this page is to collect and present information about the ShooterGame example that comes with the Unreal Engine (see the Marketplace to download it).
Background
ShooterGame is a C++ based example.
Additonal background can be found in the Official Documentation: https://docs.unrealengine.com/latest/INT/Resources/SampleGames/ShooterGame/index.html
Code
To generate the MS Visual Studio 2013 project file do the following:
1) Open windows explorer
2) Navigate to your ..\Unreal Projects\ShooterGame directory
3) Right-hand click on the ShooterGame.uproject to bring a context menu
4) Select "Generate Visual Studio Files"
You should now see a ShooterGame.sln in the same directory
[thanks goes to Robbie from the UE4 Skype chate for pointing this out]
Configuration of Game Variables
The file "/Config/DefaultGame.ini" is referred to by the game for data such as: WarmupTime=15 RoundTime=300 TimeBetweenMatches=15 KillScore=2 DeathScore=-1 DamageSelfScale=0.3 MaxBots=1
Key Bindings
Key bindings are found in the file /Config/DefaultInput.ini
Animation Code
The Player's animation code is found mostly in ShooterCharacter.cpp
The Player mesh is set in "ShooterGameMode.cpp" at line 7 where "/Game/Blueprints/Pawms/PlayerPawn" is passed to PlayerPawnOb. This is a Blueprint with additional information from the Editor.
The function to be called is "serverTravel()"