mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
don't disable grabbing when teleporting
This commit is contained in:
parent
1a9f43cb67
commit
045042a9c6
1 changed files with 0 additions and 13 deletions
|
@ -94,7 +94,6 @@ function Teleporter() {
|
||||||
|
|
||||||
this.initialize = function() {
|
this.initialize = function() {
|
||||||
this.createMappings();
|
this.createMappings();
|
||||||
this.disableGrab();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.createMappings = function() {
|
this.createMappings = function() {
|
||||||
|
@ -218,10 +217,6 @@ function Teleporter() {
|
||||||
this.updateConnected = null;
|
this.updateConnected = null;
|
||||||
this.inCoolIn = false;
|
this.inCoolIn = false;
|
||||||
inTeleportMode = false;
|
inTeleportMode = false;
|
||||||
|
|
||||||
Script.setTimeout(function() {
|
|
||||||
_this.enableGrab();
|
|
||||||
}, 200);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.update = function() {
|
this.update = function() {
|
||||||
|
@ -494,14 +489,6 @@ function Teleporter() {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
this.disableGrab = function() {
|
|
||||||
Messages.sendLocalMessage('Hifi-Hand-Disabler', this.teleportHand);
|
|
||||||
};
|
|
||||||
|
|
||||||
this.enableGrab = function() {
|
|
||||||
Messages.sendLocalMessage('Hifi-Hand-Disabler', 'none');
|
|
||||||
};
|
|
||||||
|
|
||||||
this.triggerHaptics = function() {
|
this.triggerHaptics = function() {
|
||||||
var hand = this.teleportHand === 'left' ? 0 : 1;
|
var hand = this.teleportHand === 'left' ? 0 : 1;
|
||||||
var haptic = Controller.triggerShortHapticPulse(0.2, hand);
|
var haptic = Controller.triggerShortHapticPulse(0.2, hand);
|
||||||
|
|
Loading…
Reference in a new issue