add enemy
This commit is contained in:
parent
276e11fb49
commit
edd005cb4d
7 changed files with 137 additions and 10 deletions
|
@ -93,6 +93,11 @@ class Player extends Entity {
|
|||
ent.isMenu = true;
|
||||
ent.rot = 1.2;
|
||||
}
|
||||
|
||||
if (target.type == 'Shooter') {
|
||||
this.health = 0;
|
||||
}
|
||||
|
||||
if (target.immortal) continue;
|
||||
|
||||
let oldHealth = target.health
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue