conforms file names to consistant standard

This commit is contained in:
2026-02-21 04:24:04 +11:00
parent 6b67dd9755
commit 5a4ad8633a
1991 changed files with 3836 additions and 7976 deletions

View File

@@ -0,0 +1,17 @@
[gd_scene format=3 uid="uid://dmbd7ivisjm3w"]
[ext_resource type="PackedScene" uid="uid://difwo7wlyqr3h" path="res://scenes/weapons/hitscan_weapon.tscn" id="1_y7piy"]
[ext_resource type="Script" uid="uid://bxqellvwo4d7n" path="res://weapons/overclock_weapon/scr_overclock_weapon.gd" id="2_5uumc"]
[ext_resource type="Resource" uid="uid://d3qmy6puuh1gl" path="res://weapons/overclock_weapon/weapon_stats.tres" id="3_tptkd"]
[ext_resource type="Texture2D" uid="uid://cufk22apg8kqv" path="res://weapons/overclock_weapon/tex_overclock_weapon.png" id="4_5uumc"]
[sub_resource type="AtlasTexture" id="AtlasTexture_tptkd"]
atlas = ExtResource("4_5uumc")
region = Rect2(0, 0, 64, 64)
[node name="HitscanWeapon" unique_id=892766960 instance=ExtResource("1_y7piy")]
script = ExtResource("2_5uumc")
stats = ExtResource("3_tptkd")
[node name="Sprite3D" parent="." index="0" unique_id=1457062627]
texture = SubResource("AtlasTexture_tptkd")

View File

@@ -0,0 +1,45 @@
class_name OverclockWeapon
extends Weapon
@export var raycast: RayCast3D
@export var range_debug_indicator: CSGSphere3D
var attack_range: float = 0.0
var effect_duration: float = 0.0
func _ready() -> void:
super._ready()
attack_range = stats.get_attribute("Range")
effect_duration = stats.get_attribute("EffectDuration")
raycast.target_position = Vector3(0, 0, -attack_range)
range_debug_indicator.radius = attack_range
raycast.global_position = hero.camera.global_position
func shoot() -> void:
super.shoot()
if raycast.is_colliding():
var target: CharacterBody3D = raycast.get_collider()
if target != null:
var target_hitbox: CollisionShape3D = target.shape_owner_get_owner(raycast.get_collider_shape())
if target_hitbox.get_parent() is TowerBase:
hit(target, target_hitbox.get_parent())
#if Data.preferences.display_self_damage_indicators:
#spawn_damage_indicator(raycast.get_collision_point())
networked_hit.rpc(get_tree().root.get_path_to(target), get_tree().root.get_path_to(target_hitbox.get_parent()))
func hit(_target: CharacterBody3D, target_hitbox: TowerBase) -> void:
#target_hitbox.damage(damage)
if target_hitbox.tower:
target_hitbox.tower.big_speed_buff_timer += effect_duration
@rpc("reliable")
func networked_hit(target_path: String, target_hitbox_path: String) -> void:
#var target: CharacterBody3D = get_tree().root.get_node(target_path)
var target_hitbox: TowerBase = get_tree().root.get_node(target_hitbox_path) as TowerBase
hit(null, target_hitbox)
#if Data.preferences.display_party_damage_indicators:
#spawn_damage_indicator(target.sprite.global_position)

View File

@@ -0,0 +1 @@
uid://bxqellvwo4d7n

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,41 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cufk22apg8kqv"
path.s3tc="res://.godot/imported/tex_overclock_weapon.png-31099b7d928688e00756575fb3a16175.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://weapons/overclock_weapon/tex_overclock_weapon.png"
dest_files=["res://.godot/imported/tex_overclock_weapon.png-31099b7d928688e00756575fb3a16175.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View File

@@ -0,0 +1,19 @@
[gd_resource type="Resource" script_class="CardText" format=3 uid="uid://d3qmy6puuh1gl"]
[ext_resource type="Script" uid="uid://bsuinotkvh7eu" path="res://scripts/resources/feature.gd" id="1_m84e5"]
[ext_resource type="Resource" uid="uid://dfup264h2pun7" path="res://scripts/features/heavy_rounds/heavy_rounds_feature.tres" id="2_gglou"]
[ext_resource type="Script" uid="uid://dg7gxxqfqxcmc" path="res://scripts/resources/cassette_text.gd" id="2_rl1ek"]
[resource]
script = ExtResource("2_rl1ek")
energy_type = 2
attributes = Dictionary[String, float]({
"Damage": 0.0,
"Effect Duration": 1.0,
"Energy": 20.0,
"Fire Delay": 0.3,
"Range": 100.0
})
features = Array[ExtResource("1_m84e5")]([ExtResource("2_gglou")])
text = "DESC_WEAPON_SPEED_INCREASER"
metadata/_custom_type_script = "uid://dg7gxxqfqxcmc"