Product Chat / GamePlayerState command

Author
Message
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 7th Jul 2021 21:19
Is the command SetGamePlayerStateSlowMotion() valid? It is found in the Global file as:

Quote: "SetGamePlayerStateSlowMotion: SetGamePlayerStateSlowMotion() -- command used by the default player control mechanism"


The "Get" command is found in both the Global and the "gameplayercontrol" module as

Quote: "GetGamePlayerStateSlowMotion: GetGamePlayerStateSlowMotion() -- command used by the default player control mechanism"


Within the "gameplayercontrol" module it implies that the command takes a binary value as it is written, "if ( GetGamePlayerStateSlowMotion() == 1 ...)"
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 7th Jul 2021 21:57
If it is used by gameplayercontrol.lua then yes it is *valid* as to what it actually does the clue should be in gameplayercontrol.lua!
Been there, done that, got all the T-Shirts!
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 7th Jul 2021 22:16
yes but you need to pair it with SetGamePlayerStateSmoothCameraKeys(1) to make it work (at least how the stock code uses it)
all it does is make the mouse move the camera around a bit slower (i.e. smoother) so it seems like the camera has a bit of a delay to it compared to the mouse movement - it doesn't make the game go into slow motion or "bullet time" if that is what you were hoping for
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-11-23 08:05:28
Your offset time is: 2024-11-23 08:05:28