Author Topic: Weapons ADD-ON Flashlight  (Read 1590 times)

Offline cevaralien

  • Captain
  • ***
  • Posts: 96
    • View Profile
Weapons ADD-ON Flashlight
« on: July 19, 2020, 09:37:43 pm »
Hi.

I'm trying to do an add-on on firearms that function like flashlight. I'm using the "ammo" compatibility, but when i load the mission, the rifle aren't there.

Quote
  - type: STR_RIFLE
    size: 0.2
    costBuy: 3000
    costSell: 2250
    weight: 8
    bigSprite: 1
    floorSprite: 1
    handSprite: 0
    bulletSprite: 2
    fireSound: 4
    ammo:
      0:
        compatibleAmmo: [STR_RIFLE_CLIP, STR_AA_RIFLE_CLIP]
        tuLoad: 5
        tuUnload: 2
      1:
        compatibleAmmo: [ STR_ELECTRO_FLARE ]
        tuLoad: 5
        tuUnload: 2
    confSnap:
      shots: 1
      name: STR_SNAP_SHOT
      ammoSlot: 0
    confAuto:
      shots: 4
      name: STR_AUTO_SHOT
      ammoSlot: 0
    confAimed:
      shots: 1
      name: STR_ONOFF
      ammoSlot: 1
    accuracyAuto: 35
    accuracySnap: 75
    accuracyAimed: 115
    tuAuto: 35
    tuSnap: 25
    tuAimed: 60
    battleType: 1
    twoHanded: true
    invWidth: 1
    invHeight: 3
    dropoff: 1
    meleePower: 50
    tuMelee: 25
    accuracyMelee: 100


I'm using electro flares as flashlight

Quote
  - type: STR_ELECTRO_FLARE
    size: 0.1
    costBuy: 60
    costSell: 40
    weight: 3
    bigSprite: 55
    floorSprite: 72
    power: 15
    battleType: 10
    armor: 8
    costPrime:
      time: 5
    costUnprime:
      time: 5
    primeActionName: STR_TURN_ON
    unprimeActionName: STR_TURN_OFF
    fuseType: -2
    fuseTriggerEvents:
      defaultBehavior: true
      throwTrigger: false

 What could be happened?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Weapons ADD-ON Flashlight
« Reply #1 on: July 19, 2020, 09:59:53 pm »
It's not possible to add flashlights to firearms in OXCE. The only thing you would be doing with this ruleset is for the rifle to fire the electroflare like it's a bullet.

Offline cevaralien

  • Captain
  • ***
  • Posts: 96
    • View Profile
Re: Weapons ADD-ON Flashlight
« Reply #2 on: July 21, 2020, 03:58:44 pm »
Ok, i understand. Thanks.