16 lines
331 B
JavaScript
16 lines
331 B
JavaScript
|
|
class entity_enemy_enforcer_t extends entity_enemy_t {
|
|
_init(patrol_dir) {
|
|
super._init(patrol_dir);
|
|
this._model = model_enforcer;
|
|
this._texture = 19;
|
|
this._health = 80;
|
|
this.s = vec3(14,44,14);
|
|
}
|
|
|
|
_attack() {
|
|
this._play_sound(sfx_plasma_shoot);
|
|
this._spawn_projectile(entity_projectile_plasma_t, 800, 0, 0);
|
|
}
|
|
}
|