mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Adjust camera speed while moving
This commit is contained in:
parent
b0adf2e2ee
commit
ec6a0da01c
@ -199,7 +199,10 @@ switch (toLower _mode) do {
|
||||
|
||||
// Handle held keys (prevent repeat calling)
|
||||
if (_dik in GVAR(heldKeys)) exitwith {};
|
||||
// Exclude movement keys so that speed can be adjusted on fly
|
||||
if !(_dik in [17,30,31,32]) then {
|
||||
GVAR(heldKeys) pushBack _dik;
|
||||
};
|
||||
|
||||
switch (_dik) do {
|
||||
case 1: { // Esc
|
||||
@ -434,7 +437,10 @@ switch (toLower _mode) do {
|
||||
// Kill display
|
||||
_display closeDisplay 0;
|
||||
|
||||
// Reset UI vars
|
||||
// Reset cam/UI vars
|
||||
GVAR(camBoom) = 0;
|
||||
GVAR(camDolly) = [0,0];
|
||||
|
||||
GVAR(ctrlKey) = false;
|
||||
GVAR(heldKeys) = [];
|
||||
GVAR(mouse) = [false,false];
|
||||
|
Loading…
Reference in New Issue
Block a user