diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-09-25 06:39:12 -0400 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-09-25 06:39:12 -0400 |
| commit | 7a1d857de96174dfa5a0fa40f8c14acbd2f651c2 (patch) | |
| tree | d52acaa4e89b0f8375326ea1aefd0105bb91cfc7 /godot/scenes/weapons/rockets.tscn | |
| parent | 62039380a67b6da396d1c8d745d2e2625ba988fc (diff) | |
weapons, viewmodels, some performance fixes
Diffstat (limited to 'godot/scenes/weapons/rockets.tscn')
| -rw-r--r-- | godot/scenes/weapons/rockets.tscn | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/godot/scenes/weapons/rockets.tscn b/godot/scenes/weapons/rockets.tscn new file mode 100644 index 0000000..b2c47d7 --- /dev/null +++ b/godot/scenes/weapons/rockets.tscn @@ -0,0 +1,71 @@ +[gd_scene load_steps=6 format=2] + +[ext_resource path="res://meshes/rocket.tres" type="ArrayMesh" id=1] + +[sub_resource type="ParticlesMaterial" id=1] +direction = Vector3( -1, 0, 0 ) +spread = 17.73 +initial_velocity = 3.0 +initial_velocity_random = 0.12 +angle = 360.0 +angle_random = 1.0 +scale = 0.02 +color = Color( 1, 0.701961, 0, 1 ) + +[sub_resource type="SpatialMaterial" id=2] +flags_unshaded = true +vertex_color_use_as_albedo = true +params_billboard_mode = 3 +particles_anim_h_frames = 1 +particles_anim_v_frames = 1 +particles_anim_loop = false + +[sub_resource type="QuadMesh" id=3] +material = SubResource( 2 ) +size = Vector2( 0.25, 1 ) + +[sub_resource type="Animation" id=4] +resource_name = "throw_animation" +length = 3.0 +tracks/0/type = "value" +tracks/0/path = NodePath("Sparks:emitting") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 0.5, 2.53138 ), +"transitions": PoolRealArray( 1, 1, 1 ), +"update": 1, +"values": [ false, true, false ] +} +tracks/1/type = "value" +tracks/1/path = NodePath(".:visible") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0, 1.4349, 2.55169 ), +"transitions": PoolRealArray( 1, 1, 1 ), +"update": 1, +"values": [ true, false, true ] +} + +[node name="rockets" type="Spatial"] + +[node name="rocket_mesh" type="MeshInstance" parent="."] +transform = Transform( -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 ) +mesh = ExtResource( 1 ) + +[node name="Sparks" type="Particles" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.217459, 0, 0 ) +emitting = false +amount = 16 +lifetime = 0.25 +local_coords = false +process_material = SubResource( 1 ) +draw_pass_1 = SubResource( 3 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +anims/throw_animation = SubResource( 4 ) |
