Structures database is now installed. Currently going through the damage functions making sure structures can take enough of a beating from thirty mike mike. Materials having different properties require slightly different effects. Some entities will explode, some crumble, some give off secondary explosions. Fuel storage tanks when ignited should destroy any nearby lightweight vehicles or structures.
For testing I got make a new fast loading playground and recreated some scenes from a golden oldie, Novalogic's Comanche Maximum Overkill. Again forgive my programmer art/map design skills, they do what I need them to do.
Far too much fun. I'll get the bulk of this finished over the weekend. Some of the effects I want to achieve is a simple building collapse into dust (vertical movement into the ground masked by emitters and covered with a rubble mesh). I put in a few chimney stacks to see what I can do with those.
The gas station (we call them petrol stations or BBQ centres) is going to be a little tricky as like a lot of the more complex models in Combat Helo, they are reduced to single meshes for performance reasons. We had a discussion about blowing holes in mud compound walls and making them persistent, meaning a damaged wall will stay damaged for the duration of the campaign. What makes this tricky is that these walls are 500 instances. Internally the graphics card has one wall and draws the same geometry many times in different places. And variation in such structures has to be handled at the vertex shader level using some parameter that is unique to each of these 500 wall copies. With the Leadwerks engine you have two things you can vary, the vertex colour, and vertex alpha (one thing if you want to be pedantic). So we're going to implement a vertex shader to put 'breaches' into wall sections based on bit patterns in the mesh colour.
The idea being, rather than the literal approach in FPS games (hole at the position of missile impact) we'll adopt a tactical approach. A tactical breech will occur at a fixed location but enables a point of entry/escape in what would otherwise be static geometry. Functionally the same.
Scoring (yes post mission scores just like in the old days, when I didn't have grey hairs) are going to be calculated from the structure values of buildings/vehicles along with realism settings and mission difficulty. With deduction for ordinance expended and mission outcome.
Also I want to finish up the player edit dialogue this weekend (dedicated to getting the closed beta ready in August).
Have a fun weekend.
*update* AD has been working on special destruction objects.