View Single Post
Old 08-28-09, 01:33 PM   #4
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by iambecomelife View Post
While looking at the posts on the excellent playable Japanese campaign I couldn't help but notice a shot of an American battleship attacking some Japanese tanks onshore. For an upcoming mod I would like to add miscellaneous destructible shore targets - including buildings and vehicles - off the coasts of Europe. I already have some of the models ready but I am not sure of the creation process, so could somebody please post a tutorial, etc explaining how to make them? Thanks in advance - I would be very grateful!
Actually these are not meant to be "destructible" objects, only targets. When doing the invasions throughout the Pacific I wanted the BBs to shell the beaches prior to the Invasion forces and I needed something for them to shoot at. If I made it destructible then once the BB hits it, it would be destroyed and the ships would stop shooting. Not what I wanted. If they were destoyed I would have to put a LOT of targets and that could cause problems for people with slower computers.

While testing I found that the ships will shoot at Coastal Search Lights (but only during the day, not at night ????) so I cloned the Coastal Search Light and gave it a clever name, Coastal Search Light 2, changed the 3D model to the tank and placed it in different locations on the Island. I think I am going to either make some from trucks or change the tank to a truck, since there would be locations they did not have tanks.

Now the ships had something to shoot at, but it was kind of boring looking. So with some help from Nisgeis who explained the Particles.dat and how to get the effect I wanted, I simply added an entry for the oil smoke and linked it to the tank. So actually the tanks smoke all the time, not just when they are hit. But since you are in a sub and not sitting there watching the beaches, you don't notice that. As you attack the ships, you can see from your scope they are shelling the beach and things on the beach are smoking. So it gives a bit of "immersion factor" but is very easy to impliment. And this simple method gave me the effect I wanted without having to put hundreds of targets on the beach because they got destroyed as they were hit.

As for the comments on the bunkers, I do not know a lot about the damage zones. But according to Observer (not an exact quote) you need a collision sphere for the object to take damage. The sphere transfers the info to the damage boxes.
If you look at the bunkers you will see they only have a box. The box is "inside" the bunker and linked to a gun definition in the zones.cfg file. So it looks like they are only meant to damage the guns that are inside the bunker not the bunker itself. According to what Observer said they should not take any damage without the sphere. Maybe that was on purpose since the game probably can't replace or fix the guns once you destroy them. And I think in real life if you destroyed the guns guarding Tokyo bay, they would bring in some kind of artillary to replace it, even if it couldn't be put into the bunker due to it being damaged or destroyed.

So I think you can actually make the bunkers and/or the guns destructible, but there would not be any "damaged 3D model" so they would not show the damage. When I first started modding I made a Sen Toku playable and left the stock guns on the boat and when I got DCed and later surfaced the flakguns had simply disappeared, and in the zones.cfg the flakguns were listed as "distructible=yes" so maybe that would happen if you made the bunkers 'destructible'.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote