Make Droideka fire two bolts instead of one?

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
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Make Droideka fire two bolts instead of one?

Post by modmaster13 »

Hey guys, in the base game of BF2, the Droideka fires only one bolt per arm, but in the films the droid fires two bolts per arm like in this image:
Hidden/Spoiler:
Image
How could I go about implementing this?
wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

Re: Make Droideka fire two bolts instead of one?

Post by wsa30h »

am not too experience at this myself but did you look for a mod that has it ?
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Make Droideka fire two bolts instead of one?

Post by Deviss »

LaserTexture = "bbe_sd_turbolaser_beam_red_double"
//LaserTexture = "ptc_sfx_droideka_laser"
LaserGlowColor = "255 4 4 100"
LightColor = "255 3 3 150"
LightRadius = "5"

LaserLength = "5.0"
LaserWidth = "0.2"
GlowLength = "6"
BlurLength = "7"

and lastertexture must have 2 laser and not one, yeah isnt "Real" dual laser, its effect for transparency into one texture, until i know, it isnt possible that you wish :S
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Make Droideka fire two bolts instead of one?

Post by Bob »

You actually can make it shoot 2 bolts at once. Have a look at weapons that do this, like the shotguns or even more suited for what you want to do, the wookie bowcaster. This is what does the magic in the weapon's ODF:

Code: Select all

ShotsPerSalvo           = 7
ShotPatternCount        = 7
ShotPatternPitchYaw     = "0.0 0.0"
ShotPatternPitchYaw     = "0.0 -0.7"
...
ShotsPerSalvo defines how many shots are fired when you pull the trigger, for 2 bolts we want to set that to 2.
ShotPatternCount should be set to the same value. It lets you define a shot pattern and maybe does more, don't exactly know. The pattern itself is defined by several ShotPatternYaw lines (as amny as shots are fired)
ShotPatternPitchYaw defines the offset from hp_fire, meaning the point the shot is fired from, the droideka's 'hand' in this case. First number is pitch offset (vertical), second the yaw offset (horizontal).
Since we have 2 shots from right next to each other, set up two ShotPatternPitchYaw lines, with values like "0.0 0.5" & "0.0 -0.5".

Now there is another problem, the droideka alternates between hands every shot. Shots, not trigger pulls, meaning we have two bolts at once, but one from each hand, which isn't how droideka's roll (heh). We want two shots from one hand at once, don't we.
In case you don't get what I'm on about, just test it now and you'll see.
Look inside the droideka's ODF:

Code: Select all

AimerYawLimits          = "-40.0 40.0"
AimerPitchLimits        = "-25 25"
AimerNodeName           = "hp_gun_1"
FireOutsideLimits       = "1"

NextAimer           = "-"

AimerYawLimits          = "-40.0 40.0"
AimerPitchLimits        = "-25 25"
AimerNodeName           = "hp_gun_2"
FireOutsideLimits       = "1"
This part defines the switching of firepoints after firing a shot. Basically, the first bolt comes from hp_gun_1, the next from hp_gun_2 and since there is no NextAimer line after that it defaults back to the start, hp_gun_1. To achieve the wanted effect of hp_gun_1 -> hp_gun_1 -> hp_gun_2 -> hp_gun_2, you simply replace that with

Code: Select all

AimerYawLimits          = "-40.0 40.0"
AimerPitchLimits        = "-25 25"
AimerNodeName           = "hp_gun_1"
FireOutsideLimits       = "1"

NextAimer           = "-"

AimerYawLimits          = "-40.0 40.0"
AimerPitchLimits        = "-25 25"
AimerNodeName           = "hp_gun_1"
FireOutsideLimits       = "1"

NextAimer           = "-"

AimerYawLimits          = "-40.0 40.0"
AimerPitchLimits        = "-25 25"
AimerNodeName           = "hp_gun_2"
FireOutsideLimits       = "1"

NextAimer           = "-"

AimerYawLimits          = "-40.0 40.0"
AimerPitchLimits        = "-25 25"
AimerNodeName           = "hp_gun_2"
FireOutsideLimits       = "1"
Makes sense, right? These two things should get you the wanted effect. I've done that myself years ago, and since I've lost pretty much every modding I ever did in a HDD crash I don't have my references, so it might not be perfect yet. Just let me know and together we regain that lost knowledge.
You also might want to lower heat and spread per shot since you are basically firing twice as fast now. You can also employ RoundsPerClip, ReloadTime and ShotDelay to bring your droideka into a pewpew - pewpew rythm instead of the vanilla pew pew pew pew, ifyouknowwhatimsaying.
Post Reply