General > Developers Corner

Stopping Movement

(1/2) > >>

Moka:
Is there anyway I could stop all player movement when I call 'GM:ScoreboardShow()'?
Tried using 'GM:CreateMove' but seeing as the gmod wiki doesn't like having pages I need I come to ask you guys for some assistance.
Tried using 'GM:Move' but it doesn't seem to work.

nathan736:
what your asking could  -not sure- be exploited to prevent fall damage floating in the air and other things if your talking stop as in no user key input just run on client
the - keys for movement or what ever it is its probably the cheating way but eh does the same thing in the end

Moka:
I am trying to get the player to stop moving when the scoreboard is open. Like seeing if KeyDown IN_FORWARD or something then returning nothing.

nathan736:
just add concommands -foward -left -right -back
make sure you don't target every one

JamminR:
I think there are hooks for scoreboard viewing.
Research them, then combine them with a freeze command stuff we use in ULX.

EDIT - yep-
 http://wiki.garrysmod.com/index.php?title=Hooks/Base/ScoreboardHide and http://wiki.garrysmod.com/index.php?title=Hooks/Base/ScoreboardShow
(No, they don't have content explaining, but heck, test them, learn how they work if you can, then update the Wiki.)

Navigation

[0] Message Index

[#] Next page

Go to full version