Implemented battery weapons

This commit is contained in:
Marco 2025-08-13 16:51:56 +02:00
commit 54fa750bca
20 changed files with 372 additions and 264 deletions

View file

@ -12,17 +12,12 @@ ShortName = &"IC-9"
ItemDescription = &"Cirno\'s custom gun, shoots ice pellets and never runs out of ammo"
ItemKey = &"ICICLE_GUN"
Item = 9
Tier = 0
Price = 0
WeaponData = ExtResource("1_itajb")
WeaponData3D = ExtResource("3_nh721")
Amount = 1
Max = 1
PickupIfMaxed = false
ConsumeOnUse = false
UiType = 14
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("2_eaoas")
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"
DropScenePath3D = &"uid://cnot7sft7lpf3"

View file

@ -1,8 +1,9 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://ckfqrq8a0uj1t"]
[gd_resource type="Resource" script_class="LootItem" load_steps=5 format=3 uid="uid://ckfqrq8a0uj1t"]
[ext_resource type="Texture2D" uid="uid://d04hnwyg3sqlu" path="res://Sprites/Items/LaserWeapon.png" id="1_h548w"]
[ext_resource type="Resource" uid="uid://do0jwf5jhx1i5" path="res://Resources/Weapons/LaserWeapon.tres" id="2_rec72"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_2blkp"]
[ext_resource type="Resource" uid="uid://d2tgk8rnd4sfs" path="res://Resources/Weapons/LaserWeapon_3D.tres" id="3_rec72"]
[resource]
script = ExtResource("3_2blkp")
@ -11,16 +12,12 @@ ShortName = &"Laser"
ItemDescription = &"Laser"
ItemKey = &"LASER_WEAPON"
Item = 9
Tier = 0
Price = 0
WeaponData = ExtResource("2_rec72")
WeaponData3D = ExtResource("3_rec72")
Amount = 1
Max = 1
PickupIfMaxed = false
ConsumeOnUse = false
UiType = 22
Selectable = true
AutoPickup = false
InventorySprite = ExtResource("1_h548w")
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"
DropScenePath3D = &"uid://cnot7sft7lpf3"

View file

@ -5,7 +5,6 @@
[resource]
script = ExtResource("2_p6a7h")
LevelId = 0
MapName = &"iso Test"
MapDescription = null
ScenePath = &"uid://ec4m3geediis"

View file

@ -11,7 +11,6 @@
[resource]
script = ExtResource("1_fmydh")
EggIndex = 0
StartingEquipment = Array[ExtResource("1_xjbmv")]([ExtResource("1_juefn"), ExtResource("2_xjbmv")])
RemoveEquipment = Array[ExtResource("1_xjbmv")]([ExtResource("1_wchkt"), ExtResource("2_2v4s6"), ExtResource("3_73lvc"), ExtResource("4_vnxsw")])
metadata/_custom_type_script = "uid://mja0rk7n2kln"

View file

@ -10,17 +10,12 @@ script = ExtResource("2_m8dps")
Name = &"Icicle Gun"
BulletData = ExtResource("1_sd6j2")
Priority = 1
AmmoPerShot = 1
RateOfFire = 0.1
BulletCapacity = 100
ReloadTime = 0.1
AutoReload = true
InfiniteAmmo = true
ItemKey = &"ICICLE_GUN"
AmmoKey = &""
BulletsPerShot = 1
SpreadAngle = 5.0
RandomSpread = 2.5
_rotationOffset = 0.0
ReloadSound = ExtResource("2_sd6j2")
ShootSound = ExtResource("3_sd6j2")

View file

@ -9,18 +9,17 @@
script = ExtResource("4_ld57e")
Name = &"Icicle Gun"
BulletData = ExtResource("1_d2kl0")
Priority = 1
AmmoPerShot = 1
RateOfFire = 0.1
Priority = 10
AmmoPerShot = 5
RateOfFire = 0.052999999999883585
BulletCapacity = 100
ReloadTime = 0.1
AutoReload = true
InfiniteAmmo = true
ReloadTime = 0.5
InfiniteAmmo = false
ItemKey = &"ICICLE_GUN"
AmmoKey = &""
BulletsPerShot = 1
AmmoKey = &"BATTERY"
RechargeTime = 0.19999999999708962
RechargeAmount = 5
SpreadAngle = 5.0
RandomSpread = 2.5
_rotationOffset = 0.0
ReloadSound = ExtResource("2_sdmjb")
ShootSound = ExtResource("3_hj8fq")

View file

@ -10,17 +10,11 @@ script = ExtResource("4_ai75q")
Name = &"Icicle Repeater"
BulletData = ExtResource("1_2567x")
Priority = 10
AmmoPerShot = 1
RateOfFire = 0.05
BulletCapacity = 6
ReloadTime = 0.5
AutoReload = true
InfiniteAmmo = false
ItemKey = &"ICICLE_REPEATER_T0"
AmmoKey = &"ICE_AMMO"
BulletsPerShot = 1
SpreadAngle = 0.0
RandomSpread = 0.0
_rotationOffset = 0.0
ReloadSound = ExtResource("2_2sfo4")
ShootSound = ExtResource("3_3qbca")

View file

@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="WeaponResource" load_steps=4 format=3 uid="uid://d2tgk8rnd4sfs"]
[ext_resource type="Resource" uid="uid://csmq6hngkx41e" path="res://Resources/Bullets/3D/icicle_gun_bullets_3D.tres" id="1_boxvv"]
[ext_resource type="AudioStream" uid="uid://c1au3v0mynil8" path="res://SFX/Weapons/Laser_shoot 7.wav" id="2_f21bu"]
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="4_wga0n"]
[resource]
script = ExtResource("4_wga0n")
Name = &"Laser"
BulletData = ExtResource("1_boxvv")
Priority = 1
AmmoPerShot = 2
RateOfFire = 0.3000000000029104
BulletCapacity = 5
ReloadTime = 0.6000000000058208
ItemKey = &"LASER_WEAPON"
AmmoKey = &"SHIELD"
SpreadAngle = 5.0
RandomSpread = 2.5
ShootSound = ExtResource("2_f21bu")