1
This commit is contained in:
parent
37481d59a1
commit
ee6aa207e0
@ -59,6 +59,9 @@ void Bullet::OnHit(std::set<Entity*>& objects)
|
||||
void Bullet::ProcBomb()
|
||||
{
|
||||
self_collider_->rad = gun_meta->i->explosion_range();
|
||||
if (IsCurrWeapon()) {
|
||||
self_collider_->rad *= (1 + sender.Get()->GetAttrRate(kHAT_WeaponExplosionRange));
|
||||
}
|
||||
std::set<Entity*> objects;
|
||||
Car* c4_target = nullptr;
|
||||
TraverseCreatures
|
||||
@ -480,5 +483,5 @@ void Bullet::ProcOilBucketBomb(int delay_time)
|
||||
|
||||
bool Bullet::IsCurrWeapon()
|
||||
{
|
||||
return false;
|
||||
return sender.Get()->GetCurrWeapon()->meta == gun_meta;
|
||||
}
|
||||
|
@ -1462,7 +1462,7 @@ void Creature::AutoLoadingBullet(bool manual)
|
||||
on_loading_bullet();
|
||||
}
|
||||
StartAction(AT_Reload,
|
||||
p_weapon->GetAttrValue(kHAT_ReloadTime),
|
||||
p_weapon->GetAttrValue(kHAT_ReloadTime) * (1 + GetAttrRate(kHAT_WeaponReloadTime)),
|
||||
p_weapon->weapon_id,
|
||||
p_weapon->weapon_idx);
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ float Human::GetSpeed()
|
||||
if (GetCurrWeapon()->weapon_idx == GUN_SLOT1 ||
|
||||
GetCurrWeapon()->weapon_idx == GUN_SLOT2) {
|
||||
if (action_type != AT_Reload) {
|
||||
return meta->i->shot_speed();
|
||||
return meta->i->shot_speed() * (1 + GetAttrRate(kHAT_ShotSpeed));
|
||||
}
|
||||
}
|
||||
} else if (aiming) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user