Skip to content

GDB Busan v7.9.0 merge #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 286 commits into
base: lucioball_test
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
01b90d7
Give torb credit for kills not done by a player
Mazawrath Sep 1, 2021
1b93261
Made torb more likely to do long fun things
Mazawrath Sep 1, 2021
40b8bdb
Made torb frozen for less time
Mazawrath Sep 1, 2021
7883e36
Updated codes
Mazawrath Sep 16, 2021
a7903ce
Added mode name and updated description
Mazawrath Sep 16, 2021
189c7ac
Added bouncepad variable for start of the round
Mazawrath Sep 16, 2021
30e1a48
Changed bouncepad cooldown from 3 seconds to 6.5
Mazawrath Sep 16, 2021
0006da4
Set initial player bouncepad cooldown to start
Mazawrath Sep 16, 2021
6a72c12
Decreased dash cooldown from 3.04 seconds to 2.4
Mazawrath Sep 16, 2021
1b77069
Added beta disclaimers
Mazawrath Sep 16, 2021
c1366f6
Renamed classic ball physics to "Retro"
Mazawrath Sep 17, 2021
256d6a5
Disabled dash deflecting in retro ball physics
Mazawrath Sep 17, 2021
142e66b
Changed ordering of Workshop Settings
Mazawrath Sep 17, 2021
ed9f342
Renamed ballPhysicsType to rulesetMode to fit more
Mazawrath Sep 17, 2021
8ce0116
Disabled self passing during retro ruleset
Mazawrath Sep 17, 2021
530d9be
Added message to notify when retro rule is active
Mazawrath Sep 17, 2021
0af3d76
Disabling passing if retro rules are active and the current gamemode …
Mazawrath Sep 17, 2021
208da91
Fixed an issue where the winner of the round didn't stay targeted in …
Mazawrath Sep 17, 2021
84c6ba8
Merge branch 'v7.4.0' into boncepad_dash_update
Mazawrath Sep 17, 2021
b8c90c0
Made passing message only show with mordern rules
Mazawrath Sep 17, 2021
d8c5282
Removed comment
Mazawrath Sep 17, 2021
45f7187
Revert "Added beta disclaimers"
Mazawrath Sep 16, 2021
de9155e
Merge branch 'boncepad_dash_update' of https://github.com/Mazawrath/O…
Mazawrath Sep 17, 2021
03edb9f
Merge pull request #25 from Mazawrath/boncepad_dash_update
Mazawrath Sep 17, 2021
73c83fd
Made Torb not look around while frozen
Mazawrath Sep 22, 2021
62058a4
Made Torb not do fun things while frozen
Mazawrath Sep 22, 2021
28541b8
Made ball hero realize they aren't Torb
Mazawrath Sep 22, 2021
0f6fb2b
Fixed an issue with if statements
Mazawrath Sep 22, 2021
f49abde
Added new long fun thing
Mazawrath Sep 22, 2021
008dc7c
Added new short fun thing
Mazawrath Sep 22, 2021
7e61eb8
Added new short fun thing
Mazawrath Sep 22, 2021
08e7858
Made fun thing selectable
Mazawrath Sep 22, 2021
0dc3409
Changed chance of short fun things happening
Mazawrath Sep 22, 2021
8f40b05
Updated comment to reflect change
Mazawrath Sep 22, 2021
868e86c
Removed variable no longer in use
Mazawrath Sep 22, 2021
528b3c7
Disabled Workshop inspector
Mazawrath Sep 23, 2021
05a4c9d
Removed unnecessary reevaluations for chase's
Mazawrath Sep 23, 2021
100f5ef
Made varaibles stop chaeing for efficiency
Mazawrath Sep 23, 2021
d1a471e
Increased Torb's chance of getting frozen
Mazawrath Sep 23, 2021
0327636
Shrunk range Torb can be teleported inside orb
Mazawrath Sep 23, 2021
82137e5
Reworked rule to be more efficent
Mazawrath Sep 23, 2021
db9f875
Minor file formatting
Mazawrath Sep 23, 2021
b0f6632
Made bounce back rule activate even if a player is dead and disabled …
Mazawrath Sep 23, 2021
24ca1cd
Removed testing code
Mazawrath Sep 23, 2021
d09a50e
Added optimization for Torb Ball
Mazawrath Sep 23, 2021
45c0a85
Added optimizations to ball physics calculation
Mazawrath Sep 23, 2021
b22f2eb
Made ball physics optimizations
Mazawrath Sep 24, 2021
30cdbbf
Improved logic for retro ball physics.
Mazawrath Sep 24, 2021
54a8a02
Fixed an issue where ball trail didn't update in retro
Mazawrath Sep 24, 2021
1946e25
Merge pull request #26 from Mazawrath/ball-physics-test
Mazawrath Sep 29, 2021
e5ddf82
Revert "Decreased dash cooldown from 3.04 seconds to 2.4"
Mazawrath Sep 29, 2021
6664cb3
Revert "Changed bouncepad cooldown from 3 seconds to 6.5"
Mazawrath Sep 29, 2021
3e1d986
Merge branch 'v7.4.0' of https://github.com/Mazawrath/Overwatch-Genji…
Mazawrath Sep 29, 2021
5d77f47
Update README.md
Mazawrath Sep 29, 2021
2580091
v7.4.0
Mazawrath Sep 29, 2021
3679a90
Fixed an issue with deflecting not always working in the retro ruleset
Mazawrath Oct 5, 2021
fa143cd
Removed one contriubtors credit (at their request)
Mazawrath Oct 5, 2021
05435e9
Readded version number in description
Mazawrath Oct 5, 2021
ddef53e
Updated version numbers
Mazawrath Oct 5, 2021
0751226
Updated codes
Mazawrath Oct 5, 2021
94f56ca
v7.4.1
Mazawrath Oct 5, 2021
ab953f6
Reworded "How to compile" to reflect new files
Mazawrath Oct 5, 2021
60daac6
Reverted ball optimization changes
Mazawrath Oct 10, 2021
061173b
Added first person death spectating
Mazawrath Oct 10, 2021
925d661
Updated version numbers
Mazawrath Oct 10, 2021
65c4b96
Updated version number and added new codes
Mazawrath Oct 10, 2021
960262a
v7.5.0
Mazawrath Oct 10, 2021
9126b83
Added new settings and renamed others
Mazawrath Jan 2, 2022
99c35db
Added invisible ball functionality
Mazawrath Jan 2, 2022
276d62c
Added invisible players functionality
Mazawrath Jan 2, 2022
9b84e27
Made ball trail invisible during invisible ball
Mazawrath Jan 2, 2022
653ca9f
Removed tournement codes
Mazawrath Jan 4, 2022
6827102
Merge pull request #29 from Mazawrath/master
Mazawrath Jan 4, 2022
90eac57
Merge branch 'v7.6.0-2' of https://github.com/Mazawrath/Overwatch-Gen…
Mazawrath Jan 7, 2022
9066497
Made Torb Ball rules run globally rather than each player
Mazawrath Jan 7, 2022
8e7a2bf
Moved player joining game rule into player init
Mazawrath Jan 7, 2022
f4f13a8
Simplified deflecting logic
Mazawrath Jan 7, 2022
e452c96
Made gamemode checking condition first and added "TEAMS" to all TDM r…
Mazawrath Jan 7, 2022
50be629
Improved targeting logic
Mazawrath Jan 7, 2022
d8ee507
Simplified targeting logic
Mazawrath Jan 8, 2022
356f0f9
Fixed issue with ball trail in retro ruleset
Mazawrath Jan 9, 2022
1cdab65
Added endless ball setting
Mazawrath Jan 9, 2022
56da341
Fixed issue with never despawn mode in TDM
Mazawrath Jan 9, 2022
7ce0770
Renamed ball never despawns to endless ball
Mazawrath Jan 9, 2022
1797b5e
Made push into circle stronger if further out
Mazawrath Jan 11, 2022
72ca625
Removed knockdown from dashing too far out on Workshop Expanse
Mazawrath Jan 11, 2022
99afd4f
Added check for Workshop Island day for undermapping
Mazawrath Jan 11, 2022
2ba3871
Lowered y value of light shaft to make it subtle
Mazawrath Jan 11, 2022
c4e1479
Made upwards impulse only apply on ground
Mazawrath Jan 11, 2022
d25def2
Added Expanse to Chamber y calculation to stop undermapping
Mazawrath Jan 11, 2022
38d93fd
Fixed an issue with invisible ceilings on Workshop Expanse
Mazawrath Jan 13, 2022
0d23d15
Updated version numbers
Mazawrath Jan 13, 2022
c684519
Updated game codes
Mazawrath Jan 13, 2022
52b7691
v7.6.0
Mazawrath Jan 13, 2022
c3daa5d
Made ball speed increase on kill in endless ball
Mazawrath Jan 16, 2022
350809a
Added custom ball tail options
Mazawrath Jan 23, 2022
f895b6d
Moved location of endless ball setting
Mazawrath Jan 25, 2022
240d195
Moved location of ball tail color setting
Mazawrath Jan 25, 2022
e8abdd7
Updated version numbers
Mazawrath Jan 25, 2022
2916690
Updated codes
Mazawrath Jan 25, 2022
7f075b8
v7.6.1
Mazawrath Jan 26, 2022
1b734d5
Made max ball speed customizable
Mazawrath Feb 6, 2022
84252aa
Added a tournament mode with breaks
Mazawrath Feb 6, 2022
b48e34a
Made break length dynamic
Mazawrath Feb 6, 2022
a1f6860
Added stress relief Torbs
Mazawrath Feb 6, 2022
9506497
Added a way to pick up stress torbs
Mazawrath Feb 6, 2022
770c822
Disabling primary and secondary fire controls during breaks
Mazawrath Feb 6, 2022
c708aa5
Added ability to yeet stress torbs
Mazawrath Feb 6, 2022
cbbf4a2
Allowed stress torbs to fall off the edge
Mazawrath Feb 6, 2022
a1f3962
Tweaked torb yeeting
Mazawrath Feb 7, 2022
2e19337
Added funny torb deaths
Mazawrath Feb 7, 2022
babaf76
Fixed typo
Mazawrath Feb 7, 2022
f1efc0b
Moved around Workshop Settings
Mazawrath Feb 7, 2022
82a9d2f
Tweaked default break frequency
Mazawrath Feb 7, 2022
a09d94e
Increased distance needed to pick up torb
Mazawrath Feb 7, 2022
15443b7
Added wait when targeting new player
Mazawrath Feb 7, 2022
60ce4f6
Added messages to explain break
Mazawrath Feb 7, 2022
a9691da
Reactivated ball countdown and bouncepad cooldown
Mazawrath Feb 7, 2022
d256d9e
Redisabled primary/secondary fire after break ends
Mazawrath Feb 7, 2022
b9fa331
Made ball yeeting rule end if break ends
Mazawrath Feb 7, 2022
b97f2c1
Reduced torb yeeting cooldown
Mazawrath Feb 7, 2022
ff653f6
Enabled max rounds during tourney mode
Mazawrath Feb 7, 2022
4840e79
Fixed typo
Mazawrath Feb 7, 2022
9fd4538
Fixed issue with stress torbs not getting deleted
Mazawrath Feb 7, 2022
3220857
Gave stress torbs a name
Mazawrath Feb 7, 2022
5d53601
Changed break length from 120 seconds to 60
Mazawrath Feb 7, 2022
9e54a69
Fixed an issue with match not ending when a break starts
Mazawrath Feb 7, 2022
cc22ac7
Fixed issue with torb ball being marked as stress torb
Mazawrath Feb 7, 2022
02d9c93
Added getting knocked down by thrown torb
Mazawrath Feb 7, 2022
f9b1b95
Made breaks not occur if the game ends
Mazawrath Feb 8, 2022
b921bc9
Simplified logic for ending game
Mazawrath Feb 8, 2022
9adfc28
Added HUD for tourney mode rounds remaining
Mazawrath Feb 8, 2022
8a44442
Made spawns consistent
Mazawrath Feb 10, 2022
c2616ca
Added variable for spawn point array
Mazawrath Feb 10, 2022
453d994
Fixed an issue with tourney breaks not happening on the last round
Mazawrath Feb 11, 2022
1808fb3
Added stress relief torbs in TDM
Mazawrath Feb 11, 2022
f5f367a
Fixed an issue with yeeting torbs and made knockdown range bigger
Mazawrath Feb 11, 2022
b9ef038
Fixed an issue with running tournament mode with Torb ball on
Mazawrath Feb 11, 2022
281cc1c
Increased Torb ball chance of doing small fun thing from 25% to 45%
Mazawrath Feb 11, 2022
00df815
Added Junkrat tire explosion for final duel players who die in the air
Mazawrath Feb 11, 2022
70897ee
Increased starting game countdown to let players that haven't loaded …
Mazawrath Feb 11, 2022
3bf0a25
Added water to earthbending mode for clarification
Mazawrath Feb 24, 2022
3e90a56
Added firebending to arena types
Mazawrath Feb 24, 2022
45752df
Removed stress-relief Torb from FFA mode
Mazawrath Feb 24, 2022
9a190ba
Removed u/ from developer name
Mazawrath Feb 24, 2022
8b44f32
Changed starting ball countdown to match actual countdown
Mazawrath Feb 24, 2022
6a2a47b
Fixed an issue with a 3rd player leaving triggering final duel but th…
Mazawrath Feb 25, 2022
aaacd77
Renamed category to notfy mode only works in FFA
Mazawrath Feb 27, 2022
232c033
Improved ball spawn countdown
Mazawrath Feb 27, 2022
d00b03c
Fixed issue with spawning in team deathmatch
Mazawrath Feb 27, 2022
16e8086
Set tournament tode to be disabled in teams
Mazawrath Feb 27, 2022
8504937
Added rule to set match time to 0 in teams when game end is disabled
Mazawrath Feb 27, 2022
f6f3bfc
Increased starting ball speed from 30 to 40
Mazawrath Feb 28, 2022
65b355e
Changed how announcer is enabled
Mazawrath Mar 11, 2022
460b895
Changed rule name
Mazawrath Mar 11, 2022
3e4cccb
Increased break length from 1 to 2 minutes
Mazawrath Mar 12, 2022
e196e13
Reenabled and edited rule to prevent undermapping
Mazawrath Mar 14, 2022
475d954
Redisabled undermapping rule
Mazawrath Mar 16, 2022
636fefe
Updated version number
Mazawrath Mar 16, 2022
3c0cf49
Updated codes
Mazawrath Mar 16, 2022
ccd2498
v7.7.0
Mazawrath Mar 16, 2022
dbfeb6b
Updated ball motion logic to remove unneeded loop
Mazawrath Apr 5, 2022
ea5c382
Added latency logic to let client predict where the ball should be. L…
Mazawrath Apr 5, 2022
6597a04
Made discord link not appear if watermark is disabled
Mazawrath Apr 5, 2022
5396815
Improved ball surface collision code from T1mur4TR#6594
Mazawrath Apr 5, 2022
1e6dd1a
Added input buttons for HUD elements
Mazawrath Apr 5, 2022
47387c6
Added final empty line
Mazawrath Apr 5, 2022
e01a7dc
Made countdown HUD red if you're targeted
Mazawrath Apr 5, 2022
09626ab
Added HUD element for lag compensation toggle
Mazawrath Apr 5, 2022
70ff278
Optimized ball bounce physics
Mazawrath Apr 6, 2022
6da2b22
Simplified ball tail logic
Mazawrath Apr 7, 2022
a74e15b
Set latency system to be on by default
Mazawrath Apr 7, 2022
b60566a
Reenabled anti-person undermapping rule
Mazawrath Apr 8, 2022
1d39040
Updated version numbers
Mazawrath May 29, 2022
b82cb79
Updated version number and codes
Mazawrath May 29, 2022
33bdae7
Fixed issue with locked view if looking down during lag compensation …
Mazawrath Jun 4, 2022
caa0799
Removed unneeded lines
Mazawrath Jun 4, 2022
eab768c
Removed test code
Mazawrath Jun 4, 2022
0b8071a
Added button strings for HUD instructions
Mazawrath Jun 4, 2022
38b0833
Added check so dummies don't get accused of undermapping
Mazawrath Jun 4, 2022
d5fb0b9
Fixed an issue with ball tail updating every tick but not the ball ef…
Mazawrath Jun 6, 2022
d2716b7
Added "Astro" ruleset
T1mur4TR Jun 10, 2022
2bf8f3c
Fixed a lapse in judgement
T1mur4TR Jun 10, 2022
bd3c169
Changed "Astro" behaviour, fixed a typo and made lag compensation dis…
T1mur4TR Jun 11, 2022
c3cbdfd
Removed every frame ball tail update
Mazawrath Jun 24, 2022
a241a20
Commented out potential future code
Mazawrath Jun 24, 2022
182be3e
Fixed issue with measuring latency while emoting
Mazawrath Jun 24, 2022
c745ec9
Made latency compensation disabled by default
Mazawrath Jun 24, 2022
36b12b1
Possibly effect desync fix + emote fix and lag compensation optimisation
T1mur4TR Jul 4, 2022
6fb91cf
Merge branch 'v7.8.0' into v7.8.0
Mazawrath Jul 7, 2022
8a4fda9
Merge pull request #34 from T1mur4TR/v7.8.0
Mazawrath Jul 8, 2022
31419ff
Fixed an issue with latencyh compensation being active during ball co…
Mazawrath Jul 16, 2022
8cdac34
Removed Astro ruleset from list
Mazawrath Jul 16, 2022
9cc7bc4
v7.8.0
Mazawrath Jul 18, 2022
dc2f08c
Lowered wiit to return to default direction rate
Mazawrath Jul 20, 2022
6abc8e8
Lowered wait to return to default direction rate
Mazawrath Jul 20, 2022
0a09409
Merge branch 'V7.8.1' of https://github.com/Mazawrath/Overwatch-Genji…
Mazawrath Jul 20, 2022
59a1226
Reverted change to wait loop
Mazawrath Jul 23, 2022
0f95c83
Undid change to ball direction rate change
Mazawrath Jul 24, 2022
a2a4720
Fixed some spectator stuff
T1mur4TR Jul 24, 2022
c2a4fec
Merge branch 'V7.8.1' into master
Mazawrath Jul 24, 2022
96ff7fb
Merge pull request #35 from T1mur4TR/master
Mazawrath Jul 24, 2022
3281be2
Made ball countdown hud color for targeted player lighter
Mazawrath Jul 25, 2022
0d826af
Updated version numbers
Mazawrath Jul 25, 2022
b992ff9
Made dead spectators see the ball's color, moved ball tail effects to…
T1mur4TR Jul 25, 2022
6e2ff62
Forgot to remove debug
T1mur4TR Jul 25, 2022
b9216b6
Made "Current Ball Speed" HUD gradually change color with ballSpeed
T1mur4TR Jul 25, 2022
b8cd242
Changed "Current Ball Speed" HUD color progression
T1mur4TR Jul 26, 2022
a8fbb58
Merge pull request #37 from T1mur4TR/V7.8.1
Mazawrath Jul 27, 2022
9a92d7a
Updated message
Mazawrath Jul 27, 2022
2551449
Updated version codes
Mazawrath Jul 27, 2022
4a25129
Fixed Death Camera ball color and copied all non-compression effects …
T1mur4TR Jul 27, 2022
830782c
Merge pull request #38 from T1mur4TR/V7.8.1
Mazawrath Jul 29, 2022
49c7e5e
Set 1st/3rd person toggle as default option
Mazawrath Jul 29, 2022
a3b4f0a
Fixed an issue with 1st/3rd person toggle during breaks
Mazawrath Jul 29, 2022
6931da8
v7.8.1
Mazawrath Jul 29, 2022
bebc243
Removed bad logic
Mazawrath Aug 12, 2022
7674c3f
Made HUD text less distracting
Mazawrath Jan 16, 2023
8d4389a
Added dynamic radius sizing for targeted aura
Mazawrath Jan 16, 2023
a1e9768
Fixed issues with ball phasing
Mazawrath Jan 17, 2023
9bbd015
Fixed OW2 import issue
Mazawrath Jan 21, 2023
346739e
Added a third person prompt
Mazawrath Jan 21, 2023
1788423
Fixed issue with button binding not showing
Mazawrath Jan 22, 2023
9a4ad68
Updated description and put names in Readme
Mazawrath Jan 22, 2023
d4830e0
Added another name
Mazawrath Jan 22, 2023
865fbfd
Updated in-game version numbers
Mazawrath Jan 22, 2023
a74c02d
Added color to mode name
Mazawrath Feb 25, 2023
6fc40bc
Fixed issue with final duel triggering when it shouldn't
Mazawrath Feb 25, 2023
261a3af
Fixed issue with final duel in teams
Mazawrath Feb 25, 2023
f955600
Fixed issue with final duel
Mazawrath Feb 25, 2023
ea80a3f
Simplified if statements for retro mode
Mazawrath Feb 25, 2023
9bcfbc3
Fixed issue with 1st prerson perpective not being selectable
Mazawrath Feb 25, 2023
29c30a6
Fixed issue with perspective mode prompt showing when it shouldn't
Mazawrath Feb 25, 2023
235f979
Removed HUD element during tournament mode
Mazawrath Feb 25, 2023
e09f50d
Added smaller 3rd person target aura for teams
Mazawrath Feb 25, 2023
62e52de
Made changes to invisible ball/players
Mazawrath Feb 25, 2023
0124b00
Disabled pass effect during invisible players
Mazawrath Feb 25, 2023
d9f8393
Fixed issue with final duel
Mazawrath Feb 25, 2023
48b4d38
Fixed issue with ball phasing through players shortly after deflecting
Mazawrath Feb 25, 2023
eb03e36
Updated version numbers and codes
Mazawrath Feb 26, 2023
70b798c
v7.9.0
Mazawrath Feb 26, 2023
2b24400
Added anti-cheat for teams invisible player
Mazawrath Apr 11, 2023
b3bfbc4
Fixed sliding bug
Mazawrath Apr 11, 2023
f0b7083
Added toggle for teams invisibile teams anti-cheat
Mazawrath Apr 11, 2023
8ec89bc
Removed color from mode name
Mazawrath Apr 11, 2023
e69a157
Updated version number
Mazawrath Apr 11, 2023
a7c0545
Added protections to prevent sliding in other knockdowns
Mazawrath May 18, 2023
343818d
Removed day workshop island, Blizzard FINALLY fixed annoying map pool…
Mazawrath May 18, 2023
64df3a5
Updated version numbers
Mazawrath May 18, 2023
78e18f2
v7.9.1
Mazawrath May 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
# Overwatch-Genji-Dodgeball
**Current Version: v7.1.1**
**Deathmatch Code: 8H59R**
**Current Version: v7.9.1**
**Deathmatch Code: VYDBB**

