This commit is contained in:
aozhiwei 2020-07-31 19:40:29 +08:00
parent 78e52a7ff9
commit 7ba43acd3d
2 changed files with 3 additions and 3 deletions

View File

@ -2967,9 +2967,9 @@ void Human::ProcBuffEffect(Human* caster, Buff* buff)
car_weapon.weapon_idx = 100;
car_weapon.weapon_id = car_weapon_meta->i->id();
car_weapon.weapon_lv = 1;
car_weapon.ammo = 1;
car_weapon.meta = car_weapon_meta;
car_weapon.Recalc();
car_weapon.ammo = car_weapon.GetClipVolume();
}
}
}
@ -3943,9 +3943,9 @@ void Human::OnChgToTerminator()
weapon->weapon_idx = i;
weapon->weapon_id = weapon_meta->i->id();
weapon->weapon_lv = 1;
weapon->ammo = 1;
weapon->meta = weapon_meta;
weapon->Recalc();
weapon->ammo = weapon->GetClipVolume();
if (i == 0) {
default_weapon = *weapon;
}

View File

@ -412,7 +412,7 @@ Human* ZombieModeAI::GetTarget()
target = nullptr;
}
#endif
#if 1
#if 0
if (target->IsPlayer()) {
target = nullptr;
}