generated from krampus/template-godot4
Tweaks to grunk dust emission
All checks were successful
linting & formatting / build (push) Successful in 25s
All checks were successful
linting & formatting / build (push) Successful in 25s
This commit is contained in:
parent
7e4b3024d3
commit
06820d19ee
@ -24,12 +24,10 @@ point_count = 2
|
||||
curve = SubResource("Curve_smx5b")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ykxlg"]
|
||||
emission_shape = 4
|
||||
emission_point_count = 5
|
||||
angle_min = -184.7
|
||||
angle_max = 239.3
|
||||
direction = Vector3(0, 0, -1)
|
||||
spread = 90.0
|
||||
spread = 80.0
|
||||
initial_velocity_min = 2.0
|
||||
initial_velocity_max = 2.0
|
||||
angular_velocity_min = -360.0
|
||||
|
@ -4,7 +4,7 @@ class_name LaserCast extends RayCast3D
|
||||
const NORMAL_OFFSET = 0.05
|
||||
|
||||
@export var parent_tool: Spray
|
||||
@export var dust_emission_scale: float
|
||||
@export var dust_emission_scale: float = 0.1
|
||||
|
||||
# Currently gunking
|
||||
var gunk_id: int
|
||||
@ -26,10 +26,8 @@ func _process(_delta: float) -> void:
|
||||
if c is Node3D:
|
||||
(c as Node3D).global_position = child_pos
|
||||
|
||||
var new_gunk_id: int = 0
|
||||
var collider: Object = get_collider()
|
||||
if collider:
|
||||
new_gunk_id = collider.get_instance_id()
|
||||
var new_gunk_id: int = collider.get_instance_id()
|
||||
if new_gunk_id != gunk_id:
|
||||
gunk_id = new_gunk_id
|
||||
if gunkable:
|
||||
|
@ -31,4 +31,5 @@ script = ExtResource("3_bkg64")
|
||||
[node name="GrunkDust" parent="." instance=ExtResource("4_ekmqg")]
|
||||
unique_name_in_owner = true
|
||||
emitting = false
|
||||
amount = 64
|
||||
script = ExtResource("5_r1geq")
|
||||
|
@ -182,17 +182,21 @@ unique_name_in_owner = true
|
||||
[node name="LaserCast" parent="Muzzle/Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")]
|
||||
target_position = Vector3(-0.5, 0, -2)
|
||||
parent_tool = NodePath("../../../..")
|
||||
dust_emission_scale = 0.01
|
||||
|
||||
[node name="LaserCast2" parent="Muzzle/Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")]
|
||||
target_position = Vector3(-0.333, 0, -2)
|
||||
parent_tool = NodePath("../../../..")
|
||||
dust_emission_scale = 0.01
|
||||
|
||||
[node name="LaserCast3" parent="Muzzle/Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")]
|
||||
target_position = Vector3(-0.167, 0, -2)
|
||||
parent_tool = NodePath("../../../..")
|
||||
dust_emission_scale = 0.01
|
||||
|
||||
[node name="LaserCast4" parent="Muzzle/Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")]
|
||||
parent_tool = NodePath("../../../..")
|
||||
dust_emission_scale = 0.01
|
||||
|
||||
[node name="SpraySFX" parent="Muzzle/Pivot/SprayCasts/LaserCast4" instance=ExtResource("3_v0jnx")]
|
||||
unique_name_in_owner = true
|
||||
@ -201,14 +205,17 @@ attenuation_model = 0
|
||||
[node name="LaserCast5" parent="Muzzle/Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")]
|
||||
target_position = Vector3(0.167, 0, -2)
|
||||
parent_tool = NodePath("../../../..")
|
||||
dust_emission_scale = 0.01
|
||||
|
||||
[node name="LaserCast6" parent="Muzzle/Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")]
|
||||
target_position = Vector3(0.333, 0, -2)
|
||||
parent_tool = NodePath("../../../..")
|
||||
dust_emission_scale = 0.01
|
||||
|
||||
[node name="LaserCast7" parent="Muzzle/Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")]
|
||||
target_position = Vector3(0.5, 0, -2)
|
||||
parent_tool = NodePath("../../../..")
|
||||
dust_emission_scale = 0.01
|
||||
|
||||
[node name="SprayEffect" type="MeshInstance3D" parent="Muzzle/Pivot"]
|
||||
unique_name_in_owner = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user