Skip to content

Commit

Permalink
Merge pull request #47 from Zedb0T/september-improvements
Browse files Browse the repository at this point in the history
stickycam and scale fix
  • Loading branch information
MikeGamePro authored Sep 3, 2024
2 parents 2072f92 + 704d696 commit 584e049
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
5 changes: 2 additions & 3 deletions EXAMPLE.env
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@ noduck_dur=45
nojump_dur=30
noledge_dur=60
noboosteds_dur=60
nojumps_dur=60
nojumps_dur=30
notex_dur=45
pacifist_dur=30
pinball_dur=20
protect_dur=60
rapidfire_dur=300
rapidfire_dur=240
rjto_dur=60
rocketman_dur=5
scale_dur=30
Expand All @@ -250,7 +250,6 @@ superboosted_dur=120
superjump_dur=60
widefish_dur=4
widejak_dur=45
nojumps_dur=60
first-camera-vertical-inverted=t
first-camera-horizontal-inverted=f
third-camera-vertical-inverted=t
Expand Down
15 changes: 7 additions & 8 deletions resources/twitchcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@
launcher_version = exists(application_path+"\OpenGOAL-Launcher.exe")

#checks
if (not exists(".env")):
if not exists(".env"):
print("ERROR: .env file not found -- please check if it is in the same folder as gk.exe and JakCrowdControl.exe")
time.sleep(936814)

if ((len(OAUTH) != 36) or (OAUTH[0:6] != "oauth:")):
if (len(OAUTH) != 36) or (OAUTH[0:6] != "oauth:"):
print("ERROR: Invalid ouath -- please get new oauth from: https://twitchapps.com/tmi/")
time.sleep(936814)

Expand Down Expand Up @@ -245,10 +245,10 @@ def active_check(cmd, line1):
"widefish": "(when (process-by-ename \"fisher-1\")(set! (-> *FISHER-bank* width)(meters 3.3)))",
"hardfish": "(when (process-by-ename \"fisher-1\")(set! (-> (the fisher (process-by-ename \"fisher-1\")) difficulty) 0)(set! (-> *FISHER-bank* max-caught) 200))",
"lowpoly": "(set! (-> *pc-settings* lod-force-tfrag) 0)(set! (-> *pc-settings* lod-force-tie) 0)(set! (-> *pc-settings* lod-force-ocean) 0)(set! (-> *pc-settings* lod-force-actor) 0)",
"widejak": "(set! (-> (-> (the-as target *target* )root)scale x) 1.0)(set! (-> (-> (the-as target *target* )root)scale y) 1.0)(set! (-> (the-as target *target* )root)scale z) 1.0)",
"flatjak": "(set! (-> (-> (the-as target *target* )root)scale x) 1.0)(set! (-> (-> (the-as target *target* )root)scale y) 1.0)(set! (-> (the-as target *target* )root)scale z) 1.0)",
"smalljak": "(set! (-> (-> (the-as target *target* )root)scale x) 1.0)(set! (-> (the-as target *target* )root)scale y) 1.0)(set! (-> (the-as target *target* )root)scale z) 1.0)(set! (-> *TARGET-bank* wheel-flip-dist) (meters 17.3))",
"bigjak": "(set! (-> (-> (the-as target *target* )root)scale x) 1.0)(set! (-> (the-as target *target* )root)scale y) 1.0)(set! (-> (the-as target *target* )root)scale z) 1.0)",
"widejak": "(set! (-> (-> (the-as target *target* )root)scale x) 1.0)(set! (-> (-> (the-as target *target* )root)scale y) 1.0)(set! (-> (-> (the-as target *target* )root)scale z) 1.0)",
"flatjak": "(set! (-> (-> (the-as target *target* )root)scale x) 1.0)(set! (-> (-> (the-as target *target* )root)scale y) 1.0)(set! (-> (-> (the-as target *target* )root)scale z) 1.0)",
"smalljak": "(set! (-> (-> (the-as target *target* )root)scale x) 1.0)(set! (-> (-> (the-as target *target* )root)scale y) 1.0)(set! (-> (-> (the-as target *target* )root)scale z) 1.0)(set! (-> *TARGET-bank* wheel-flip-dist) (meters 17.3))",
"bigjak": "(set! (-> (-> (the-as target *target* )root)scale x) 1.0)(set! (-> (-> (the-as target *target* )root)scale y) 1.0)(set! (-> (-> (the-as target *target* )root)scale z) 1.0)",
"color": "(set! (-> *target* draw color-mult x) 1.0)(set! (-> *target* draw color-mult y) 1.0)(set! (-> *target* draw color-mult z) 1.0)",
"scale": "(set! (-> (-> (the-as target *target* )root)scale x) 1.0)(set! (-> (-> (the-as target *target* )root)scale y) 1.0)(set! (-> (-> (the-as target *target* )root)scale z) 1.0)",
"slippery": "(set! (-> *stone-surface* slope-slip-angle) 8192.0)(set! (-> *stone-surface* slip-factor) 1.0)(set! (-> *stone-surface* transv-max) 1.0)(set! (-> *stone-surface* turnv) 1.0)(set! (-> *stone-surface* nonlin-fric-dist) 5120.0)(set! (-> *stone-surface* fric) 153600.0)(set! (-> *grass-surface* slope-slip-angle) 16384.0)(set! (-> *grass-surface* slip-factor) 1.0)(set! (-> *grass-surface* transv-max) 1.0)(set! (-> *grass-surface* turnv) 1.0)(set! (-> *grass-surface* nonlin-fric-dist) 4096.0)(set! (-> *grass-surface* fric) 122880.0)(set! (-> *ice-surface* slip-factor) 0.7)(set! (-> *ice-surface* nonlin-fric-dist) 4091904.0)(set! (-> *ice-surface* fric) 23756.8)",
Expand Down Expand Up @@ -821,8 +821,7 @@ def gamecontrol():
elif command in {"stickycam"} and enabled_check("stickycam") and cd_check("stickycam"):
deactivate("cam")
active_check("stickycam",
f"(send-event *target* 'no-look-around (seconds {durations[command_names.index("stickycam")]}))(send-event *camera* 'change-state cam-circular 0)",
"(send-event *target* 'no-look-around (seconds 0))(send-event *camera* 'change-state cam-string 0)")
f"(send-event *target* 'no-look-around (seconds {durations[command_names.index("stickycam")]}))(send-event *camera* 'change-state cam-circular 0)")

#elif command in {"askew"} and enabled_check("askew") and cd_check("askew"):
# active_check("askew",
Expand Down

0 comments on commit 584e049

Please sign in to comment.