Jump to content

Aftershock: new ammo for old gun


acqsen

Recommended Posts

I am trying to change what ammo Drone Laser Gun is using, basically make a bigger batteries sole for drone energy guns. Cant seem to be working so far.

After some tinkering my Drone Laser Gun has no available ammo to choose.

My effeorts below. Could use some hints.

 

Equipment.txt

Added new battery, basically the old one with more charges.

Change caliber reference for Drone Laser Gun to point to new entry in caliber.txt

 

ListOfEquipment ARRAY 395

;#372

SubEquipment RECORD

id INT 283

name STR "Heavy Battery" ;;--moded here

equipslot STR "Backpack"

sortcode STR "Ammo"

hit_points INT 40 ;--moded here

building STR "Energy weapons factory"

time FLT 0.15 ;;--moded here

weight FLT 730 ;--moded here

origin STR "developed"

shape INT 3 ;"2x1"

twoHanded BOOL FALSE

mfg_tech STR "Energy weapons"

use_tech STR "Initial knowledge"

ready BOOL FALSE

empssensitive BOOL TRUE

cost_hum INT 1

cost_cyb INT 2

cost_psi INT 0

start_quant INT 0

anim_type STR "noweapon"

righthandhelper STR "parent_grenade"

lefthandhelper STR "parent_lgrenade"

model STR "tactical/models/weapons/humans/batt.txt"

iface_model STR "tactical/models/weapons/humans/batt.txt"

camera STR "tactical/configs/cameras/camera_ammo.txt"

lights STR "tactical/configs/lights/na-itemlights.txt.txt"

skeleton STR "tactical/anims/no_skel.txt"

gloss_model STR "share/models/interface/opt/ufopedia/equip/controlbatt.txt"

_use_ability_name STR "No training"

;prerequisities

PTR 0

;armour

PTR 0

;firearm

PTR 0

;selfammo

PTR 0

;receptacle

PTR 0

;addon

PTR 0

;autonom

PTR 0

;ammo

PTR 1

Ammo Ammo RECORD

caliber INT 23 ;"heavy battery" ;--moded here

speed INT 0

onepiece STR "T"

quantity INT 72 ;--moded here

sound_type STR "None"

explosion_sound STR "share/sound/wavs/equip/explosions/empty.wav"

END_OF_Ammo

;upgrade

PTR 0

;thrown

PTR 0

;ranged

PTR 0

;rangeimprover

PTR 0

;mode

PTR 1

Mode

Modes RECORD

ListOfMode ARRAY 1

SubMode RECORD

index INT 0 ;"None"

isammo STR "Prov"

;melee

PTR 0

;vehicle

PTR 0

;guided

PTR 0

;influencer

PTR 0

END_OF_SubMode

END_OF_ListOfMode

END_OF_Modes

END_OF_SubEquipment

 

 

;#74

SubEquipment RECORD

id INT 78

name STR "Dron laser gun"

caliber INT 23 ;"heavy battery"

 

 

 

Caliber.txt

Added new entry.

 

 

ListOfCaliber ARRAY 31

;#23

SubCaliber RECORD

id INT 31

name STR "H.battery"

us_name STR ""

si_name STR ""

default_ammo INT 372 ;"heavy battery"

END_OF_SubCaliber

END_OF_ListOfCaliber

END_OF_Caliber

 

 

 

Localization.txt

Added new entry

STR_RES

ID "Equipment/283::SHORT_NAME"

LOCALE "HBattery"

END_OF_STR_RES

STR_RES

ID "Equipment/283::NAME"

LOCALE "Heavy Battery"

END_OF_STR_RES

STR_RES

ID "Equipment/283::SHORT_DESCRIPTION"

LOCALE "This is the more capacious version of the standard batteries. It is used to power drone weapons."

END_OF_STR_RES

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...