Add physics overrides for walk speed and Fast Mode (#14475)
Co-authored-by: Wuzzy <Wuzzy@disroot.org>
This commit is contained in:
@@ -198,6 +198,15 @@ int LuaLocalPlayer::l_get_physics_override(lua_State *L)
|
||||
lua_pushnumber(L, phys.acceleration_air);
|
||||
lua_setfield(L, -2, "acceleration_air");
|
||||
|
||||
lua_pushnumber(L, phys.speed_fast);
|
||||
lua_setfield(L, -2, "speed_fast");
|
||||
|
||||
lua_pushnumber(L, phys.acceleration_fast);
|
||||
lua_setfield(L, -2, "acceleration_fast");
|
||||
|
||||
lua_pushnumber(L, phys.speed_walk);
|
||||
lua_setfield(L, -2, "speed_walk");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user