fixed debug view and ragdoll start positioning

This commit is contained in:
Jeena 2015-03-16 01:50:41 +01:00
parent b6d979fe7c
commit 16826b174a
12 changed files with 135 additions and 73 deletions

View file

@ -55,7 +55,9 @@ function (Parent, Nc) {
};
Player.prototype.suicide = function() {
this.addDamage(100, this, null);
if(this.isSpawned()) {
this.addDamage(100, this, null);
}
};
Player.prototype.addDamage = function(damage, enemy, byItem) {