Hey. I Have had a long break from Tiberian Sun modding, and now I'm a little rusty, so I've already encountered a small problem which I'm sure I'd of been able to overcome 3 months ago. For Twisted Insurrection, There is a building called "The Coastal Gun Battery" which is both a Turret, and a Base together.
I've got no idea what I'm going to have to put in the art and rules.ini to get this working properly. Help would be greatly appreciated.
(I Feel embarrassed asking for help on such a simple matter) QUICK_EDIT
I've already done it, but it doesn't help me in any way, as I said, this is both a turret and a base together, and the turret isn't a voxel, which makes this all-the-more awkward. QUICK_EDIT
Well, you can try to make the turret as a seperate animation, and look at the codes of the EMP cannon. Just change the voxel animation into your specific SHP animation (with voxel=no of course).
You can also make a dummy, invisible building, which would act as the base, even when all of the graphics are in the turret. This way, however, you can't have any damage frames. _________________ QUICK_EDIT
EDIT: Didn't notice that both the turret and the base were merged, just make a 3 frames transparent SHP with the same size as the turret, and call it CGUNBAT (as an example), then call CGUNBAT_A to the animation containing the base and the turret. However I would suggest separating them because you won't be able to have damaged frames. Last edited by Machine on Tue Apr 29, 2008 5:02 pm; edited 1 time in total QUICK_EDIT
You can also make a dummy, invisible building, which would act as the base, even when all of the graphics are in the turret. This way, however, you can't have any damage frames.
Could you post up a code as an example please? I don't have the .INI files handy presently. I Had the dummy base idea in mine, but I wasn't sure how i was to work it, I used a similar method with the Overcharge idea, as stated in different thread, but had no luck.
Edit: Just missed machines post. Time to try it out. QUICK_EDIT
You can also make a dummy, invisible building, which would act as the base, even when all of the graphics are in the turret. This way, however, you can't have any damage frames.
Machine wrote:
I would suggest separating them because you won't be able to have damaged frames.
Actually you can have a damaged turret anim; just have a separate SHP for the damaged turret anim (call it cgunbat_ad.shp or whatever) and then add TurretAnimDamaged=CGUNBAT_AD to the code of the building in rules.ini. Make sure the art.ini code for CGUNBAT_AD exists (you can just copy the code of CGUNBAT_A for this) and also don't forget to add it to the animation list in Rules.ini. _________________ QUICK_EDIT
Thanks guys. I've gone for the Invisible base idea, I'm unable to test it in game because I've got an issue over here, However, The gun battery appears listed under the civilian section in FinalSun, and I can select it and place it on the map, though all I can see is the foundation outline not the structure, is it normal not to see an SHP turret in FinalSun? QUICK_EDIT
Joined: 18 Jun 2005 Location: Dordrecht, the Netherlands
Posted: Wed Apr 30, 2008 9:57 am Post subject:
Ehmm, no. The Nod Sam site has an shp turret, and it's still visible in FS (even though FS will freeze if you want to place it when you give it a new shp turret) QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum