mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Expose P_PlayerZMovement to Lua.
Finishing off these changes; how a player moves vertically.
This commit is contained in:
parent
df1fd0c456
commit
4b3d6f04f8
3 changed files with 14 additions and 1 deletions
|
@ -979,6 +979,17 @@ static int lib_pSceneryZMovement(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lib_pPlayerZMovement(lua_State *L)
|
||||
{
|
||||
mobj_t *actor = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||
NOHUD
|
||||
INLEVEL
|
||||
if (!actor)
|
||||
return LUA_ErrInvalid(L, "mobj_t");
|
||||
P_PlayerZMovement(actor);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// P_USER
|
||||
////////////
|
||||
|
||||
|
@ -3343,6 +3354,7 @@ static luaL_Reg lib[] = {
|
|||
{"P_ZMovement",lib_pZMovement},
|
||||
{"P_RingZMovement",lib_pRingZMovement},
|
||||
{"P_SceneryZMovement",lib_pSceneryZMovement},
|
||||
{"P_PlayerZMovement",lib_pPlayerZMovement},
|
||||
|
||||
// p_user
|
||||
{"P_GetPlayerHeight",lib_pGetPlayerHeight},
|
||||
|
|
|
@ -2891,7 +2891,7 @@ static boolean P_PlayerPolyObjectZMovement(mobj_t *mo)
|
|||
return stopmovecut;
|
||||
}
|
||||
|
||||
static void P_PlayerZMovement(mobj_t *mo)
|
||||
void P_PlayerZMovement(mobj_t *mo)
|
||||
{
|
||||
boolean onground;
|
||||
|
||||
|
|
|
@ -476,6 +476,7 @@ void P_SceneryXYMovement(mobj_t *mo);
|
|||
boolean P_ZMovement(mobj_t *mo);
|
||||
void P_RingZMovement(mobj_t *mo);
|
||||
boolean P_SceneryZMovement(mobj_t *mo);
|
||||
void P_PlayerZMovement(mobj_t *mo);
|
||||
void P_EmeraldManager(void);
|
||||
|
||||
extern INT32 modulothing;
|
||||
|
|
Loading…
Reference in a new issue