Weapons system

Author: Parker Boyer

Starting off is looking for gun models to use that worked for unreal engine 5.2 which there were constantly none that were free available for use leaving it difficult to test the weapons not only due to lack of player input but also having to use a cube as a testing gun. Second would be once having the system coded in scripts with c++ I realized my system won’t be able to work with the blueprints we had given the player. The biggest problem was when the bullets would get destroyed the second, they spawned in making it even more difficult to test if the bullet was doing damage or not. 

 

For using a gun model, we had a member who was able to take an asset that was for unreal 4.27 and put it into blender to convert it to work with 5.2 allowing me to use the model and put a muzzle socket at the end of the barrel allowing me to spawn the bullets from there. Having my coded gun and bullet not working with a blueprint player I just had to convert what I coded into blueprints and make a new BP_Bullet class to use instead of the coded version. With the bullet being destroyed instantly when they spawned it ended up having three of us trying to debug why this was happening looking at the bullet blueprint trying to get rid of the destroy actor function which even then did not help and even checking the colliders which were working as they should. Soon we had figured out the bullet was colliding with its own mesh causing it to be destroyed to fix this I simply disabled the bullets mesh collider and from there on worked as it was intended to.

 

 


Comments

Popular posts from this blog

Procedural Generation - Room NavMesh Spawning

Powerups and Wall clipping