First ever primary weapon
This commit is contained in:
parent
630cc8abb1
commit
eabc137ce8
14 changed files with 237 additions and 15 deletions
36
weapons/gun/mc/droppable_mc.tscn
Normal file
36
weapons/gun/mc/droppable_mc.tscn
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://b3xux7url8d2s"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cskgqgkr7pmb0" path="res://systems/weapon_system/dropped_weapon.gd" id="1_xr2im"]
|
||||
[ext_resource type="PackedScene" uid="uid://8ohlfmr5bp0k" path="res://weapons/gun/mc/mc255.tscn" id="2_nf8ho"]
|
||||
[ext_resource type="PackedScene" uid="uid://b57k7qap3jn6a" path="res://models/weapons/mc255.glb" id="3_nf8ho"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_477rq"]
|
||||
size = Vector3(0.122802734, 0.3173828, 1.263977)
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_ddvbd"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
properties/0/replication_mode = 1
|
||||
properties/1/path = NodePath(".:rotation")
|
||||
properties/1/spawn = true
|
||||
properties/1/replication_mode = 1
|
||||
|
||||
[node name="DroppableMC255" type="RigidBody3D" node_paths=PackedStringArray("weapon")]
|
||||
collision_layer = 8
|
||||
collision_mask = 9
|
||||
continuous_cd = true
|
||||
script = ExtResource("1_xr2im")
|
||||
slot = &"primary"
|
||||
weapon = NodePath("MC255")
|
||||
team = 3
|
||||
|
||||
[node name="MC255" parent="." instance=ExtResource("2_nf8ho")]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -3.0517578e-05, 0.25790405)
|
||||
shape = SubResource("BoxShape3D_477rq")
|
||||
|
||||
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_ddvbd")
|
||||
|
||||
[node name="mc255" parent="." instance=ExtResource("3_nf8ho")]
|
||||
Loading…
Add table
Add a link
Reference in a new issue