Genji Dodgeball is a minigame inspired by the TF2 game pyro dodgeball.
When the ball is red it is targeting you! Use your deflect to target someone else. Look at the person you want to target next while deflecting. Use bouncepads to get extra air and style points.

## Team Deathmatch
**Team Deathmatch Code: 2SS96**
**Team Deathmatch Code: BZMVY**
The Team Deathmatch version is a version where passing is enabled by default. To pass, hold the Secondary Fire button. The ball with pass to another teammate or if none are alive, it will pass it to yourself. Each pass will cost 100 health, you can get healed by deflecting the ball to a enemy, or someone on either team dies.

## How to compile
`Genji-Dodgeball.opy` is a file format compatable with OverPy, a high-level language for the Overwatch Workshop with support for compilation and decompilation.
Any file with a `.opy` ending is a file format compatable with OverPy, a high-level language for the Overwatch Workshop with support for compilation and decompilation.
[Follow this tutorial for instructions on how to compile this game.](https://github.com/Zezombye/overpy/wiki/General-usage)

## A personal note
I am the so called founder of this game, although many names have influenced this game, and I am very proud of that.
I have done 100% of the development of this game for free and I will always do it for free. Please do not be pressured to donate, this is only for if you want to go above and beyond. But if you appreciate what I create, and have funds to spare, I will greatly appreciate any amount that you give, and I will be truly thankful, from the bottom of my heart.
I am the founder of this game, although many names have influenced this game.
I have done 100% of the development of this game for free and I will always do it for free. Please do not be pressured to donate, this is only for if you want to go above and beyond. But if you appreciate what I create, and have funds to spare, I will appreciate any amount that you give.
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Q5Q64CGIL)

