Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
BoostStack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Indev
BoostStack
Commits
86ca9b1f
Commit
86ca9b1f
authored
1 year ago
by
Indev
Browse files
Options
Downloads
Patches
Plain Diff
Fix formatting, fix one typo
parent
f5039597
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Lua/acrobasics.lua
+2
-2
2 additions, 2 deletions
src/Lua/acrobasics.lua
src/Lua/slope.lua
+3
-3
3 additions, 3 deletions
src/Lua/slope.lua
with
5 additions
and
5 deletions
src/Lua/acrobasics.lua
+
2
−
2
View file @
86ca9b1f
...
...
@@ -15,8 +15,8 @@ booststack.registerBoostType("acrobasicsboost", {
getBoostPower
=
function
(
pmo
)
local
player
=
pmo
.
player
local
speedboost
=
player
.
trickbooststr
local
accelboost
=
player
.
finaltrickboost
and
4
*
FRACUNIT
or
player
.
trickboost
and
2
*
FRACUNIT
or
0
local
speedboost
=
player
.
trickbooststr
local
accelboost
=
player
.
finaltrickboost
and
4
*
FRACUNIT
or
player
.
trickboost
and
2
*
FRACUNIT
or
0
return
speedboost
,
accelboost
end
,
...
...
This diff is collapsed.
Click to expand it.
src/Lua/slope.lua
+
3
−
3
View file @
86ca9b1f
...
...
@@ -42,7 +42,7 @@ booststack.registerBoostType("slopeboost", {
dynamic
=
true
,
getBoostPower
=
function
(
pmo
)
return
pmo
.
slopeboost
or
0
,
pmo
.
slopeaccel
or
0
return
pmo
.
slopeboost
or
0
,
pmo
.
slopeaccel
or
0
end
,
})
...
...
@@ -75,7 +75,7 @@ addHook("MobjThinker", function(pmo)
end
local
flip
=
pmo
.
eflags
&
MFE_VERTICALFLIP
local
momangle
=
R_PointToAngle2
(
0
,
0
,
pmo
.
momx
,
pmo
.
momy
)
local
momangle
=
R_PointToAngle2
(
0
,
0
,
pmo
.
momx
,
pmo
.
momy
)
local
hillangle
=
0
...
...
@@ -115,5 +115,5 @@ addHook("MobjThinker", function(pmo)
end
,
MT_PLAYER
)
addHook
(
"MobjThinker"
,
function
(
pmo
)
if
booststack
.
running
and
(
pmo
.
slopeboost
or
pmo
.
accel
boost
)
then
booststack
.
doBoost
(
pmo
,
"slopeboost"
,
1
)
end
if
booststack
.
running
and
(
pmo
.
slopeboost
or
pmo
.
slope
accel
)
then
booststack
.
doBoost
(
pmo
,
"slopeboost"
,
1
)
end
end
,
MT_PLAYER
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment