View Single Post
Old 04-02-2008, 05:42 PM   #35 (permalink)
beng
Senior Member
 
Join Date: Jan 2008
Posts: 704
Default

By the way, the american wall has animations that are not used in the EA games implementation (except for the reallydamaged conditionstate). The animations make the laser beams look like they are beaming.

One way to do straight walls is to make each wall segment have an ObjectCreationUpgrade (with ProductionUpdate of course, needed for object level upgrades) which OCLs the next wall segment at an appropriate offset distance in front of it (Disposition = LIKE_EXISTING so it faces the right way, with Offset = X:[length of wall segment] y:0 z:0).

You then get the dozer to build the first segment, and then select that segment and click a button to buy the upgrade that causes the OCLing of the next segment, and then select that segment and buy the upgrade that causes the OCLing of the next segment, and so on.

The wall object should have a UpgradeDie module to free the upgrade in the previous segment, so if a wall segment is killed, you can rebuild it from the previous segment by re-buying the upgrade.

In order to create a temporary gap in the wall (say for your own units to move through) you should give the wall object a suicide weapon and an AIUpdate module and a button to suicide it. You could just use a sell button to sell it but then if you sell it it does not free the upgrade since it does not die, and you cannot then close up the gap by re-buying the upgrade from the previous existing segment.

Another way to fire a suicide weapon if you don't want to add an AIUpdate module (which may be good for saving CPU time, i suspect AImodules may consume more resources than some others) is to use another ObjectCreationUpgrade module which calls an OCL which fires a suicide weapon, in the manner of the OCLs that fire the Nuke silo's nuke missile weapon. You then don't even need the WeaponSet.

You can arrange for the OCLs to also add hubs at the end of each wall segment, but a better way is to do away with separate hub objects altogether by either having no hubs, or having the hubs as part of the wall segment model, because using UpgradeDie gets tricky when you OCL more than one thing, since if you OCL a wall segment and a hub and both have UpgradeDie, and then one of those two things gets destroyed, then you can re-buy the upgrade to patch up the gap in the wall and the OCL will make 2 things again instead of just replacing the one destroyed thing, and one of them will be on top of the non-destroyed previous thing, which won't look nice and makes the wall of uneven strength.

The GLA wall is fine without hubs. The China wall is also ok without hubs. But the America wall doesn't look right since the lasers need a hub at the end to terminate them. Therefore i suggest editing the W3D model for the American wall to add the hubs on each end, or using the unused wall model ABSECUWALL which has built in hubs and one laser only.

regarding the China wall, since it's segments are smaller than the American and GLA walls, they should be cheaper and faster to upgrade to extend the wall.


Note: for the above method using ObjectCreationUpgrade to extend walls in a straight line, you should not have LINEBUILD in the KindOf, else it does not deduct from your money to build, and you should reiatin DEFENSIVE_WALL to make vehicles not drive through it.

Last edited by beng; 04-02-2008 at 05:49 PM.
beng is offline   Reply With Quote