5 spawnfunc(turret_phaser) { if (!turret_initialize(this, TUR_PHASER)) delete(this); }
9 METHOD(PhaserTurret, tr_think, void(PhaserTurret thistur, entity it))
11 if (it.tur_head.frame != 0)
15 if (it.tur_head.frame == 10)
16 it.tur_head.frame = 1;
18 it.tur_head.frame = it.tur_head.frame +1;
20 else if (it.fireflag == 2 )
22 it.tur_head.frame = it.tur_head.frame +1;
23 if (it.tur_head.frame == 15)
25 it.tur_head.frame = 0;
31 bool turret_phaser_firecheck(entity this);
32 METHOD(PhaserTurret, tr_setup, void(PhaserTurret this, entity it))
34 it.ammo_flags = TFL_AMMO_ENERGY | TFL_AMMO_RECHARGE | TFL_AMMO_RECIEVE;
35 it.aim_flags = TFL_AIM_LEAD;
37 it.turret_firecheckfunc = turret_phaser_firecheck;
39 bool turret_phaser_firecheck(entity this)
41 if (this.fireflag != 0) return false;
42 return turret_firecheck(this);