mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 13:44:32 +02:00
revert bow.js changes
This commit is contained in:
parent
b1d556aee2
commit
1fcfc9444b
1 changed files with 2 additions and 14 deletions
|
@ -154,7 +154,6 @@
|
||||||
},
|
},
|
||||||
continueEquip: function(entityID, args) {
|
continueEquip: function(entityID, args) {
|
||||||
this.deltaTime = checkInterval();
|
this.deltaTime = checkInterval();
|
||||||
print("continueEquip deltaTime:" + this.deltaTime);
|
|
||||||
//debounce during debugging -- maybe we're updating too fast?
|
//debounce during debugging -- maybe we're updating too fast?
|
||||||
if (USE_DEBOUNCE === true) {
|
if (USE_DEBOUNCE === true) {
|
||||||
this.sinceLastUpdate = this.sinceLastUpdate + this.deltaTime;
|
this.sinceLastUpdate = this.sinceLastUpdate + this.deltaTime;
|
||||||
|
@ -375,8 +374,8 @@
|
||||||
this.pullBackDistance = 0;
|
this.pullBackDistance = 0;
|
||||||
this.state = STATE_ARROW_GRABBED;
|
this.state = STATE_ARROW_GRABBED;
|
||||||
} else {
|
} else {
|
||||||
this.updateArrowPositionInNotch(false, false);
|
|
||||||
this.updateString();
|
this.updateString();
|
||||||
|
this.updateArrowPositionInNotch(false, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.state === STATE_ARROW_GRABBED) {
|
if (this.state === STATE_ARROW_GRABBED) {
|
||||||
|
@ -591,16 +590,5 @@
|
||||||
Messages.subscribe('Hifi-Object-Manipulation');
|
Messages.subscribe('Hifi-Object-Manipulation');
|
||||||
Messages.messageReceived.connect(bow.handleMessages);
|
Messages.messageReceived.connect(bow.handleMessages);
|
||||||
|
|
||||||
var TIMER_INTERVAL = 5;
|
|
||||||
var lastRPC = Date.now();
|
|
||||||
var RPCkicker = Script.setInterval(function() {
|
|
||||||
// do nothing, but make sure we get RPC messages in a reliable way
|
|
||||||
var now = Date.now();
|
|
||||||
deltaTime = now - lastRPC;
|
|
||||||
lastRPC = now;
|
|
||||||
//print("RPCkicker interval:"+deltaTime);
|
|
||||||
},TIMER_INTERVAL);
|
|
||||||
|
|
||||||
|
|
||||||
return bow;
|
return bow;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue