diff --git a/src/game/client/prediction/entities/character.cpp b/src/game/client/prediction/entities/character.cpp index 2d4e98231..7676fa376 100644 --- a/src/game/client/prediction/entities/character.cpp +++ b/src/game/client/prediction/entities/character.cpp @@ -356,7 +356,10 @@ void CCharacter::FireWeapon() // if we Hit anything, we have to wait for the reload if(Hits) - m_ReloadTimer = GameWorld()->GameTickSpeed() / 3; + { + float FireDelay = GetTuning(m_TuneZone)->m_HammerHitFireDelay; + m_ReloadTimer = FireDelay * GameWorld()->GameTickSpeed() / 1000; + } } break; diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index 8289066ee..962bd4f33 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -463,7 +463,14 @@ void CCharacter::FireWeapon() // if we Hit anything, we have to wait for the reload if(Hits) - m_ReloadTimer = Server()->TickSpeed() / 3; + { + float FireDelay; + if(!m_TuneZone) + FireDelay = GameServer()->Tuning()->m_HammerHitFireDelay; + else + FireDelay = GameServer()->TuningList()[m_TuneZone].m_HammerHitFireDelay; + m_ReloadTimer = FireDelay * Server()->TickSpeed() / 1000; + } } break; diff --git a/src/game/tuning.h b/src/game/tuning.h index b1912b1a7..b961251fb 100644 --- a/src/game/tuning.h +++ b/src/game/tuning.h @@ -52,9 +52,10 @@ MACRO_TUNING_PARAM(ExplosionStrength, explosion_strength, 6.0f, "Explosion stren MACRO_TUNING_PARAM(HammerStrength, hammer_strength, 1.0f, "Hammer strength") MACRO_TUNING_PARAM(HookDuration, hook_duration, 1.25f, "Hook duration") -MACRO_TUNING_PARAM(HammerFireDelay, hammer_fire_delay, 125, "Delay of hammering") +MACRO_TUNING_PARAM(HammerFireDelay, hammer_fire_delay, 125, "Delay of hammering (when hitting nothing)") MACRO_TUNING_PARAM(GunFireDelay, gun_fire_delay, 125, "Delay of firing gun") MACRO_TUNING_PARAM(ShotgunFireDelay, shotgun_fire_delay, 500, "Delay of firing shotgun") MACRO_TUNING_PARAM(GrenadeFireDelay, grenade_fire_delay, 500, "Delay of firing grenade") MACRO_TUNING_PARAM(LaserFireDelay, laser_fire_delay, 800, "Delay of firing laser laser") MACRO_TUNING_PARAM(NinjaFireDelay, ninja_fire_delay, 800, "Delay of firing ninja") +MACRO_TUNING_PARAM(HammerHitFireDelay, hammer_hit_fire_delay, 320, "Delay of hammering (when hitting another tee)")