Facepunch / garrysmod-requests

Feature requests for Garry's Mod
83 stars 24 forks source link

Add Missing Parameter to NPC:StopMoving() #2385

Closed DrVrej closed 1 month ago

DrVrej commented 1 month ago

Currently the NPC method StopMoving is missing an essential parameter bImmediate, by default it's set to true, which is what the binded Lua version is set to. However, in the Lua version we don't have the ability to set it to false. When set to false, the NPC will gradually slow down using its locomotion rather than doing a sudden stop. This should be a quick implement, thank you.

Link: https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/ai_navigator.cpp#L911

robotboy655 commented 1 month ago

Done.