Auto Turrets...

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
ruasoh

Auto Turrets...

Post by ruasoh »

Has anyone messed with auto turrrets yet? Esp. the ones on the support ships (the acclamator class, blockade runner, etc.) I imagine there's a script somewhere linking them to the sides, but I've looked all through the mission lua's and turret & ship odfs and can't find anything in the documentation.
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Auto Turrets...

Post by Qdin »

I think I recall it's mentioned in the Docs somewhere
LordofEntropy

RE: Auto Turrets...

Post by LordofEntropy »

All the turret are in C:\BF2_ModTools\assets\sides\tur\ They made turrets their own side i guess. The space ones have tags tur_weap_spa_XXXX. Each turret has a couple files (some have 2, some have up to 4) so you'll have to look through each one to find the correct data to mod.
ruasoh

Post by ruasoh »

I figured out. You have to go into the cmn lua. Here's an example:
--ALL turrets
turretLinkageALL = LinkedTurrets:New{ team = ALL, mainframe = "all-defense",
turrets = {"all_turr_1", "all_turr_2", "all_turr_3", "all_turr_4", "all_turr_5", "all_turr_6", "all_turr_7"} }
turretLinkageALL:Init()

just add a "all_turr_x" for each rebel turret you add.
Post Reply