giants-godot/projectiles/rpg_bow.tscn

141 lines
67 KiB
Plaintext
Raw Normal View History

2021-09-22 18:04:03 +02:00
[gd_scene load_steps=21 format=2]
2021-09-08 18:36:41 +02:00
2021-09-22 18:04:03 +02:00
[ext_resource path="res://entities/genericprojectile.gd" type="Script" id=1]
2021-09-08 18:36:41 +02:00
[ext_resource path="res://assets/all_gbs/textures/efx_smoke_ring_b.tga" type="Texture" id=2]
[ext_resource path="res://addons/Trail/trail_3d.gd" type="Script" id=4]
[sub_resource type="SpatialMaterial" id=1]
roughness = 0.0
[sub_resource type="SphereMesh" id=2]
material = SubResource( 1 )
radius = 0.1
height = 0.2
is_hemisphere = true
2021-09-22 18:04:03 +02:00
[sub_resource type="ConvexPolygonShape" id=3]
2021-09-08 18:36:41 +02:00
points = PoolVector3Array( 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.199094, 0.00950561, 0.000931712, 0.199094, 0.00945983, 0.00185445, 0.199094, 0.00932296, 0.00275933, 0.199094, 0.0090963, 0.00363764, 0.199094, 0.00878203, 0.00448091, 0.199094, 0.00838319, 0.00528103, 0.199094, 0.00790362, 0.00603029, 0.199094, 0.00734793, 0.00672148, 0.199094, 0.00672148, 0.00734793, 0.199094, 0.00603029, 0.00790362, 0.199094, 0.00528103, 0.00838319, 0.199094, 0.00448091, 0.00878203, 0.199094, 0.00363764, 0.0090963, 0.199094, 0.00275933, 0.00932296, 0.199094, 0.00185445, 0.00945983, 0.199094, 0.000931712, 0.00950561, 0.199094, 5.8205e-19, 0.00945983, 0.199094, -0.000931712, 0.00932296, 0.199094, -0.00185445, 0.0090963, 0.199094, -0.00275933, 0.00878203, 0.199094, -0.00363764, 0.00838319, 0.199094, -0.00448091, 0.00790362, 0.199094, -0.00528103, 0.00734793, 0.199094, -0.00603029, 0.00672148, 0.199094, -0.00672148, 0.00603029, 0.199094, -0.00734793, 0.00528103, 0.199094, -0.00790362, 0.00448091, 0.199094, -0.00838319, 0.00363764, 0.199094, -0.00878203, 0.00275933, 0.199094, -0.0090963, 0.00185445, 0.199094, -0.00932296, 0.000931712, 0.199094, -0.00945983, 1.1641e-18, 0.199094, -0.00950561, -0.000931712, 0.199094, -0.00945983, -0.00185445, 0.199094, -0.00932296, -0.00275933, 0.199094, -0.0090963, -0.00363764, 0.199094, -0.00878203, -0.00448091, 0.199094, -0.00838319, -0.00528103, 0.199094, -0.00790362, -0.00603029, 0.199094, -0.00734793, -0.00672148, 0.199094, -0.00672148, -0.00734793, 0.199094, -0.00603029, -0.00790362, 0.199094, -0.00528103, -0.00838319, 0.199094, -0.00448091, -0.00878203, 0.199094, -0.00363764, -0.0090963, 0.199094, -0.00275933, -0.00932296, 0.199094, -0.00185445, -0.00945983, 0.199094, -0.000931712, -0.00950561, 0.199094, -1.74615e-18, -0.00945983, 0.199094, 0.000931712, -0.00932296, 0.199094, 0.00185445, -0.0090963, 0.199094, 0.00275933, -0.00878203, 0.199094, 0.00363764, -0.00838319, 0.199094, 0.00448091, -0.00790362, 0.199094, 0.00528103, -0.00734793, 0.199094, 0.00603029, -0.00672148, 0.199094, 0.00672148, -0.00603029, 0.199094, 0.00734793, -0.00528103, 0.199094, 0.00790362, -0.00448091, 0.199094, 0.00838319, -0.00363764, 0.199094, 0.00878203, -0.00275933, 0.199094, 0.0090963, -0.00185445, 0.199094, 0.00932296, -0.000931712, 0.199094, 0.00945983, -2.3282e-18, 0.199094, 0.00950561, 0, 0.196386, 0.0189251, 0.00185499, 0.196386, 0.018834, 0.00369211, 0.196386, 0.0185615, 0.00549367, 0.196386, 0.0181102, 0.00724233, 0.196386, 0.0174845, 0.00892124, 0.196386, 0.0166905, 0.0105142, 0.196386, 0.0157357, 0.012006, 0.196386, 0.0146293, 0.0133821, 0.196386, 0.0133821, 0.0146293, 0.196386, 0.012006, 0.0157357, 0.196386, 0.0105142, 0.0166905, 0.196386, 0.00892124, 0.0174845, 0.196386, 0.00724233, 0.0181102, 0.196386, 0.00549367, 0.0185615, 0.196386, 0.00369211, 0.018834, 0.196386, 0.00185499, 0.0189251, 0.196386, 1.15883e-18, 0.018834, 0.196386, -0.00185499, 0.0185615, 0.196386, -0.00369211, 0.0181102, 0.196386, -0.00549367, 0.0174845, 0.196386, -0.00724233, 0.0166905, 0.196386, -0.00892124, 0.0157357, 0.196386, -0.0105142, 0.0146293, 0.196386, -0.012006, 0.0133821, 0.196386, -0.0133821, 0.012006, 0.196386, -0.0146293, 0.0105142, 0.196386, -0.0157357, 0.00892124, 0.196386, -0.0166905, 0.00724233, 0.196386, -0.0174845, 0.00549367, 0.196386, -0.0181102, 0.00369211, 0.196386, -0.0185615, 0.00185499, 0.196386, -0.018834, 2.31766e-18, 0.196386, -0.0189251, -0.0018
[sub_resource type="Gradient" id=4]
offsets = PoolRealArray( 0.680412, 1 )
colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 0 )
[sub_resource type="GradientTexture" id=5]
gradient = SubResource( 4 )
[sub_resource type="Curve" id=6]
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=7]
curve = SubResource( 6 )
[sub_resource type="ParticlesMaterial" id=8]
gravity = Vector3( 0, 0, 0 )
scale = 20.0
scale_curve = SubResource( 7 )
color_ramp = SubResource( 5 )
[sub_resource type="SpatialMaterial" id=9]
flags_transparent = true
vertex_color_use_as_albedo = true
params_blend_mode = 1
params_cull_mode = 2
albedo_texture = ExtResource( 2 )
emission_enabled = true
emission = Color( 0.533333, 1, 0.945098, 1 )
emission_energy = 0.5
emission_operator = 0
emission_on_uv2 = false
[sub_resource type="QuadMesh" id=10]
material = SubResource( 9 )
2021-09-22 18:04:03 +02:00
[sub_resource type="SpatialMaterial" id=11]
2021-09-08 18:36:41 +02:00
flags_transparent = true
flags_unshaded = true
vertex_color_use_as_albedo = true
params_blend_mode = 1
albedo_texture = ExtResource( 2 )
uv1_scale = Vector3( 2, 2, 2 )
2021-09-22 18:04:03 +02:00
[sub_resource type="CylinderMesh" id=12]
material = SubResource( 11 )
2021-09-08 18:36:41 +02:00
top_radius = 0.01
bottom_radius = 0.4
height = 0.4
2021-09-22 18:04:03 +02:00
[sub_resource type="ParticlesMaterial" id=13]
2021-09-08 18:36:41 +02:00
gravity = Vector3( 0, 0, 0 )
2021-09-22 18:04:03 +02:00
[sub_resource type="SpatialMaterial" id=14]
2021-09-08 18:36:41 +02:00
flags_transparent = true
flags_unshaded = true
albedo_color = Color( 1, 1, 1, 0.470588 )
2021-09-22 18:04:03 +02:00
[sub_resource type="CapsuleMesh" id=15]
material = SubResource( 14 )
2021-09-08 18:36:41 +02:00
radius = 0.05
[sub_resource type="Curve" id=16]
_data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.459459, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
2021-09-22 18:04:03 +02:00
[sub_resource type="Gradient" id=17]
2021-09-08 18:36:41 +02:00
offsets = PoolRealArray( 0, 0.48, 1 )
colors = PoolColorArray( 0, 1, 0.460938, 1, 0.0375366, 0.636304, 0.960938, 1, 0.925781, 0.0397797, 0.309733, 1 )
2021-09-22 18:04:03 +02:00
[node name="Projectile" type="RigidBody"]
gravity_scale = 0.0
2021-09-08 18:36:41 +02:00
script = ExtResource( 1 )
2021-10-10 15:51:46 +02:00
bullet_speed = 1000.0
lifetime = 2.0
2021-09-08 18:36:41 +02:00
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1.91069e-15, 4.37114e-08, -1, 1, -4.37114e-08, 0, -4.37114e-08, -1, -4.37114e-08, 0, 0, 0 )
mesh = SubResource( 2 )
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1.91069e-15, 4.37114e-08, -1, 1, -4.37114e-08, 0, -4.37114e-08, -1, -4.37114e-08, 0, 0, 0 )
2021-09-22 18:04:03 +02:00
shape = SubResource( 3 )
2021-09-08 18:36:41 +02:00
[node name="Smoke" type="Particles" parent="."]
visible = false
amount = 15
lifetime = 2.0
speed_scale = 0.8
local_coords = false
process_material = SubResource( 8 )
draw_pass_1 = SubResource( 10 )
[node name="Smoke2" type="Particles" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0 )
amount = 20
lifetime = 2.0
speed_scale = 0.8
local_coords = false
process_material = SubResource( 8 )
2021-09-22 18:04:03 +02:00
draw_pass_1 = SubResource( 12 )
2021-09-08 18:36:41 +02:00
[node name="OmniLight" type="OmniLight" parent="."]
transform = Transform( 0.05, 0, 0, 0, 0.05, 0, 0, 0, 0.05, 0, 0, 0 )
light_color = Color( 0.607843, 0.992157, 0.964706, 1 )
omni_range = 20.0
[node name="Trail" type="Particles" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.103962 )
visible = false
amount = 50
lifetime = 4.0
local_coords = false
2021-09-22 18:04:03 +02:00
process_material = SubResource( 13 )
draw_pass_1 = SubResource( 15 )
2021-09-08 18:36:41 +02:00
[node name="Trail3D" type="ImmediateGeometry" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.021327 )
script = ExtResource( 4 )
distance = 10.0
lifetime = 10.0
base_width = 0.2
width_profile = SubResource( 16 )
2021-09-22 18:04:03 +02:00
color_gradient = SubResource( 17 )