
We use cookies to help give you the best possible experience on our site. Strictly necessary and functional cookies support login and shopping cart features, they cannot be disabled. Performance cookies support site performance analysis. These are optional and will be disabled if you click on Reject.
By clicking Accept you agree to our use of Performance cookies as detailed in our Privacy Policy.
Hello everyone,
Today we’re continuing our monthly dev diary series. After a long development period, infantry is finally making its debut into Veil of Ashes! Therefore, this post will provide an overview of the infantry and some of its mechanics.
In Veil of Ashes, the infantry takes on several key roles: whether as anti-tank squads, pioneers, or simply specialized in engaging enemy infantry.
All types of infantry have one thing in common: they operate in squads consisting of several soldiers. Equipped with a variety of weapons, these squads can traverse almost any type of terrain, giving them a decisive advantage over vehicles.
First, let's talk about how an infantry unit is structured in Veil of Ashes.
As mentioned in the beginning, every infantry unit is organized as a squad consisting of several soldiers. Depending on the unit’s type and specialization, a squad contains varying numbers of soldiers equipped with different weapons. While individual soldiers have no significant armor and therefore offer little defensive resistance against vehicles, squads are always equipped with two to three different types of weapons. Each soldier is assigned a specific weapon. These weapons fire different types of projectiles. While kinetic rounds are primarily effective against other infantry, the Lohenreich also uses them in anti-materiel rifles to target tanks. In addition, there are grenade launchers, which — depending on their specific type — are designed to target either armored vehicles or infantry.
However, units differ in more than just their weaponry. In the world of Veil of Ashes, various troops have undergone different training or gained different experiences. In the game, this is reflected primarily in their stats and abilities, in addition to their equipment. Consequently, this determines how many hits a soldier can withstand, how quickly they can spot enemies, and how accurate they are when firing.
When it comes to abilities, we distinguish between weapon-based abilities and those used for support purposes. Many infantry units can sprint to reach their destination faster. In addition, various units can also use secondary weapons, such as throwing grenades or laying mines.
Let’s take the Venatores unit of the Sacrum Imperium as an example. This is an anti-tank squad consisting of seven Armati soldiers, the regular frontline troops. To fulfill their primary anti-tank role, three soldiers carry grenade launchers—the Georgini IIIvE. The remaining four soldiers, instead, are armed with Filipi IvB, a type of bolt-action rifles. As trained soldiers of the regular forces, the Venatores are relatively resilient compared to other infantry units and have both sprinting and grenade-throwing in their arsenal of abilities.
Within their squads, the infantry maintains a specific order regarding how individual soldiers behave and position themselves. This brings us to the next topic: formation.
Formation is an important mechanic for infantry. In development, this mechanic ensures that movement within the squad actually works and that soldiers don't just move toward their objective as a chaotic jumble.
Squads have designated positions within the unit to which soldiers are assigned. We distinguish between a standard formation and a loose formation. The standard formation helps the unit stay close together, making it easier to navigate through urban environments. On the other hand, the loose formation helps minimize casualties during heavy fire while also allowing the unit to move more easily through uneven terrain, such as forests.
To briefly address movement within the formation: In early stages of development, these positions were still rigidly assigned. As a result, soldiers moved in a somewhat unnatural way, often taking wide, circular paths to ensure they remained in their assigned spots. To improve this, we introduced a dynamic formation. Now, when moving, soldiers select positions that are closer to their current location. This ensures that the movement itself looks more natural and, as a result, more aesthetically pleasing.
Next, we’ll have a look at how individual soldiers behave within a squad. In principle, the squad itself dictates how a soldier reacts to their surroundings. For example, during attacks, a squad always focuses on a single, specific enemy unit. However, each individual soldier decides for themselves exactly which targets or soldiers within that enemy unit to attack, based on factors such as their weaponry and position.
During normal gameplay, the soldiers in a squad primarily move at a moderately fast jogging pace. This allows the infantry to easily reach their target positions. Of course, this is nothing compared to the movement speed of vehicles. To counteract this somewhat, infantry units have a sprint ability, enabling them to move approximately 50% faster for short bursts.
To make gameplay a bit more dynamic while moving, we’ve also added the ability for infantry to fire at their enemies while on the move. While this requires opponents to be positioned roughly in the direction of travel, it ensures that players don’t lose any time attacking while moving into a more advantageous position. However, this does not apply to all weapon types, and it wouldn’t make much sense if this were possible while sprinting.
Now let's move on to the most important aspect of a unit in a strategy game: how to deal and take damage.
Before the actual attack, the squad must first be able to attack enemy units. In Veil of Ashes, we distinguish between the states of units based on their different stances, which determine how they react to enemy troops. This means that even infantry has four different ways of reacting to hostile targets.
In the aggressive stance, the unit automatically attacks and pursues its primary target if it is outside the attack range. In the defensive stance, the unit also attacks automatically but otherwise holds its position. In addition, there is the reactive stance, in which the unit only attacks once it’s under fire. Just as in the defensive stance, the unit holds its position here. There is also the passive stance, in which the unit acts only on command.
When attacking, each unit prioritizes those enemies against whom it is capable of dealing damage.
Let's assume that our infantry unit is currently in a defensive stance and an enemy is nearby; then we move on to the actual attack. Depending on the weapon, it takes the infantry varying amounts of time to fire the first projectile. First, the weapon is aimed at the target. At this point, animations and visual effects are triggered; the muzzle flash, in particular, is a key component of the attack sequence. After that, we fire the projectile. For the projectile, we also calculate the weapon’s spread and the unit’s accuracy, which influence the actual trajectory. We then fire one round from the soldier’s magazine—or several, if it’s a shotgun. Once the magazine is empty, we must reload with the corresponding animation. If the target is still alive, the attack sequence repeats.
Now let’s look at how individual soldiers react when they take damage. Of course, we first need to determine just how much damage that actually is. If a unit takes too much damage, they won’t survive, and the squad loses one of its soldiers. At the same time, this offers the advantage in a loose formation that only a few soldiers are affected by explosive fire at once. If a soldier is hit this way, they’re sent flying with a nice ragdoll animation. The amount of damage and the direction of the projectile determine how far and in which direction the soldier is thrown.
But what if the damage is somewhat less severe? The unit survives, but that’s not the end of it. It would be a bit boring if you couldn’t tell the difference in the soldiers’ reactions, so we’ve added hit reaction animations. Just like with the death animation, the direction of the attack determines how the soldier reacts. If the shot comes from the front, the upper body is pushed back slightly. Similar reactions occur for attacks from other directions as well.
Finally, we’d like to briefly discuss the art aspect of the infantry. Infantry soldiers are initially composed of two primary elements - the body mesh and the weapon. The body determines the soldier’s appearance, but animations and other data - such as how the weapon is held - are also important aspects of it. The body is assembled in advance from several parts to allow for as much variation as possible in the soldiers’ appearances. To give just a brief overview of the animation work: Depending on the character’s position and orientation relative to the target, there is an upper-body rotation - a so-called “aim offset” - which we use to enable the infantry to fire at targets earlier, before precise alignment is necessary.
A major challenge with this dynamic rotation is ensuring that the soldier keeps their weapon held correctly in both hands. To make this possible, a multitude of small animations tailored to the weapon are necessary.
Before we wrap up this Dev Diary, we’d like to briefly highlight some upcoming infantry features in Veil of Ashes. We’d like to highlight two specific mechanics.
First is infantry speed. To ensure that infantry can be deployed more quickly into battle - especially on large maps - there will be vehicles specifically designed to transport infantry. This not only enables rapid deployment into battle but also provides increased protection before the infantry arrives on the battlefield.
The second mechanic is entrenching within buildings. We want to give infantry a better way to defend specific areas. By entrenching in buildings with dedicated slots, infantry will have improved protection until the building is destroyed, as well as the opportunity to fire upon enemy units from specific angles. Our goal here is to further expand the strategic possibilities available in the game and thereby enhancing the overall enjoyment of the game.
We hope you've gained a good overview of the infantry and are already looking forward to seeing them in action.
If you have any questions or comments, please feel free to post them in the comments section and join the community on Discord to not miss any of our exclusive insights and updates!
Wishlist Veil of Ashes now (LINK).