2021-10-10 15:51:46 +02:00
|
|
|
[gd_scene load_steps=9 format=2]
|
2021-09-22 18:04:03 +02:00
|
|
|
|
|
|
|
[ext_resource path="res://assets/all_gbs/mc_rocket_proximity.gbs.obj" type="ArrayMesh" id=1]
|
|
|
|
[ext_resource path="res://entities/genericprojectile.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://addons/Trail/trail_3d.gd" type="Script" id=3]
|
2021-10-10 15:51:46 +02:00
|
|
|
[ext_resource path="res://effects/fx_prox_explosion.tscn" type="PackedScene" id=4]
|
2021-09-22 18:04:03 +02:00
|
|
|
|
2021-10-10 15:51:46 +02:00
|
|
|
[sub_resource type="Curve" id=2]
|
2021-09-22 18:04:03 +02:00
|
|
|
_data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
|
|
|
|
|
2021-10-10 15:51:46 +02:00
|
|
|
[sub_resource type="Gradient" id=3]
|
2021-09-22 18:04:03 +02:00
|
|
|
offsets = PoolRealArray( 0.032967, 1 )
|
|
|
|
colors = PoolColorArray( 0.5, 0, 1, 1, 1, 1, 1, 1 )
|
|
|
|
|
2021-10-10 15:51:46 +02:00
|
|
|
[sub_resource type="CapsuleShape" id=4]
|
|
|
|
height = 6.21251
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape" id=1]
|
|
|
|
radius = 9.20595
|
|
|
|
height = 6.01707
|
|
|
|
|
2021-09-22 18:04:03 +02:00
|
|
|
[node name="Projectile" type="RigidBody"]
|
|
|
|
gravity_scale = 0.0
|
|
|
|
script = ExtResource( 2 )
|
2021-10-10 15:51:46 +02:00
|
|
|
bullet_speed = 5000.0
|
|
|
|
lifetime = 2.0
|
|
|
|
fx_explode = ExtResource( 4 )
|
|
|
|
proximity_collision_area_path = NodePath("Area")
|
|
|
|
properties = 956
|
2021-09-22 18:04:03 +02:00
|
|
|
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="."]
|
|
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
|
|
|
|
mesh = ExtResource( 1 )
|
|
|
|
material/0 = null
|
|
|
|
material/1 = null
|
|
|
|
|
|
|
|
[node name="Trail3D" type="ImmediateGeometry" parent="."]
|
|
|
|
script = ExtResource( 3 )
|
|
|
|
base_width = 10.0
|
2021-10-10 15:51:46 +02:00
|
|
|
width_profile = SubResource( 2 )
|
|
|
|
color_gradient = SubResource( 3 )
|
|
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="."]
|
|
|
|
shape = SubResource( 4 )
|
|
|
|
|
|
|
|
[node name="Area" type="Area" parent="."]
|
|
|
|
|
|
|
|
[node name="Proximity" type="CollisionShape" parent="Area"]
|
|
|
|
shape = SubResource( 1 )
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="Area" to="." method="proximity_body_entered"]
|