mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-18 21:43:47 +00:00
Shooting
This commit is contained in:
parent
1229613def
commit
341f76d885
17 changed files with 156 additions and 55 deletions
24
Resources/Bullets/icicle_gun_bullets_3D.tres
Normal file
24
Resources/Bullets/icicle_gun_bullets_3D.tres
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[gd_resource type="Resource" script_class="BulletResource" load_steps=3 format=3 uid="uid://csmq6hngkx41e"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://byc67yxbkefyk" path="res://Scenes/Weapons/bullet_3D.tscn" id="1_qojek"]
|
||||
[ext_resource type="Script" uid="uid://dslyrfcej3g2n" path="res://Scripts/Resources/BulletResource.cs" id="3_xep6w"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_xep6w")
|
||||
BulletScene = ExtResource("1_qojek")
|
||||
BulletSpeed = 10.0
|
||||
Direction = Vector2(1, 0)
|
||||
BulletDamage = 0.4
|
||||
MaxDamage = 1.0
|
||||
Knockback = 100.0
|
||||
LifeTime = 10.0
|
||||
DestroyOnCollision = true
|
||||
Owner = 1
|
||||
DamageType = 3
|
||||
RotateSprite = false
|
||||
Controllable = false
|
||||
Freezable = true
|
||||
Grazeable = false
|
||||
GrazeValue = 0.2
|
||||
Attributes = 256
|
||||
TimeModifiers = []
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
[gd_resource type="Resource" script_class="LootItem" load_steps=4 format=3 uid="uid://cs3ihltcn2166"]
|
||||
[gd_resource type="Resource" script_class="LootItem" load_steps=5 format=3 uid="uid://cs3ihltcn2166"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://b8apu0l5fm4k" path="res://Resources/Weapons/IcicleGun.tres" id="1_itajb"]
|
||||
[ext_resource type="Texture2D" uid="uid://duwiasewxvcb5" path="res://Sprites/Items/Icicle_Gun.png" id="2_eaoas"]
|
||||
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="2_hy2hk"]
|
||||
[ext_resource type="Resource" uid="uid://bohkmf6g1fi2o" path="res://Resources/Weapons/IcicleGun_3D.tres" id="3_nh721"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_hy2hk")
|
||||
|
|
@ -14,6 +15,7 @@ Item = 9
|
|||
Tier = 0
|
||||
Price = 0
|
||||
WeaponData = ExtResource("1_itajb")
|
||||
WeaponData3D = ExtResource("3_nh721")
|
||||
Amount = 1
|
||||
Max = 1
|
||||
PickupIfMaxed = false
|
||||
|
|
|
|||
26
Resources/Weapons/IcicleGun_3D.tres
Normal file
26
Resources/Weapons/IcicleGun_3D.tres
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[gd_resource type="Resource" script_class="WeaponResource" load_steps=5 format=3 uid="uid://bohkmf6g1fi2o"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://csmq6hngkx41e" path="res://Resources/Bullets/icicle_gun_bullets_3D.tres" id="1_d2kl0"]
|
||||
[ext_resource type="AudioStream" uid="uid://jsv3yjluv1au" path="res://SFX/Weapons/Reload_01.wav" id="2_sdmjb"]
|
||||
[ext_resource type="AudioStream" uid="uid://d16xfhll0fujt" path="res://SFX/Ice_Shot.wav" id="3_hj8fq"]
|
||||
[ext_resource type="Script" uid="uid://b6fmrnipv88bk" path="res://Scripts/Resources/WeaponResource.cs" id="4_ld57e"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("4_ld57e")
|
||||
Name = &"Icicle Gun"
|
||||
BulletData = ExtResource("1_d2kl0")
|
||||
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_sdmjb")
|
||||
ShootSound = ExtResource("3_hj8fq")
|
||||
Loading…
Add table
Add a link
Reference in a new issue