Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
The reason jump overrides only work in a downward direction is due to the Source engine.
This can be verified in the Source SDK's C++ code.
https://github.com/ValveSoftware/source-sdk-2013/blob/39f6dde8fbc238727c020d13b05ecadd31bda4c0/src/game/server/ai_pathfinder.cpp#L644
To enable jumping for all entities, use this command:
lua_run hook.Add("OnEntityCreated", "Add CAP_MOVE_JUMP", function(e) if e:IsNPC() then timer.Simple(0, function() e:CapabilitiesAdd(CAP_MOVE_JUMP) end) end end)
However, while it is probably possible to change the maximum jump distance for scripted entities, I don't think you can change the maximum jump distance for NPCs, such as zombies in hl2, which are hard-coded in c++.
Also some NPCs behave strangely with this command (e.g. npc_rollermine can't jump upwards so it keeps rolling into the wall).