58 lines
2.0 KiB
Plaintext
58 lines
2.0 KiB
Plaintext
[gd_resource type="Resource" script_class="WeaponResource" format=3 uid="uid://cbxau8flaoifg"]
|
|||
|
|
|
||
|
|
[ext_resource type="PackedScene" uid="uid://x8oniabn746q" path="res://addons/Weapons/Scenes/MuzzleFlashParticleScene.tscn" id="2_4d7vg"]
|
||
|
|
[ext_resource type="AudioStream" uid="uid://b88waak17hcaf" path="res://Sound/effect/reloading-weapons.mp3" id="2_wwj3m"]
|
||
|
|
[ext_resource type="AudioStream" uid="uid://db15o7lfgctub" path="res://Sound/effect/ak.mp3" id="3_mqb0n"]
|
||
|
|
[ext_resource type="Script" uid="uid://bnhfyt5sl8jcd" path="res://addons/Weapons/Scripts/WeaponResourcesScript.gd" id="4_i0hia"]
|
||
|
|
|
||
|
|
[sub_resource type="Curve" id="Curve_eo1mu"]
|
||
|
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.097493, 1), 0.0, 0.0, 0, 0, Vector2(0.643454, 0.0704225), 0.0, 0.0, 0, 0, Vector2(1, 0.0492958), 0.0, 0.0, 0, 0]
|
||
|
|
point_count = 4
|
||
|
|
|
||
|
|
[resource]
|
||
|
|
script = ExtResource("4_i0hia")
|
||
|
|
weaponName = "AssaultRifle"
|
||
|
|
weaponId = 2
|
||
|
|
type = 1
|
||
|
|
animBlendTime = 0.2
|
||
|
|
equipAnimName = "EquipAnimAssaultRifle"
|
||
|
|
unequipAnimName = "UnequipAnimAssaultRifle"
|
||
|
|
shootAnimName = "ShootAnimAssaultRifle"
|
||
|
|
reloadAnimName = "ReloadAnimAssaultRifle"
|
||
|
|
shootSound = ExtResource("3_mqb0n")
|
||
|
|
reloadSound = ExtResource("2_wwj3m")
|
||
|
|
totalAmmoInMag = 30
|
||
|
|
totalAmmoInMagRef = 30
|
||
|
|
ammoType = "MediumAmmo"
|
||
|
|
equipTime = 0.2
|
||
|
|
unequipTime = 0.2
|
||
|
|
canAutoShoot = true
|
||
|
|
nbProjShotsAtSameTime = 1
|
||
|
|
nbProjShots = 1
|
||
|
|
minSpread = -0.03
|
||
|
|
maxSpread = 0.03
|
||
|
|
maxRange = 290.0
|
||
|
|
damagePerProj = 25.0
|
||
|
|
damageDropoff = SubResource("Curve_eo1mu")
|
||
|
|
headshotDamageMult = 2.0
|
||
|
|
timeBetweenShots = 0.11
|
||
|
|
reloadTimePerPart = 2.1
|
||
|
|
baseRotSpeed = 7.0
|
||
|
|
targetRotSpeed = 8.0
|
||
|
|
recoilVal = Vector3(0.08, 0.04, 0)
|
||
|
|
position = Array[Vector3]([Vector3(0.194412, -0.18, -0.144264), Vector3(0, 3.142, 0)])
|
||
|
|
tiltRotSpeed = 7.0
|
||
|
|
tiltRotAmount = 0.3
|
||
|
|
minSwayVal = Vector2(-20, -20)
|
||
|
|
maxSwayVal = Vector2(20, 20)
|
||
|
|
swaySpeedPos = 0.1
|
||
|
|
swaySpeedRot = 0.1
|
||
|
|
swayAmountPos = 0.2
|
||
|
|
swayAmountRot = 40.0
|
||
|
|
bobFreq = 0.009
|
||
|
|
bobAmount = 0.022
|
||
|
|
bobSpeed = 10.0
|
||
|
|
onIdleBobFreqDivider = 1.5
|
||
|
|
muzzleFlashRef = ExtResource("2_4d7vg")
|
||
|
|
showMuzzleFlash = true
|