waited far too long for an initial commit but here we are
This commit is contained in:
19
PCs/Universal/ClassCards/Sniper/card_sniper.tres
Normal file
19
PCs/Universal/ClassCards/Sniper/card_sniper.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=7 format=3 uid="uid://cvf5bxtu6er17"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_5vmtk"]
|
||||
[ext_resource type="Texture2D" uid="uid://fmqq24n7rwvm" path="res://Assets/TextureAtlases/g_sniper.tres" id="2_skiu7"]
|
||||
[ext_resource type="Resource" uid="uid://85iany3x0uv2" path="res://Resources/WeaponStats/sniper.tres" id="3_acfmb"]
|
||||
[ext_resource type="PackedScene" uid="uid://v21rc7vtqp8l" path="res://Scenes/Weapons/scopedweapon.tscn" id="3_i0e3w"]
|
||||
[ext_resource type="Resource" uid="uid://ddw7pj1ckwmp8" path="res://Resources/TurretStats/sniper.tres" id="3_tfyul"]
|
||||
[ext_resource type="PackedScene" uid="uid://ryhc48vl36fc" path="res://Scenes/Towers/snipertower.tscn" id="4_kbb6b"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_5vmtk")
|
||||
title = "Sniper"
|
||||
rarity = 4
|
||||
faction = 0
|
||||
sprite = ExtResource("2_skiu7")
|
||||
turret = ExtResource("4_kbb6b")
|
||||
weapon = ExtResource("3_i0e3w")
|
||||
weapon_stats = ExtResource("3_acfmb")
|
||||
tower_stats = ExtResource("3_tfyul")
|
15
PCs/Universal/ClassCards/Sniper/scopedweapon.gd
Normal file
15
PCs/Universal/ClassCards/Sniper/scopedweapon.gd
Normal file
@ -0,0 +1,15 @@
|
||||
extends Weapon
|
||||
class_name ScopedWeapon
|
||||
|
||||
var scope_mask : Texture
|
||||
|
||||
|
||||
func hold_second_trigger():
|
||||
super.hold_second_trigger()
|
||||
$CanvasLayer.set_visible(true)
|
||||
hero.zoom_factor = 3.0
|
||||
|
||||
|
||||
func release_second_trigger():
|
||||
super.release_second_trigger()
|
||||
$CanvasLayer.set_visible(false)
|
18
PCs/Universal/ClassCards/Sniper/tower_sniper.tscn
Normal file
18
PCs/Universal/ClassCards/Sniper/tower_sniper.tscn
Normal file
@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ryhc48vl36fc"]
|
||||
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Assault/tower.gd" id="1_tmpm5"]
|
||||
[ext_resource type="Resource" uid="uid://ddw7pj1ckwmp8" path="res://Resources/TurretStats/sniper.tres" id="2_opda8"]
|
||||
|
||||
[node name="Node3D" type="Node3D" node_paths=PackedStringArray("model")]
|
||||
script = ExtResource("1_tmpm5")
|
||||
stats = ExtResource("2_opda8")
|
||||
model = NodePath("Model")
|
||||
|
||||
[node name="Model" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="Model"]
|
||||
|
||||
[node name="CSGBox3D3" type="CSGBox3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.776406)
|
||||
size = Vector3(0.481654, 0.427749, 1.38438)
|
85
PCs/Universal/ClassCards/Sniper/weapon_sniper.tscn
Normal file
85
PCs/Universal/ClassCards/Sniper/weapon_sniper.tscn
Normal file
@ -0,0 +1,85 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://v21rc7vtqp8l"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://fmqq24n7rwvm" path="res://Assets/TextureAtlases/g_sniper.tres" id="1_6a01i"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Sniper/scopedweapon.gd" id="2_qemq6"]
|
||||
[ext_resource type="Resource" uid="uid://85iany3x0uv2" path="res://Resources/WeaponStats/sniper.tres" id="3_3c36k"]
|
||||
[ext_resource type="Texture2D" uid="uid://bepgxu7wtcl1i" path="res://Assets/Textures/scopetest.png" id="3_pyugo"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_n8b32"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture:region")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Rect2(0, 0, 64, 64)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_g0h8q"]
|
||||
resource_name = "shoot"
|
||||
length = 0.15
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture:region")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.15),
|
||||
"transitions": PackedFloat32Array(0, 0),
|
||||
"update": 0,
|
||||
"values": [Rect2(64, 0, 64, 64), Rect2(0, 0, 64, 64)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ntl6p"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_n8b32"),
|
||||
"shoot": SubResource("Animation_g0h8q")
|
||||
}
|
||||
|
||||
[node name="Weapon" type="Sprite3D"]
|
||||
layers = 2
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("1_6a01i")
|
||||
script = ExtResource("2_qemq6")
|
||||
stats = ExtResource("3_3c36k")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ntl6p")
|
||||
}
|
||||
|
||||
[node name="RayCast3D" type="RayCast3D" parent="."]
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
layer = 2
|
||||
visible = false
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer"]
|
||||
clip_children = 1
|
||||
visibility_layer = 2
|
||||
texture_filter = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("3_pyugo")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/TextureRect"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
Reference in New Issue
Block a user