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