From 1d7a7f2332da45098e46cca91ca3bbc150c240f2 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Sat, 18 Aug 2018 06:05:18 +0500 Subject: [PATCH] Fix rat's health and damage. --- dlls/rat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/rat.cpp b/dlls/rat.cpp index f8eef340..7ca93259 100644 --- a/dlls/rat.cpp +++ b/dlls/rat.cpp @@ -39,6 +39,7 @@ public: void HandleAnimEvent( MonsterEvent_t *pEvent ); void EXPORT RatLeapTouch( CBaseEntity *pOther ); void StartTask( Task_t *pTask ); + float GetDamageAmount( void ) { return gSkillData.leechDmgBite; } void PainSound( void ); void DeathSound( void ); @@ -110,7 +111,7 @@ void CRat::Spawn() pev->solid = SOLID_SLIDEBOX; pev->movetype = MOVETYPE_STEP; m_bloodColor = BLOOD_COLOR_RED; - pev->health = 8; + pev->health = gSkillData.leechHealth;; pev->view_ofs = Vector( 0, 0, 6 );// position of the eyes relative to monster's origin. m_flFieldOfView = 0.5;// indicates the width of this monster's forward view cone ( as a dotproduct result ) m_MonsterState = MONSTERSTATE_NONE;