691
Help / Re: Weapons that use their own clipSize: for ammo vanish when empty?
« on: January 17, 2018, 07:11:28 am »Yes, you can define the ammo item (like for a normal rifle) and then it will not vanish.
I tried adapting the Rifle code by giving it a setting of clipSize: 6.
This made it display "AMMO: ROUNDS LEFT=6" on the inventory screen and 0 rounds left on the combat screen.
The message "No Ammunition Loaded!" displays when firing the rifle is attempted.
Code: [Select]
items:
- type: STR_RIFLE_ALT
size: 0.2
costBuy: 3000
costSell: 2250
weight: 8
bigSprite: 1
floorSprite: 1
handSprite: 0
bulletSprite: 2
fireSound: 4
compatibleAmmo:
- STR_RIFLE_CLIP_ALT
accuracyAuto: 35
accuracySnap: 60
accuracyAimed: 110
tuAuto: 35
tuSnap: 25
tuAimed: 80
battleType: 1
clipSize: 6
twoHanded: true
invWidth: 1
invHeight: 3
#
- type: STR_RIFLE_CLIP_ALT
size: 0.1
costBuy: 200
costSell: 150
weight: 3
bigSprite: 2
floorSprite: 2
hitSound: 22
hitAnimation: 26
power: 30
damageType: 1
clipSize: 20
battleType: 2