mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
improved punkbuster
This commit is contained in:
parent
e7052754c3
commit
a4120f6ff5
4 changed files with 19 additions and 5 deletions
|
|
@ -217,6 +217,10 @@ function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, Nc, reque
|
|||
player.kill(killedByPlayer, options.ragDollId);
|
||||
};
|
||||
|
||||
GameController.prototype.onPositionStateReset = function(options) {
|
||||
this.me.resetPositionState(options);
|
||||
};
|
||||
|
||||
GameController.prototype.onRemoveGameObject = function(options) {
|
||||
var object = null;
|
||||
for (var i = 0; i < this.gameObjects[options.type].length; i++) {
|
||||
|
|
|
|||
|
|
@ -56,6 +56,11 @@ function (Parent, Settings) {
|
|||
return this.doll.isAnotherPlayerNearby();
|
||||
};
|
||||
|
||||
Me.prototype.resetPositionState = function(options) {
|
||||
this.doll.body.SetPosition(options.p);
|
||||
this.doll.body.SetLinearVelocity(options.lv);
|
||||
};
|
||||
|
||||
return Me;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue