Skip to content

Commit

Permalink
ticketize TODOs specific to homing-vines functions
Browse files Browse the repository at this point in the history
new issues:
- #40
- #41
  • Loading branch information
TheAfroOfDoom committed Dec 22, 2023
1 parent 002f74a commit 928ed03
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
scoreboard players add @s attack.clock.i 1

# TODO: this hitbox is inaccurate -- needs to be a bounding box that is NOT axis aligned
# TODO(40): this hitbox is inaccurate -- needs to be a bounding box that is NOT axis aligned
# > make some functions to represent the shape and check if the player's coordinates pass the function checks
# inputs: { rectangle_width, current_position, initial_position (bullet summon position) }
data merge storage utils:damage { damage: 2, radius: 1 }
Expand All @@ -9,6 +9,6 @@ function entity:utils/damage with storage utils:damage
# Move while inside arena
execute if entity @s[x=-25,dx=50,y=32,dy=10,z=-5,dz=23] run function entity:hostile/omega-flowey/attack/homing-vines/bullet/loop/move

# TODO: validate/determine a value for how long until the homing-vines bullets terminate
# TODO(41): validate/determine a value for how long until the homing-vines bullets terminate
# Terminate after X seconds
execute if score @s attack.clock.i matches 20.. run function entity:hostile/omega-flowey/attack/homing-vines/bullet/terminate
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ scoreboard players operation @s attack.bullets.total = #attack-homing-vines atta
playsound omega-flowey:attack.homing-vines.blinking hostile @a ~ ~ ~ 3 1 1

# Randomize delta-x position to summon bullet at (x: player.Position.x, dx: [-15.00..15.00])
# TODO: validate this dx range
# TODO(41): validate this dx range
execute store result score @s attack.position.x run data get entity @s Pos[0] 100
execute store result score @s math.0 run random value -1500..1500
scoreboard players operation @s attack.position.x += @s math.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Set fake player scores back to defaults (if they were changed by a pre-initialize attack function)
# TODO(41): validate these attack parameters
scoreboard players set #attack-homing-vines attack.bullets.total 1
# (13 / 1) + 1 = 13 + 1 = 14 indicators
scoreboard players set #attack-homing-vines attack.executor.clock.length 13
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TODO: remove the `vector.dot` function if we don't end up using it for the homing-vines hitbox
# TODO(40): remove the `vector.dot` function if we don't end up using it for the homing-vines hitbox
# inputs:
# u: vector: {x, y, z}: {x: float, y: float, z: float}
# v: vector: {x, y, z}: {x: float, y: float, z: float}
Expand Down

0 comments on commit 928ed03

Please sign in to comment.