full multiplayer plus new models

This commit is contained in:
2023-11-19 18:47:52 +11:00
parent 422c163dcd
commit edbb3261c6
126 changed files with 2343 additions and 492 deletions

View File

@ -1,9 +1,17 @@
[gd_scene load_steps=4 format=3 uid="uid://bjuc3x7u3f271"]
[gd_scene load_steps=5 format=3 uid="uid://bjuc3x7u3f271"]
[ext_resource type="PackedScene" uid="uid://dumiyjlnea4gq" path="res://Scenes/Towers/hitscan_tower.tscn" id="1_su74p"]
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Gatling/tower_gatling.gd" id="2_ipjp1"]
[ext_resource type="Resource" uid="uid://nxl5wabgl36t" path="res://PCs/Universal/ClassCards/Gatling/tower_stats.tres" id="3_oicqw"]
[ext_resource type="ArrayMesh" uid="uid://dler7wcqj0bm6" path="res://gattlemesh.res" id="4_wihc0"]
[node name="GatlingTower" instance=ExtResource("1_su74p")]
script = ExtResource("2_ipjp1")
stats = ExtResource("3_oicqw")
[node name="Pitch" parent="." index="1"]
visible = false
[node name="Yaw" parent="." index="2"]
transform = Transform3D(0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, 0.426474, 0)
mesh = ExtResource("4_wihc0")

View File

@ -25,6 +25,7 @@ func _process(delta: float) -> void:
func _physics_process(_delta: float) -> void:
if trigger_held and time_since_firing >= current_time_between_shots:
print(current_time_between_shots)
time_since_firing -= current_time_between_shots
shoot()
networked_shoot.rpc()

View File

@ -1,14 +1,16 @@
[gd_scene load_steps=5 format=3 uid="uid://dkxi1ssoa44jn"]
[gd_scene load_steps=6 format=3 uid="uid://dkxi1ssoa44jn"]
[ext_resource type="PackedScene" uid="uid://difwo7wlyqr3h" path="res://Scenes/Weapons/hitscan_weapon.tscn" id="1_fwlu5"]
[ext_resource type="Resource" uid="uid://cj2x1jvo8l4ot" path="res://PCs/Universal/ClassCards/Gatling/weapon_stats.tres" id="2_fnyjd"]
[ext_resource type="Texture2D" uid="uid://cx5cwn11fuugq" path="res://PCs/Universal/ClassCards/Gatling/gatling.png" id="2_rv8ps"]
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Gatling/weapon_gatling.gd" id="2_wm4al"]
[sub_resource type="AtlasTexture" id="AtlasTexture_0im1y"]
atlas = ExtResource("2_rv8ps")
region = Rect2(0, 0, 64, 64)
[node name="HitscanWeapon" instance=ExtResource("1_fwlu5")]
[node name="WeaponGatling" instance=ExtResource("1_fwlu5")]
script = ExtResource("2_wm4al")
stats = ExtResource("2_fnyjd")
[node name="Sprite3D" parent="." index="0"]

View File

@ -21,12 +21,12 @@ value = 20.0
[sub_resource type="Resource" id="Resource_ogk1x"]
script = ExtResource("1_vpmor")
key = "Speed Multiplier"
value = 2.0
value = 2.5
[sub_resource type="Resource" id="Resource_wdp3h"]
script = ExtResource("1_vpmor")
key = "Speed Time"
value = 3.0
value = 4.0
[resource]
script = ExtResource("1_630yu")
@ -34,4 +34,4 @@ target_type = 0
attributes = Array[ExtResource("1_vpmor")]([SubResource("Resource_fi7tc"), SubResource("Resource_r6h5d"), SubResource("Resource_gwg1i"), SubResource("Resource_ogk1x"), SubResource("Resource_wdp3h")])
text = "Fires a shot every /Fire Delay\\ seconds dealing /Damage\\ damage at a range of /Range\\m
While held, gradually accelerates to /Speed Multiplier\\x the fire rate over /Speed Time\\"
While held, gradually accelerates to /Speed Multiplier\\x the fire rate over /Speed Time\\s"