bot: remove violence on bot kill (fixes #198).

This commit is contained in:
ds 2020-11-10 13:23:55 +03:00
commit ceb05bfa68

View file

@ -118,6 +118,7 @@ void BotManager::touchKillerEntity (Bot *bot) {
m_killerEntity->v.classname = MAKE_STRING (prop.classname.chars ()); m_killerEntity->v.classname = MAKE_STRING (prop.classname.chars ());
m_killerEntity->v.dmg_inflictor = bot->ent (); m_killerEntity->v.dmg_inflictor = bot->ent ();
m_killerEntity->v.dmg = (bot->pev->health + bot->pev->armorvalue) * 4.0f;
KeyValueData kv; KeyValueData kv;
kv.szClassName = const_cast <char *> (prop.classname.chars ()); kv.szClassName = const_cast <char *> (prop.classname.chars ());