1
This commit is contained in:
parent
7a9c58ff93
commit
bc74c6704f
@ -506,13 +506,19 @@ void AndroidNewAI::UpdateAttack()
|
||||
case kShotClick:
|
||||
{
|
||||
if (ai_meta->i->attack_interval() > 0) {
|
||||
#if 0
|
||||
if (myself->room->GetFrameNo() - node_.start_shot_frameno >
|
||||
ai_meta->i->attack_interval() / 100) {
|
||||
//本轮射击结束
|
||||
node_.shot_times = 0;
|
||||
}
|
||||
#endif
|
||||
if (node_.shot_times < ai_meta->i->attack_times()) {
|
||||
DoShotNewAI();
|
||||
} else {
|
||||
ChangeToStateNewAI(ASE_Idle);
|
||||
node_.next_total_shot_times = node_.total_shot_times;
|
||||
node_.param1 = ai_meta->i->attack_interval() / 1000 * SERVER_FRAME_RATE;
|
||||
}
|
||||
} else {
|
||||
myself->shot_hold = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user