Author Topic: [SOLVED] Custom Craft (plane) weapon has unlimited ammo  (Read 1995 times)

Offline Amiga

  • Colonel
  • ****
  • Posts: 129
  • Amiga4ever....
    • View Profile
    • White Wolf Untold Story PL (my rpg game based on Witcher saga)
    • Email
[SOLVED] Custom Craft (plane) weapon has unlimited ammo
« on: February 28, 2018, 11:24:15 am »
Hi folks!
After 3yrs of break I've returned to modding and I need some advice. So NEW craft weapon:

craftWeapons:
  - type: STR_PHOENIX
    sprite: 0
    sound: 4
    damage: 70
    range: 50
    accuracy: 70
    reloadCautious: 38
    reloadStandard: 30
    reloadAggressive: 18
    ammoMax: 4
    launcher: STR_PHOENIX_LAUNCHER
    clip: STR_PHOENIX_MISSILE
    projectileType: 0
    projectileSpeed: 6



and now items available to buy/sell:


items:
 - type: STR_PHOENIX_MISSILE
    size: 0.4
    costBuy: 500
    costSell: 200
    transferTime: 48
  - type: STR_PHOENIX_LAUNCHER
    size: 0.8
    costBuy: 25000
    costSell: 12000
    transferTime: 48


Weapon working fine ect. Only one issue exist:
Craft with this weapon needs 4 ammo to be fully reloaded. The problem is that with this 4 ammo I can reload even 4 launchers. Single ammo is not taken from store.
Other strange thing I've noticed that in shop normal ammunition supposed to be in light pink color with small TAB on left. But for my launcher it isn't. It's normal white color like launcher.
Of course if I will not buy 4 missiles from store I will be not able to rearm launcher - so launcher is connected with missiles properly ect.


P.S
hmm I've just discovered that I don't have rearmRate in my craft weapon. Is it necessary ?

« Last Edit: February 28, 2018, 03:37:57 pm by Amiga »

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1939
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Custom Craft (plane) weapon has unlimited ammo
« Reply #1 on: February 28, 2018, 01:45:32 pm »
P.S
hmm I've just discovered that I don't have rearmRate in my craft weapon. Is it necessary ?


No, rearmRate defaults to 1 (per half hour), the issue is that you don't have a clipSize definition on STR_PHOENIX_MISSILE - I'm guessing you want it to be 1 to represent each missile being a single item.

Offline Amiga

  • Colonel
  • ****
  • Posts: 129
  • Amiga4ever....
    • View Profile
    • White Wolf Untold Story PL (my rpg game based on Witcher saga)
    • Email
Re: Custom Craft (plane) weapon has unlimited ammo
« Reply #2 on: February 28, 2018, 02:04:16 pm »
No, rearmRate defaults to 1 (per half hour), the issue is that you don't have a clipSize definition on STR_PHOENIX_MISSILE - I'm guessing you want it to be 1 to represent each missile being a single item.

So do I need to set up clipSize to 1 or 4 for STR_PHOENIX_MISSILE ?


<<UPDATE>>

You were right!
I've just checked
- type: STR_STINGRAY_MISSILES
    size: 0.4
    costBuy: 3000
    costSell: 2400
    transferTime: 48
    clipSize: 1


and indeed there is clipSIze:1

Thanks again for clue
« Last Edit: February 28, 2018, 02:24:35 pm by Amiga »

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1477
    • View Profile
Re: [SOLVED] Custom Craft (plane) weapon has unlimited ammo
« Reply #3 on: March 09, 2018, 05:27:05 am »
Balance advice:

This missile has between stingray and avalanche range, being able to outrange most alien craft. Its total damage throughput is lower than avalanche, while stingray is higher than avalanche. These missiles aren't as large as avalanche but are still a bit of a space hog. Compared to vanilla missiles, I'd say their range means I'd definitely want to use them over stingrays most of the time, while the lower damage throughput means sometimes stingrays could be useful. I wouldn't pick these over avalanche even given the smaller size. They're less powerful and with less range.

Just offering comparison to vanilla weapons.