Page 1 of 1

Make Droideka fire two bolts instead of one?

Posted: Thu Aug 02, 2018 4:09 pm
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?

Re: Make Droideka fire two bolts instead of one?

Posted: Sat Aug 04, 2018 2:33 pm
by wsa30h
am not too experience at this myself but did you look for a mod that has it ?

Re: Make Droideka fire two bolts instead of one?

Posted: Sat Aug 04, 2018 2:54 pm
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

Re: Make Droideka fire two bolts instead of one?

Posted: Sat Aug 04, 2018 3:58 pm
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.