Shooting and stuff
Hi, Im kartik form Madhat Game Studios. This is our 4th Devlog. Today let’s talk about the implementation of mechanics in our game Rebirth. Let me walk you through the shooting mechanic that we implemented in the game. The initial step would be creating a base class of weapons which consists of necessary properties like Base Damage, Bullet Distance, Rate of Fire, Clip Size, Skeletal mesh for weapons, Reload time, Rounds per shot, spread etc. Once the base class is created then we inherit from that class to sub weapon classes.
So basically the gun has three parts namely body, muzzle (the tip of the gun barrel), magazine. The necessary functionality needed for shooting is implemented via line tracing. Once the line tracing results in hit of an object then we find the rotation between the muzzle and the object. After finding the rotation we spawn a bullet in the same direction. This is the basics of shooting mechanic. Now the next step is to improve on the same which includes adding necessary gun animations for individual weapon and balancing between firing and animations. It is done via trial and errors so that both the animations and the bullets firing are synchronous. Also the burst firing (in case of shotgun) is handled during the same process which involves spawning of multiple bullets and decreasing the bullet distance. Both the properties are modified in the respective child classes. I think this is pretty much it about the shooting.
Let’s talk about the bullet spread or recoil of the weapon. This mechanic plays crucial role in the game as it is a survival game and also makes the handling of weapon much realistic. Right now it is implemented by altering the rotation found between the target hit and the muzzle. The spread (property) value tells the horizontal and vertical spread needed for the current weapon. This is how we are currently implementing the recoil for our weapon. This is all about the weapon handling that are currently working now. Let’s talk about the damage part and the AI in the coming weeks. Until then take care and thank you for reading. Also feel free to help us if you find some better way of doing the same. You can also check our game page below.
https://www.facebook.com/madhatgamestudios/
Thanks for Reading!
Get Rebirth
Rebirth
This is just a demo version of our current project.
Status | Prototype |
Author | madhatgamestudios |
Tags | First-Person, Horror |
More posts
- Switch to vertex painting!Jan 05, 2019
- Post Processing is the man!Nov 24, 2018
- Another small update after 14 days!Nov 17, 2018
- Just a an update of what's happening this weekNov 03, 2018
- Quality vs performance of the game.Oct 20, 2018
- Weekly update on our game RebirthOct 06, 2018
- Game level design and lighting progress.Sep 29, 2018
- Detailing the levelsSep 08, 2018
- Just Coding And Other StuffSep 01, 2018
Leave a comment
Log in with itch.io to leave a comment.