completed range_weapons

pull/28/head
DJh2o2 2025-08-25 09:58:12 +07:00
parent ebd59b4869
commit 5e350b4e5e
2 changed files with 35 additions and 21 deletions

@ -6,7 +6,7 @@
<component name="ChangeListManager">
<list default="true" id="c3091895-9cbd-4d08-bc3f-599dc2d3e86d" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/scripts/game_manager.gd" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/game_manager.gd" afterDir="false" />
<change beforePath="$PROJECT_DIR$/scripts/explosion.gd" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/explosion.gd" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -38,24 +38,24 @@
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;GdScript Start and Debug.Player GDScript.executor&quot;: &quot;Debug&quot;,
&quot;Notification.DisplayName-DoNotAsk-GodotSupportNotificationGroupId&quot;: &quot;Godot LSP&quot;,
&quot;Notification.DoNotAsk-GodotSupportNotificationGroupId&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252&quot;: &quot;true&quot;,
&quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
&quot;gdscript.promo.shown&quot;: &quot;true&quot;,
&quot;git-widget-placeholder&quot;: &quot;range__weapons&quot;,
&quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"GdScript Start and Debug.Player GDScript.executor": "Debug",
"Notification.DisplayName-DoNotAsk-GodotSupportNotificationGroupId": "Godot LSP",
"Notification.DoNotAsk-GodotSupportNotificationGroupId": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
"RunOnceActivity.git.unshallow": "true",
"gdscript.promo.shown": "true",
"git-widget-placeholder": "range__weapons",
"ignore.virus.scanning.warn.message": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm",
"settings.editor.selected.configurable": "preferences.build.godotPlugin",
"vue.rearranger.settings.migration": "true"
}
}</component>
}]]></component>
<component name="RunManager" selected="GdScript Start and Debug.Player GDScript">
<configuration name="Player GDScript" type="GDSCRIPT_DEBUG_RUN_CONFIGURATION" factoryName="GdScriptRunFactory" show_console_on_std_err="false" show_console_on_std_out="false" port="6006">
<option name="address" value="127.0.0.1" />
@ -93,6 +93,8 @@
<workItem from="1755849033123" duration="59000" />
<workItem from="1755849134118" duration="393000" />
<workItem from="1755943940188" duration="97000" />
<workItem from="1756104902187" duration="322000" />
<workItem from="1756107982909" duration="321000" />
</task>
<task id="LOCAL-00001" summary="AI part 5">
<option name="closed" value="true" />
@ -122,4 +124,8 @@
</default-breakpoints>
</breakpoint-manager>
</component>
<component name="XSLT-Support.FileAssociations.UIState">
<expand />
<select />
</component>
</project>

@ -1,8 +1,16 @@
extends Node3D
class_name Explosion
@onready var particle_systems := get_children()
@onready var particles := get_children().filter(func(n): return n is GPUParticles3D or n is CPUParticles3D)
func start() -> void:
for particle_system in particle_systems:
particle_system.emitting = true
_set_emission(true)
func stop() -> void:
_set_emission(false)
func _set_emission(enabled: bool) -> void:
for p in particles:
p.emitting = enabled