Base Weapons

Place in world, pick up and drop working on multiplayer
This commit is contained in:
Twirpytherobot
2025-11-15 16:03:38 +00:00
parent 791b1557c7
commit 86db6865b7
144 changed files with 3582 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=3 uid="uid://c76hql634gf5"]
[ext_resource type="ArrayMesh" uid="uid://cc1kxfbkvpo2d" path="res://assets/Objects/swordlowpoly.obj" id="1_8p8s3"]
[node name="BaseWeaponScene" type="Node3D"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.5366993, -2.9846973, -3.4840996)
mesh = ExtResource("1_8p8s3")
+7 -1
View File
@@ -4780,12 +4780,13 @@ properties/3/path = NodePath("3DGodotRobot:rotation")
properties/3/spawn = true
properties/3/replication_mode = 1
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("_body", "_spring_arm_offset")]
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("_body", "_spring_arm_offset", "_weapon_attachment")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
collision_mask = 3
script = ExtResource("1_tdh26")
_body = NodePath("3DGodotRobot")
_spring_arm_offset = NodePath("SpringArmOffset")
_weapon_attachment = NodePath("3DGodotRobot/RobotArmature/Skeleton3D/WeaponPoint")
blue_texture = ExtResource("4_max2b")
yellow_texture = ExtResource("3_l3dv8")
green_texture = ExtResource("4_74ree")
@@ -5006,6 +5007,11 @@ mesh = SubResource("ArrayMesh_0hcp6")
skin = SubResource("Skin_gooby")
surface_material_override/0 = SubResource("StandardMaterial3D_1ln88")
[node name="WeaponPoint" type="BoneAttachment3D" parent="3DGodotRobot/RobotArmature/Skeleton3D"]
transform = Transform3D(-0.95200163, -0.30448738, -0.031308167, 0.30294672, -0.9519023, 0.045883153, -0.043773204, 0.03419612, 0.99845606, -0.64481956, 1.0056509, 0.02542795)
bone_name = "hand.R"
bone_idx = 16
[node name="AnimationPlayer" type="AnimationPlayer" parent="3DGodotRobot"]
libraries = {
&"": SubResource("AnimationLibrary_f1v7x")
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=3 uid="uid://rbvk4mg40ceg"]
[ext_resource type="ArrayMesh" uid="uid://rsoymmi6yqhp" path="res://assets/Objects/shield.obj" id="1"]
[node name="ShieldMesh" type="Node3D"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.28306955, -0.70267653)
mesh = ExtResource("1")
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=3 uid="uid://dyjfaq654xne3"]
[ext_resource type="ArrayMesh" uid="uid://dmottq5u3my52" path="res://assets/characters/Lobster/10029_Lobster_v1_iterations-2.obj" id="1_olchg"]
[node name="SwordMesh" type="Node3D"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.3645025, -0.7985528, -1.0164871)
mesh = ExtResource("1_olchg")
@@ -0,0 +1,17 @@
[gd_scene load_steps=4 format=3]
[ext_resource type="Script" path="res://level/scripts/world_weapon.gd" id="1"]
[ext_resource type="Resource" path="res://level/resources/weapon_shield.tres" id="2"]
[sub_resource type="BoxShape3D" id="1"]
size = Vector3(0.8, 1.0, 0.2)
[node name="WorldWeaponShield" type="RigidBody3D"]
collision_layer = 4
collision_mask = 2
mass = 3.0
script = ExtResource("1")
weapon_data = ExtResource("2")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("1")
@@ -0,0 +1,17 @@
[gd_scene load_steps=4 format=3]
[ext_resource type="Script" path="res://level/scripts/world_weapon.gd" id="1"]
[ext_resource type="Resource" path="res://level/resources/weapon_sword.tres" id="2"]
[sub_resource type="BoxShape3D" id="1"]
size = Vector3(0.3, 0.3, 1.2)
[node name="WorldWeaponSword" type="RigidBody3D"]
collision_layer = 4
collision_mask = 2
mass = 2.0
script = ExtResource("1")
weapon_data = ExtResource("2")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("1")