## Credit to others
Special thanks to the following for updating the game and improving it for everyone:
- u/FearlessKat
- u/Blink
- u/TheRedstoneBlaze
- ELIMINATED#1572
- T1mur4TR#6594
- DazNachbarzkind#2265
- And everyone else not named here who contributed.

## YouTube Video
[![YouTube video](http://img.youtube.com/vi/mQmDIZGKKR8/0.jpg)](http://www.youtube.com/watch?v=mQmDIZGKKR8)
166 changes: 85 additions & 81 deletions src/BallHero.opy
Original file line number Diff line number Diff line change
Expand Up @@ -8,125 +8,129 @@ rule "Create hero ball":
waitUntil(hostPlayer.hasSpawned(), 9999)
getPlayersOnHero(ballHero, Team.ALL).startFacing(directionTowards(getPlayersOnHero(ballHero, Team.ALL).getEyePosition(), hostPlayer.getEyePosition()), 1000, Relativity.TO_WORLD, FacingReeval.DIRECTION_AND_TURN_RATE)
ballPlayer = getPlayersOnHero(ballHero, Team.ALL)[0]
switch random.randint(1, 21):
case 1:
startingText = "People always underestimate the engineers!"
break
case 2:
startingText = "I'm giving it all I've got!"
break
case 3:
startingText = "I'd rather be the hammer, than the nail."
break
case 4:
startingText = "My baby!"
break
case 5:
startingText = "Build 'em up, break 'em down!"
break
case 6:
startingText = "Heh, time to roll up my sleeves!"
break
case 7:
startingText = "Time to get my hands dirty."
break
case 8:
startingText = "Torbjörn! Ready to work!"
break
case 9:
startingText = "You're making a chicken out of a feather."
break
case 10:
startingText = "Du gör en höna av en fjäder."
break
case 11:
startingText = "Fastna inte med skägget i brevlådan."
break
case 12:
startingText = "Köp inte grisen i säcken."
break
case 13:
startingText = "De är som en katt som går runt het gröt!"
break
case 14:
startingText = "Too hot for you?"
break
case 15:
startingText = "Bingo!"
break
case 16:
startingText = "For the last time, I'm Swedish!"
break
case 17:
startingText = "Ha ha! There's more where that came from."
break
case 18:
startingText = "Tehh... Poor craftsmen blames their tools..."
break
case 19:
startingText = "Just start hammering."
break
case 20:
startingText = "I smell trouble brewing"
break
case 21:
startingText = "There's no prize for coming in second"
break
if ballHero == Hero.TORBJORN:
switch random.randint(1, 21):
case 1:
startingText = "People always underestimate the engineers!"
break
case 2:
startingText = "I'm giving it all I've got!"
break
case 3:
startingText = "I'd rather be the hammer, than the nail."
break
case 4:
startingText = "My baby!"
break
case 5:
startingText = "Build 'em up, break 'em down!"
break
case 6:
startingText = "Heh, time to roll up my sleeves!"
break
case 7:
startingText = "Time to get my hands dirty."
break
case 8:
startingText = "Torbjörn! Ready to work!"
break
case 9:
startingText = "You're making a chicken out of a feather."
break
case 10:
startingText = "Du gör en höna av en fjäder."
break
case 11:
startingText = "Fastna inte med skägget i brevlådan."
break
case 12:
startingText = "Köp inte grisen i säcken."
break
case 13:
startingText = "De är som en katt som går runt het gröt!"
break
case 14:
startingText = "Too hot for you?"
break
case 15:
startingText = "Bingo!"
break
case 16:
startingText = "For the last time, I'm Swedish!"
break
case 17:
startingText = "Ha ha! There's more where that came from."
break
case 18:
startingText = "Tehh... Poor craftsmen blames their tools..."
break
case 19:
startingText = "Just start hammering."
break
case 20:
startingText = "I smell trouble brewing"
break
case 21:
startingText = "There's no prize for coming in second"
break
else:
startingText = "Wait... I'm " + ballHero + "? What did you do " + hostPlayer + "?"
createInWorldText(getAllPlayers(), startingText, ballPlayer.getEyePosition() + vect(0, 0.5, 0), 5, Clip.SURFACES, WorldTextReeval.VISIBILITY_AND_POSITION, Color.ORANGE, SpecVisibility.ALWAYS)
ballHeroRegretText = getLastCreatedText()


rule "Init hero ball":
@Event eachPlayer
@Condition ballHero
@Condition isGameInProgress()
@Condition eventPlayer.getCurrentHero() == ballHero

destroyInWorldText(ballHeroRegretText)
eventPlayer.stopFacing()
eventPlayer.setGravity(0)
eventPlayer.disablePlayerCollision()
# eventPlayer.startForcingPosition(updateEveryTick(ballPosition) + vect(0, -1, 0) , true)
ballPlayer.stopFacing()
ballPlayer.setGravity(0)
ballPlayer.disablePlayerCollision()
# ballPlayer.startForcingPosition(updateEveryTick(ballPosition) + vect(0, -1, 0) , true)
wait(0.5)
eventPlayer.startFacing(directionTowards(eventPlayer.getEyePosition(), targetedPlayer.getEyePosition()), 1000, Relativity.TO_WORLD, FacingReeval.DIRECTION_AND_TURN_RATE)
ballPlayer.startFacing(directionTowards(ballPlayer.getEyePosition(), targetedPlayer.getEyePosition()), 1000, Relativity.TO_WORLD, FacingReeval.DIRECTION_AND_TURN_RATE)


rule "Teleport hero ball":
@Event eachPlayer
@Condition ballHero
@Condition isGameInProgress()
@Condition eventPlayer.getCurrentHero() == ballHero
@Condition not ballPlayerMock

eventPlayer.teleport(ballPosition - vect(0, 1, 0))
ballPlayer.teleport(ballPosition - vect(0, 1, 0))
wait(0.001)
if RULE_CONDITION:
goto RULE_START


rule "Don't move while ball isn't in play":
@Event eachPlayer
@Condition ballHero
@Condition isGameInProgress()
@Condition eventPlayer.getCurrentHero() == ballHero
@Condition ballPlayerMock

eventPlayer.setGravity(100)
ballPlayer.setGravity(100)
waitUntil(not ballPlayerMock, 9999)
eventPlayer.startFacing(directionTowards(eventPlayer.getEyePosition(), targetedPlayer.getEyePosition()), 1000, Relativity.TO_WORLD, FacingReeval.DIRECTION_AND_TURN_RATE)
eventPlayer.setGravity(0)
if not ballPlayer.hasStatusEffect(Status.FROZEN):
ballPlayer.startFacing(directionTowards(ballPlayer.getEyePosition(), targetedPlayer.getEyePosition()), 1000, Relativity.TO_WORLD, FacingReeval.DIRECTION_AND_TURN_RATE)
ballPlayer.setGravity(0)


rule "Set hero ball outline":
@Event eachPlayer
@Condition ballHero
@Condition isGameInProgress()
@Condition eventPlayer.getCurrentHero() == ballHero

ballPlayer.startForcingOutlineFor([player for player in getAllPlayers() if player != targetedPlayer], true, Color.WHITE, OutlineVisibility.DEFAULT)
ballPlayer.startForcingOutlineFor([player for player in getAllPlayers() if player == targetedPlayer], true, Color.RED, OutlineVisibility.DEFAULT)
wait(0.1)
goto RULE_START


rule "Don't look around while frozen":
@Condition ballHero
@Condition isGameInProgress()
@Condition ballPlayer.hasStatusEffect(Status.FROZEN)

ballPlayer.stopFacing()


#!include "./Fun.opy"
Loading