mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 19:43:46 +00:00
Energy weapons
This commit is contained in:
parent
7f69b8fa0f
commit
2f76d4742e
12 changed files with 144 additions and 24 deletions
25
Resources/Items/LaserWeapon.tres
Normal file
25
Resources/Items/LaserWeapon.tres
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[gd_resource type="Resource" script_class="LootItem" load_steps=4 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"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_2blkp")
|
||||
ItemName = &"Laser"
|
||||
ShortName = &"Laser"
|
||||
ItemDescription = &"Laser"
|
||||
ItemKey = &"LASER_WEAPON"
|
||||
Item = 9
|
||||
Tier = 0
|
||||
Price = 0
|
||||
WeaponData = ExtResource("2_rec72")
|
||||
Amount = 1
|
||||
Max = 1
|
||||
PickupIfMaxed = false
|
||||
ConsumeOnUse = false
|
||||
UiType = 1
|
||||
Selectable = true
|
||||
AutoPickup = false
|
||||
InventorySprite = ExtResource("1_h548w")
|
||||
DropScenePath = &"res://Scenes/Items/GenericItem.tscn"
|
||||
26
Resources/Weapons/LaserWeapon.tres
Normal file
26
Resources/Weapons/LaserWeapon.tres
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[gd_resource type="Resource" script_class="WeaponResource" load_steps=5 format=3 uid="uid://do0jwf5jhx1i5"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://eu6n6c5175y8" path="res://Resources/Bullets/simple_ice_bullet.tres" id="1_1h0tt"]
|
||||
[ext_resource type="AudioStream" uid="uid://jsv3yjluv1au" path="res://SFX/Weapons/Reload_01.wav" id="2_h0bjj"]
|
||||
[ext_resource type="AudioStream" uid="uid://cjg8r7bthkfsy" path="res://SFX/Laser_shoot 11.wav" id="3_iquwk"]
|
||||
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="4_70v4a"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("4_70v4a")
|
||||
Name = &"Laser"
|
||||
BulletData = ExtResource("1_1h0tt")
|
||||
Priority = 1
|
||||
AmmoPerShot = 2
|
||||
RateOfFire = 0.3
|
||||
BulletCapacity = 5
|
||||
ReloadTime = 0.6
|
||||
AutoReload = true
|
||||
InfiniteAmmo = true
|
||||
ItemKey = &"LASER_WEAPON"
|
||||
AmmoKey = &"SHIELD"
|
||||
BulletsPerShot = 1
|
||||
SpreadAngle = 5.0
|
||||
RandomSpread = 2.5
|
||||
_rotationOffset = 0.0
|
||||
ReloadSound = ExtResource("2_h0bjj")
|
||||
ShootSound = ExtResource("3_iquwk")
|
||||
Loading…
Add table
Add a link
Reference in a new issue