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

Offline zee_ra

  • Colonel
  • ****
  • Posts: 121
    • 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: 2999
    • 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).