This commit is contained in:
aozhiwei 2020-07-20 11:21:30 +08:00
parent c84de56bbc
commit a6cf2728fe

View File

@ -323,11 +323,7 @@ void ZombieAI::ChangeToState(ZombieState_e to_state)
{
node_->moving = true;
node_->target = nullptr;
#if 1
node_->param1 = SERVER_FRAME_RATE * node_->ai_meta->GetMoveTime();
#else
node_->param1 = SERVER_FRAME_RATE * 5 + rand() % (SERVER_FRAME_RATE * 3);
#endif
node_->start_shot_frameno = 0;
node_->shot_times = 0;
node_->next_random_move_frameno = hum->room->GetFrameNo() +