mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:29:32 +02:00
adjust coolin
This commit is contained in:
parent
b8213aed7b
commit
992504e179
1 changed files with 11 additions and 6 deletions
|
@ -39,7 +39,7 @@ var COLORS_TELEPORT_TOO_CLOSE = {
|
||||||
|
|
||||||
var TELEPORT_CANCEL_RANGE = 1.5;
|
var TELEPORT_CANCEL_RANGE = 1.5;
|
||||||
var USE_COOL_IN = true;
|
var USE_COOL_IN = true;
|
||||||
var COOL_IN_DURATION = 1750;
|
var COOL_IN_DURATION = 500;
|
||||||
|
|
||||||
function ThumbPad(hand) {
|
function ThumbPad(hand) {
|
||||||
this.hand = hand;
|
this.hand = hand;
|
||||||
|
@ -111,6 +111,12 @@ function Teleporter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
inTeleportMode = true;
|
inTeleportMode = true;
|
||||||
|
this.inCoolIn = true;
|
||||||
|
print('setting cool in timeout')
|
||||||
|
this.coolInTimeout = Script.setTimeout(function() {
|
||||||
|
print('should exit cool in mode now' + COOL_IN_DURATION)
|
||||||
|
_this.inCoolIn = false;
|
||||||
|
}, COOL_IN_DURATION)
|
||||||
|
|
||||||
if (this.smoothArrivalInterval !== null) {
|
if (this.smoothArrivalInterval !== null) {
|
||||||
Script.clearInterval(this.smoothArrivalInterval);
|
Script.clearInterval(this.smoothArrivalInterval);
|
||||||
|
@ -123,10 +129,9 @@ function Teleporter() {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
Script.update.connect(this.update);
|
Script.update.connect(this.update);
|
||||||
this.updateConnected = true;
|
this.updateConnected = true;
|
||||||
this.inCoolIn = true;
|
|
||||||
Script.setTimeout(function() {
|
|
||||||
_this.inCoolIn = false;
|
|
||||||
}, COOL_IN_DURATION)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.createTargetOverlay = function() {
|
this.createTargetOverlay = function() {
|
||||||
|
@ -202,7 +207,7 @@ function Teleporter() {
|
||||||
this.turnOffOverlayBeams();
|
this.turnOffOverlayBeams();
|
||||||
|
|
||||||
this.updateConnected = null;
|
this.updateConnected = null;
|
||||||
_this.inCoolIn = false;
|
this.inCoolIn = false;
|
||||||
|
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
inTeleportMode = false;
|
inTeleportMode = false;
|
||||||
|
|
Loading…
Reference in a new issue