mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
parent
08348fcd43
commit
22eb12c6a8
3 changed files with 1 additions and 33 deletions
|
|
@ -1388,26 +1388,6 @@ static int lib_pSwitchShield(lua_State *L)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lib_pPlayerCanEnterSpinGaps(lua_State *L)
|
|
||||||
{
|
|
||||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
|
||||||
INLEVEL
|
|
||||||
if (!player)
|
|
||||||
return LUA_ErrInvalid(L, "player_t");
|
|
||||||
lua_pushboolean(L, P_PlayerCanEnterSpinGaps(player));
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int lib_pPlayerShouldUseSpinHeight(lua_State *L)
|
|
||||||
{
|
|
||||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
|
||||||
INLEVEL
|
|
||||||
if (!player)
|
|
||||||
return LUA_ErrInvalid(L, "player_t");
|
|
||||||
lua_pushboolean(L, P_PlayerShouldUseSpinHeight(player));
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// P_MAP
|
// P_MAP
|
||||||
///////////
|
///////////
|
||||||
|
|
||||||
|
|
@ -3879,8 +3859,6 @@ static luaL_Reg lib[] = {
|
||||||
{"P_ReturnThrustY",lib_pReturnThrustY},
|
{"P_ReturnThrustY",lib_pReturnThrustY},
|
||||||
{"P_NukeEnemies",lib_pNukeEnemies},
|
{"P_NukeEnemies",lib_pNukeEnemies},
|
||||||
{"P_SwitchShield",lib_pSwitchShield},
|
{"P_SwitchShield",lib_pSwitchShield},
|
||||||
{"P_PlayerCanEnterSpinGaps",lib_pPlayerCanEnterSpinGaps},
|
|
||||||
{"P_PlayerShouldUseSpinHeight",lib_pPlayerShouldUseSpinHeight},
|
|
||||||
|
|
||||||
// p_map
|
// p_map
|
||||||
{"P_CheckPosition",lib_pCheckPosition},
|
{"P_CheckPosition",lib_pCheckPosition},
|
||||||
|
|
|
||||||
|
|
@ -157,8 +157,6 @@ void P_SetPlayerAngle(player_t *player, angle_t angle);
|
||||||
angle_t P_GetLocalAngle(player_t *player);
|
angle_t P_GetLocalAngle(player_t *player);
|
||||||
void P_ForceLocalAngle(player_t *player, angle_t angle);
|
void P_ForceLocalAngle(player_t *player, angle_t angle);
|
||||||
boolean P_PlayerFullbright(player_t *player);
|
boolean P_PlayerFullbright(player_t *player);
|
||||||
boolean P_PlayerCanEnterSpinGaps(player_t *player);
|
|
||||||
boolean P_PlayerShouldUseSpinHeight(player_t *player);
|
|
||||||
|
|
||||||
boolean P_IsObjectInGoop(mobj_t *mo);
|
boolean P_IsObjectInGoop(mobj_t *mo);
|
||||||
boolean P_IsObjectOnGround(mobj_t *mo);
|
boolean P_IsObjectOnGround(mobj_t *mo);
|
||||||
|
|
|
||||||
10
src/p_map.c
10
src/p_map.c
|
|
@ -2479,10 +2479,7 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
|
||||||
if (thing->type == MT_SKIM)
|
if (thing->type == MT_SKIM)
|
||||||
maxstep = 0;
|
maxstep = 0;
|
||||||
|
|
||||||
if (tmceilingz - tmfloorz < thing->height
|
if (tmceilingz - tmfloorz < thing->height)
|
||||||
|| (thing->player
|
|
||||||
&& tmceilingz - tmfloorz < P_GetPlayerHeight(thing->player)
|
|
||||||
&& !P_PlayerCanEnterSpinGaps(thing->player)))
|
|
||||||
{
|
{
|
||||||
if (tmfloorthing)
|
if (tmfloorthing)
|
||||||
tmhitthing = tmfloorthing;
|
tmhitthing = tmfloorthing;
|
||||||
|
|
@ -3139,11 +3136,6 @@ static boolean PTR_LineIsBlocking(line_t *li)
|
||||||
if (openbottom - slidemo->z > FixedMul(MAXSTEPMOVE, mapobjectscale))
|
if (openbottom - slidemo->z > FixedMul(MAXSTEPMOVE, mapobjectscale))
|
||||||
return true; // too big a step up
|
return true; // too big a step up
|
||||||
|
|
||||||
if (slidemo->player
|
|
||||||
&& openrange < P_GetPlayerHeight(slidemo->player)
|
|
||||||
&& !P_PlayerCanEnterSpinGaps(slidemo->player))
|
|
||||||
return true; // nonspin character should not take this path
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue