Expose P_ButteredSlope to lua
not much else to say here
Merge request reports
Activity
P_ButteredSlope
is portable to Lua, yeah, but I don't think that's a good reason against exposing it; there are plenty of functions already exposed to Lua that could have been ported manually. I don't think it's a stretch to say that most of SRB2's scripting community isn't prepared to dig through the source code, much less figure out the specifics of how to translate C to Lua. Abstracting a function through exposure makes life easier for scripters, and also improves forward-compatibility if the implementation of a function likeP_ButteredSlope
is changed in the future.If the function had a very niche usecase, I could see the case against it, but it's not at all out of the question that a scripter would want to create an object that slides down slopes the same way some hardcoded objects do - I've had to port this exact function to Lua myself in the past, so I'm speaking from experience here.
added 99 commits
-
326be012...df9b5c43 - 98 commits from branch
STJr:next
- 32a4b270 - Merge branch 'next' of https://git.do.srb2.org/STJr/SRB2 into buttered-lua
-
326be012...df9b5c43 - 98 commits from branch
added Lua label
mentioned in commit de0a9172
changed milestone to %2.2.10