Post news Report RSS Weapons Development

Our programmer and designer, Rob, shares some of the gritty details that goes into designing a weapon for our TRPG in Unity. We also talk a little more about possible weapon combinations and reach out to the community to give their voice!

Posted by on

Greetings fellow game enthusiasts! I am Robert, lead programmer on Outland 17 : Void of Liberty. I'm writing here to share with you a look at the more technical side of the game's development. Particularly all things weapons, attacks, and things that generally go pew pew in the game.

The way weapons are set up in the game is that they are divided into two sides. A graphical side and a logic side. The graphical side is what you see on the screen. It looks like a musket, shoots a projectile, the muzzle flash it shows, the sound it plays, and how the weapon is handled by the character. The second side is the logic that tells it how many projectiles to fire, how much damage they do, what effects they have, and how much AP or uses they have.

Weapon logic has plenty of variables we are able to play with and change at will. This way, we are able to create many different weapons combinations. For example, if we wanted a gun that shot 7 missiles in a row and had a random chance to instant kill a person, we can do it.

The first question set of questions we ask is: what do we want to attack with this weapon? Is it something that can only attack enemies? Does it target allies like a heal? Does it hit an entire tier like a splash effect?

Next we determine some of the finer details: How many shots does it fire per hit? How much damage does it do? Does it have a cooldown on it? How much does it weigh?

Finally the finishing touches of does it have a secondary attack? What is the effective range and accuracy? Does it do a status effect like stun enemies or give AP back on successful hit?

With all of these controls at our disposal, we can create anything from a healing grenade that lowers enemy accuracy in the area to a long rifle with an under slung grenade launcher for splash damage!
By far the best aspect of the system is not that it already has so many options, but that it is also easy to add new elements to them too. Without adjusting any old code, we can add a new status effect or a new on hit bonus that stacks on top of the already customizable system.

We're all eager to balance and try new ideas for weapons all the time. The newest of additions to the build is the laser musket, which can currently be found as loot in the game. It has a chance to stun enemies on hit. Also, there is an AP restoration item that gives you an extra actions per turn. Always be on the look out for new guns and items and give feedback on any crazy futuristic-colonial ideas you may have!

If you haven't had a chance to yet, check out our Kickstarter and back the project or even just help us by sharing the link on your favorite social media. Thanks everyone, see you next time!

Post comment Comments
Guest
Guest - - 689,057 comments

First time on IndieDB and aspiring Unity developer here. I'm very new to game development in general, and I'm currently trying to learn all I can about C# with regards to Unity scripting. I found your article to be quite informative in demonstrating a modular design process in regards to weaponry, and I greatly appreciate all of the engine-side screenshots to show how it's done! :)

Reply Good karma Bad karma0 votes
GrenadeTree Author
GrenadeTree - - 29 comments

Thanks, I'm glad that it was helpful for you! I'll be posting more articles in even more detailed, so make sure to watch the game to get updates.

Reply Good karma+1 vote
kswef.com
kswef.com - - 4 comments

I have to agree with whoever wrote the first comment. I too am getting into game development and reading this gave me a better understanding unity scripting. Thanks!

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: