Turrets like in -BOC - [Solved]

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
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Turrets like in -BOC - [Solved]

Post by sharp »

I've seen a Spaceman called Battle over Coruscant. It's a really great map and one of my favorite changes to it are the turrets.

They're shooting big blue lasers with the maximum of speed. I also want to implement this into my SPacemaps to enhance the feeling of the battle. How do I change my turrets to something in this way ?
Last edited by sharp on Wed May 20, 2015 8:26 am, edited 1 time in total.
hunpeter12
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Mon Apr 18, 2011 2:53 pm
Projects :: Underground City The Complex [WIP]
Games I'm Playing :: SWBF2

Re: Turrets like in -BOC -

Post by hunpeter12 »

Add/change these lines under properties in the turret's ordnance. (called "something_weap_something_ord.odf"):

Code: Select all

LaserTexture = "com_sfx_laser_blue" // the texture of the laser will be blue
LaserGlowColor = "249 42 42 100" //change this RGBA code to something bluish like "0 0 255 100"

//the following 2 lines determine the size of the laser, change these to suit your needs:
LaserLength = "6" 
LaserWidth = "0.35"

Velocity = "300" //the speed of the laser (in m/s I think), if you want it to go faster, change this line.
If you want the turret to fire faster add/change this line in your "something_weap_something.odf":

Code: Select all

ShotDelay           = "0.22" //this determines the time between 2 shots
You can toy around with other values as well, in both the main weapon and the ordnance odfs. Most of them are pretty easy to understand and work with. I recommend this list of odf parameters.
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Turrets like in -BOC -

Post by sharp »

Thank you very much, I'm going to test it out soon :)
Post Reply