-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#> plane:move/plane-afterburner | ||
# | ||
# @input | ||
# execute @e[tag=plane-root] | ||
# | ||
# @within function plane:move/plane-move | ||
|
||
#> prv | ||
# @private | ||
#declare score_holder #wep-time | ||
#declare score_holder #wep-reload | ||
|
||
#WEPリロード減算 | ||
execute if entity @s[tag=reloading-wep] store result score #wep-reload vp.reg1 store result storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].plane-data.flight-model.engine.wep-reload int 1 run data get storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].plane-data.flight-model.engine.wep-reload 0.9999999999999999 | ||
execute if entity @s[tag=reloading-wep] if score #wep-reload vp.reg1 matches ..0 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].plane-data.flight-model.engine.wep-time set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].plane-data.flight-model.engine.max-wep-time | ||
|
||
execute if entity @s[tag=reloading-wep] if score #wep-reload vp.reg1 matches ..0 run say reload-end | ||
|
||
execute if entity @s[tag=reloading-wep] if score #wep-reload vp.reg1 matches ..0 run tag @s remove reloading-wep | ||
|
||
|
||
|
||
#wep時間減算 | ||
execute if entity @s[tag=use-wep,tag=!reloading-wep] store result score #wep-time vp.reg1 store result storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].plane-data.flight-model.engine.wep-time int 1 run data get storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].plane-data.flight-model.engine.wep-time 0.9999999999999999 | ||
execute if entity @s[tag=use-wep,tag=!reloading-wep] if score #wep-time vp.reg1 matches ..0 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].plane-data.flight-model.engine.wep-reload set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].plane-data.flight-model.engine.max-wep-reload | ||
|
||
execute if entity @s[tag=use-wep,tag=!reloading-wep] if score #wep-time vp.reg1 matches ..0 run say reloading | ||
|
||
execute if entity @s[tag=use-wep,tag=!reloading-wep] if score #wep-time vp.reg1 matches ..0 run tag @s add reloading-wep | ||
execute if entity @s[tag=use-wep,tag=reloading-wep] if score #wep-time vp.reg1 matches ..0 run tag @s remove use-wep | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters