aliens

Author Topic: [WEAPON] New Heavy Weapons  (Read 8947 times)

Offline zee_ra

  • Colonel
  • ****
  • Posts: 200
    • View Profile
Re: [WEAPON] New Heavy Weapons
« Reply #15 on: March 30, 2023, 05:16:12 am »
I've added new fields for custom short names in the ufopedia.

Example:

Code: [Select]
items:
  - type: STR_RIFLE
    confAimed:
      shots: 4
      name: STR_BIG_BOOM
      shortName: STR_BIG_BOOM_SHORT
    confSnap:
      name: STR_SMALL_BOOM
      shortName: STR_SMALL_BOOM_SHORT
    confAuto:
      shots: 2
      name: STR_SMALL_BOOM_X2
      shortName: STR_SMALL_BOOM_X2_SHORT

Code: [Select]
extraStrings:
  - type: en-US
    strings:
      STR_BIG_BOOM: "Big boom"
      STR_BIG_BOOM_SHORT: "Big (x{0})"
      STR_SMALL_BOOM: "Small boom"
      STR_SMALL_BOOM_SHORT: "Small"
      STR_SMALL_BOOM_X2: "Double boom"
      STR_SMALL_BOOM_X2_SHORT: "Small (x{0})"

Feature will be available in OXCE 7.4.1

I wonder if it is possible to provide kneeling and custom aiming bonuses to the specific shot configurations?

That is, is something like this possible:
Code: [Select]
confAimed:
  name: STR_LAUNCH_GRENADE
  kneelBonus: 300
  arcing: true
  accuracyMultiplier:
    firing: 0.5
    psiStrength: 0.5




Offline Yankes

  • Commander
  • *****
  • Posts: 3158
    • View Profile
Re: [WEAPON] New Heavy Weapons
« Reply #16 on: March 30, 2023, 11:43:30 am »
all properties like `accuracyMultiplier` have option to be overridden by specific script where you can add any conditions you like:
Code: [Select]
accuracyMultiplier: |
  # custom code
or put it in global script tho share it between multiple items (and this will be controlled by script tags).

Offline x-com_player

  • Sergeant
  • **
  • Posts: 17
    • View Profile
    • Email
Re: [WEAPON] New Heavy Weapons
« Reply #17 on: July 28, 2023, 07:18:15 pm »
Then the number of shots is number of rounds ×5/5, which is the least counter-intuitive, right?
 That would be weird.

Actually I have not touched that topic for time. If it's still relevant, my current config:
Code: [Select]
  - type: STR_LMG
    size: 0.3
    costBuy: 13500
    costSell: 10125
    weight: 19
    bigSprite: 211
    floorSprite: 211
    handSprite: 211
    bulletSprite: 20
    fireSound: 211
    compatibleAmmo:
      - STR_LMG_AMMO
    confAimed:
      shots: 1
      name: STR_AUTO_AIMED_SHOT
      shortName: STR_AUTO_AIMED_SHOT_SHORT
    confSnap:
      shots: 1
      name: STR_AUTO_SNAP_SHOT
      shortName: STR_AUTO_SNAP_SHOT_SHORT
    confAuto:
      shots: 2
      name: STR_AUTO_RAPID_SHOT
      shortName: STR_AUTO_RAPID_SHOT_SHORT
    accuracyAimed: 80
    accuracySnap: 35
    accuracyAuto: 25
    tuAimed: 70
    tuSnap: 25
    tuAuto: 30
    battleType: 1
    twoHanded: true
    invWidth: 2
    invHeight: 3

From where do you see that arcing shot depends on strength? Seems no.
« Last Edit: July 28, 2023, 07:21:31 pm by x-com_player »