OpenXcom Forum

Modding => Help => Topic started by: bulletdesigner on October 17, 2017, 10:11:44 pm

Title: double simultaneous shot
Post by: bulletdesigner on October 17, 2017, 10:11:44 pm
i´ve been looking in forum a way do to a double barrel gun but not shotgun (stormbolter) , but i tried in item the  ->   shotgunPellets: 2    but the spread is crazy and show no bulletsprite..
So is there any line to apply 2 times the damage in the same shot? Meaning i did a bulletsprite with 2 bullets even it still counts as the same projectile
Title: Re: double simultaneous shot
Post by: Solarius Scorch on October 17, 2017, 11:43:40 pm
Not sure what effect you're going for, but you could try playing arouns with shotgunChoke and shotgunSpread. (You're using OXCE+, right?)
Title: Re: double simultaneous shot
Post by: ohartenstein23 on October 17, 2017, 11:51:13 pm
Assuming OXCE+:
Code: [Select]
items:
  - type: STR_STORMBOLTER
    shotgunBehavior: 1 # Turns on improved shotgun code
    ...
  - type: STR_STORMBOLTER_CLIP
    shotgunPellets: 2
    shotgunSpread: 5 # Accuracy of "second" shot is 100 - spread = 95 to hit same target as "first" shot