forked from discomrade/EscapeFromCatalunya
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
175 lines
5.8 KiB
175 lines
5.8 KiB
[gd_scene load_steps=24 format=2]
|
|
|
|
[ext_resource path="res://player/weapons/AK-47/AK-47.glb" type="PackedScene" id=1]
|
|
[ext_resource path="res://player/audio/shoot.wav" type="AudioStream" id=2]
|
|
[ext_resource path="res://player/weapons/Pistol/ShitPistol.gd" type="Script" id=3]
|
|
[ext_resource path="res://player/audio/land.wav" type="AudioStream" id=4]
|
|
[ext_resource path="res://effects_shared/bullet/effect/FlarePolar.png" type="Texture" id=5]
|
|
[ext_resource path="res://player/bullet/bullet_material.tres" type="Material" id=6]
|
|
[ext_resource path="res://player/weapons/Laser/Laser.gd" type="Script" id=7]
|
|
[ext_resource path="res://player/model/muzzle_flash_particle_mesh_Cone.mesh" type="ArrayMesh" id=8]
|
|
[ext_resource path="res://player/weapons/AK-47/AK-47.gd" type="Script" id=9]
|
|
|
|
[sub_resource type="SpatialMaterial" id=8]
|
|
flags_transparent = true
|
|
flags_unshaded = true
|
|
vertex_color_use_as_albedo = true
|
|
params_cull_mode = 2
|
|
albedo_texture = ExtResource( 5 )
|
|
|
|
[sub_resource type="Gradient" id=17]
|
|
offsets = PoolRealArray( 0.453416, 1 )
|
|
colors = PoolColorArray( 1, 0.578387, 0.0234375, 1, 0.875, 0.888672, 1, 0.305882 )
|
|
|
|
[sub_resource type="GradientTexture" id=58]
|
|
gradient = SubResource( 17 )
|
|
width = 32
|
|
|
|
[sub_resource type="Curve" id=18]
|
|
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.791139, 0.990909 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
|
|
|
|
[sub_resource type="CurveTexture" id=59]
|
|
width = 64
|
|
curve = SubResource( 18 )
|
|
|
|
[sub_resource type="ParticlesMaterial" id=46]
|
|
gravity = Vector3( 0, 0, 0 )
|
|
angle = -4.0
|
|
angle_random = 1.0
|
|
scale = 0.15
|
|
scale_curve = SubResource( 59 )
|
|
color_ramp = SubResource( 58 )
|
|
|
|
[sub_resource type="ParticlesMaterial" id=50]
|
|
flag_align_y = true
|
|
direction = Vector3( 0, 0, -1 )
|
|
spread = 15.0
|
|
gravity = Vector3( 0, -3, 0 )
|
|
initial_velocity = 3.0
|
|
|
|
[sub_resource type="SphereMesh" id=51]
|
|
radius = 0.003
|
|
height = 0.02
|
|
|
|
[sub_resource type="SpatialMaterial" id=52]
|
|
flags_transparent = true
|
|
flags_unshaded = true
|
|
vertex_color_use_as_albedo = true
|
|
params_cull_mode = 2
|
|
albedo_texture = ExtResource( 5 )
|
|
|
|
[sub_resource type="Gradient" id=53]
|
|
offsets = PoolRealArray( 0.325926, 1 )
|
|
colors = PoolColorArray( 0.0507812, 0.955505, 1, 1, 0.875, 0.888672, 1, 0.305882 )
|
|
|
|
[sub_resource type="GradientTexture" id=43]
|
|
gradient = SubResource( 53 )
|
|
width = 32
|
|
|
|
[sub_resource type="Curve" id=54]
|
|
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.791139, 0.990909 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
|
|
|
|
[sub_resource type="CurveTexture" id=45]
|
|
width = 64
|
|
curve = SubResource( 54 )
|
|
|
|
[sub_resource type="ParticlesMaterial" id=55]
|
|
gravity = Vector3( 0, 0, 0 )
|
|
angle = -4.0
|
|
angle_random = 1.0
|
|
scale = 0.3
|
|
scale_curve = SubResource( 45 )
|
|
color_ramp = SubResource( 43 )
|
|
|
|
[node name="Weapon" type="Spatial"]
|
|
|
|
[node name="AK-47" type="Spatial" parent="."]
|
|
script = ExtResource( 9 )
|
|
|
|
[node name="model" parent="AK-47" instance=ExtResource( 1 )]
|
|
transform = Transform( 0.00174151, -0.024939, -0.000128363, 0.0014002, 0.000226249, -0.0249598, 0.0249, 0.0017315, 0.00141253, 0.0113227, 0.209498, -0.0320063 )
|
|
|
|
[node name="Shoot" type="AudioStreamPlayer" parent="AK-47"]
|
|
stream = ExtResource( 4 )
|
|
|
|
[node name="MuzzleFlash" type="Particles" parent="AK-47"]
|
|
transform = Transform( -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0, 0, 1, -0.101477, 0.629052, -0.0833533 )
|
|
material_override = SubResource( 8 )
|
|
emitting = false
|
|
amount = 1
|
|
lifetime = 0.1
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
process_material = SubResource( 46 )
|
|
draw_pass_1 = ExtResource( 8 )
|
|
|
|
[node name="Laser" type="Spatial" parent="."]
|
|
visible = false
|
|
script = ExtResource( 7 )
|
|
|
|
[node name="Shoot" type="AudioStreamPlayer" parent="Laser"]
|
|
stream = ExtResource( 2 )
|
|
|
|
[node name="ShootParticle" type="Particles" parent="Laser"]
|
|
transform = Transform( 1, 2.04891e-08, 0, -1.40447e-15, -4.37114e-08, -1, 3.21306e-08, 1, -3.81234e-08, -0.0632257, 0.1192, 0 )
|
|
material_override = ExtResource( 6 )
|
|
emitting = false
|
|
amount = 10
|
|
lifetime = 0.3
|
|
one_shot = true
|
|
explosiveness = 0.79
|
|
local_coords = false
|
|
process_material = SubResource( 50 )
|
|
draw_pass_1 = SubResource( 51 )
|
|
|
|
[node name="MuzzleFlash" type="Particles" parent="Laser"]
|
|
transform = Transform( 1, 0, -2.00234e-08, 2.98023e-08, -1, 9.12089e-08, 1.21072e-08, -8.74836e-08, -1, -0.0632257, 0.1192, 0 )
|
|
material_override = SubResource( 52 )
|
|
emitting = false
|
|
amount = 1
|
|
lifetime = 0.1
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
process_material = SubResource( 55 )
|
|
draw_pass_1 = ExtResource( 8 )
|
|
|
|
[node name="Pistol" type="Spatial" parent="."]
|
|
visible = false
|
|
|
|
[node name="model" parent="Pistol" instance=ExtResource( 1 )]
|
|
transform = Transform( 0.00285472, -0.024759, -0.00423278, 0.0213734, 0.0034537, -0.027, 0.0126502, -0.00024799, 0.0465734, -0.0260041, 0.209498, -0.0660405 )
|
|
|
|
[node name="Shoot" type="AudioStreamPlayer" parent="Pistol"]
|
|
stream = ExtResource( 4 )
|
|
|
|
[node name="MuzzleFlash" type="Particles" parent="Pistol"]
|
|
transform = Transform( -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0, 0, 1, -0.101477, 0.629052, -0.0833533 )
|
|
material_override = SubResource( 8 )
|
|
emitting = false
|
|
amount = 1
|
|
lifetime = 0.1
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
process_material = SubResource( 46 )
|
|
draw_pass_1 = ExtResource( 8 )
|
|
|
|
[node name="ShitPistol" type="Spatial" parent="."]
|
|
visible = false
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="model" parent="ShitPistol" instance=ExtResource( 1 )]
|
|
transform = Transform( 0.000906627, -0.0195994, 0.00271674, 0.00204239, -0.00987641, -0.00533895, 0.0248999, 0.00152373, 0.000339003, -0.0260041, 0.209498, -0.0660405 )
|
|
|
|
[node name="Shoot" type="AudioStreamPlayer" parent="ShitPistol"]
|
|
stream = ExtResource( 4 )
|
|
|
|
[node name="MuzzleFlash" type="Particles" parent="ShitPistol"]
|
|
transform = Transform( -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0, 0, 1, -0.101477, 0.284348, -0.0833533 )
|
|
material_override = SubResource( 8 )
|
|
emitting = false
|
|
amount = 1
|
|
lifetime = 0.1
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
process_material = SubResource( 46 )
|
|
draw_pass_1 = ExtResource( 8 )
|
|
|