From ceb05bfa68d9fd5679490de4410b8ea7792e7d43 Mon Sep 17 00:00:00 2001 From: ds Date: Tue, 10 Nov 2020 13:23:55 +0300 Subject: [PATCH] bot: remove violence on bot kill (fixes #198). --- src/manager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/manager.cpp b/src/manager.cpp index 7bdd44d..83d2dae 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -118,6 +118,7 @@ void BotManager::touchKillerEntity (Bot *bot) { m_killerEntity->v.classname = MAKE_STRING (prop.classname.chars ()); m_killerEntity->v.dmg_inflictor = bot->ent (); + m_killerEntity->v.dmg = (bot->pev->health + bot->pev->armorvalue) * 4.0f; KeyValueData kv; kv.szClassName = const_cast (prop.classname.chars ());