7 spawnfunc(turret_phaser) { if (!turret_initialize(this, TUR_PHASER)) delete(this); }
11 METHOD(PhaserTurret, tr_think, void(PhaserTurret thistur, entity it))
13 if (it.tur_head.frame != 0)
17 if (it.tur_head.frame == 10)
18 it.tur_head.frame = 1;
20 it.tur_head.frame = it.tur_head.frame +1;
22 else if (it.fireflag == 2 )
24 it.tur_head.frame = it.tur_head.frame +1;
25 if (it.tur_head.frame == 15)
27 it.tur_head.frame = 0;
33 bool turret_phaser_firecheck(entity this);
34 METHOD(PhaserTurret, tr_setup, void(PhaserTurret this, entity it))
36 it.ammo_flags = TFL_AMMO_ENERGY | TFL_AMMO_RECHARGE | TFL_AMMO_RECIEVE;
37 it.aim_flags = TFL_AIM_LEAD;
39 it.turret_firecheckfunc = turret_phaser_firecheck;
41 bool turret_phaser_firecheck(entity this)
43 if (this.fireflag != 0) return false;
44 return turret_firecheck(this);