Skip to main content

Posts

Showing posts with the label special effects

Particle Tests 2018

With the infantry mostly done, work continues on the particle system. Some of the particle elements have been migrated from the old project. But some parts have been reworked. If you don't have a particle debugging tool in your game, I suggest adding one. It's great to be able to "paint" with particles at the mouse cursor. It saves a lot of time. Instead of adding a unit to the map and having it shoot at another unit, different particle effects can simply be mapped to keyboard keys and dropped on to the map at will. The particles are arranged like this: [hit particle] ----[sound particle] ----for i in range(amount): --------[smoke particles] --------[fire particles] --------[spark particles] ----[crater particle] In the main code we can just call a ShellExplosion(target_position, size=6) to place a particle and let it control all subsequent values and sub particles.

More rockets and tech timeline.

I greatly reduced the rate of fire of the rockets and made them smaller. A single 60mm rocket now takes up the same space as a machine gun. A single vehicle should mount a large number of rockets to take advantage of their power. I also added a delay after a weapon is successfully fired. This means the rockets will fire in a staggered volley instead of all at once. I tried both styles and this looks better and creates less logic spikes. I think it needs more smoke and I'll be adding some rocket trails too. I'm still unsure of where to put the rockets in the tech ladder. In real life the Russians developed their rockets before the German invasion. They were first deployed in 1941. These early rockets were quite small though larger ones were developed later. The Germans designed and tested their first rockets as early as 1940 but they were not deployed until 1941. Larger rockets were introduced later. The rockets weren't mounted on vehicles until 1943, by whi...

Rockets

I finished working on the code for adding foliage and having some extra time I decided to experiment with the code for rockets. The original idea I had was that rockets would be large vehicle components that can be fired very quickly, regardless of how much manpower is used for reloading. They would use up a lot of ammo, so they would run dry after a short but devastating barrage. The problem here is that it's easy to take advantage of this by adding a lot of ammo, which is much smaller than in bulk than the rockets. There's also the problem of firing large caliber rockets. In real life rockets of up to 30cm were used, but I think that will be too powerful for the scale of combat in this game. lol. Somehow that one trooper survived the mother of all explosions... A 30cm rocket could contain nearly 30KG of explosive. That would be a very large explosion. I've tried to balance the game by using a simple equation to make bigger guns more powerful, but h...

Special effects.

Right now I'm working on the game's effects. Explosions, physical reactions, sounds etc... It's not easy to add really great effects without putting a drain on the Blender Game engine, so things will be as good as I can make them, but not at the expense of frame rate. Here's an enemy tank being bombarded by rockets. Hits by enemy weapons cause a vehicle to shake and rock. Later there will be more effects, such as rocket trails and a big explosion when the vehicle is destroyed. Here some infantry are getting hit by small arms fire. You can see the red section of their status bar increasing. This shows they are heavily shocked. When that happens their rate of fire and accuracy is decreased and they also can't move quickly. Finally here are some PBIs getting hit by automatic 40mm cannon fire. Machine guns and auto-cannons are very effective against enemy troops out in the open. The large caliber model also does splash damage, increasing the damage ...