Skip to content

waimus/CryMonoFPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryMonoFPS

CryEngine 5 C# FPS Template.
Video: https://youtu.be/QemlT37_fSM

A custom FPS control in CryEngine C#. A lot of code are adapted from the C# thirdperson template which then modified to be an FPS game. Then more features are added by little research about using the C# API.

Features:

  • WASD key movement (based on the TPS template)
  • Mouse camera move rotation (based on the TPS templated, modeified to be an FPS camera)
  • Jump and sprint
  • Xbox and Playstation is assigned in the /Assets/libs/config/defaultprofile.xml but has NOT been tested with native controller input.
  • Hybrid shooting mechanic, uses raycasting under 20 meters, but bullet will act as projectile if aim target is more than 20 meters away. (Shooting is also based from the TPS template with a modification to use both raycasting and projectile under certain conditions).

Some Notes:

  • You probably have to load the Game.sln file at the root folder first and compile the solution to get the latest binary working. Some codes were updated without the new compiled binary uploaded here.
  • This project was created on CryEngine 5.6.6 build 79 and Visual Studio 2017
  • There are two solutions files. The one in the root folder is the game logic project solution, contains any gameplay mechanics implementation. The one located at Code/Game.sln is the program solution. Came with the CryEngine blank template, contains the game structure as a running program. So you may want to use the one at the root folder to modify the game logic.
  • Input mapping uses the /Assets/libs/config/defaultprofile.xml file and then controlled in the Player.cs
  • This is a pretty basic FPS controller but hopefully can help people to get started with C# in CryEngine

Releases

No releases published

Packages

No packages published