diff --git a/src/gi.cpp b/src/gi.cpp index cce28d49a..efcfe74da 100644 --- a/src/gi.cpp +++ b/src/gi.cpp @@ -71,6 +71,8 @@ DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, defKickback) DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, healthpic) DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, berserkpic) DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, defaultdropstyle) +DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, normforwardmove) +DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, normsidemove) const char *GameNames[17] = { diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index e7d0436f7..704e736d2 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -374,6 +374,8 @@ struct GameInfoStruct native native int defaultdropstyle; native TextureID healthpic; native TextureID berserkpic; + native double normforwardmove[2]; + native double normsidemove[2]; } class Object native diff --git a/wadsrc/static/zscript/shared/player.txt b/wadsrc/static/zscript/shared/player.txt index 04d3ec715..2248ddc42 100644 --- a/wadsrc/static/zscript/shared/player.txt +++ b/wadsrc/static/zscript/shared/player.txt @@ -1183,8 +1183,8 @@ class PlayerPawn : Actor // Strife's player can't run when its health is below 10 if (health <= RunHealth) { - forward = clamp(forward, -0x1900, 0x1900); - side = clamp(side, -0x1800, 0x1800); + forward = clamp(forward, -gameinfo.normforwardmove[0], gameinfo.normforwardmove[0]); + side = clamp(side, -gameinfo.normsidemove[0], gameinfo.normsidemove[0]); } // [GRB]