Spectator camera 'smoothing'
radionaut
california Join Date: 2013-01-22 Member: 181192Members, Reinforced - Supporter, WC 2013 - Gold
california Join Date: 2013-01-22 Member: 181192Members, Reinforced - Supporter, WC 2013 - Gold
Comments
http://wiki.unknownworlds.com/ns2/Console_Commands#Gameplay_and_Mapping
i guess what i'm trying to describe is a simple key function that while held down, will decelerate the camera's wasd movement. something that works in vanilla (no cheats), and overhead/freecam spectator mode.
cheats or doing command in the rr
holding [Movement Special] in overhead spectate mode will effectively double (or more?) the camera speed..so i'm hoping that having a key that would do the opposite isn't too far out of the realm of possibility.
here's the stanza i modified (lines 54-86, changes in bold)
local function GetOverheadMove(self, input) local move = input.move if bit.band(input.commands, Move.ScrollForward) ~= 0 then move.z = 1 end if bit.band(input.commands, Move.ScrollBackward) ~= 0 then move.z = -1 end if bit.band(input.commands, Move.ScrollLeft) ~= 0 then move.x = 1 end if bit.band(input.commands, Move.ScrollRight) ~= 0 then move.x = -1 end if bit.band(input.commands, Move.MovementModifier) ~= 0 then speedModifierScalar = 2.5 --start change elseif bit.band(input.commands, Move.Crouch) ~= 0 then speedModifierScalar = 0.3 --end change else speedModifierScalar = 1 end return move endEdit by Ghoul: put code into a code box so it looks nicer :P PS: try services like gists