bot: remove violence on bot kill (fixes #198).
This commit is contained in:
parent
d40aab2b40
commit
ceb05bfa68
1 changed files with 1 additions and 0 deletions
|
|
@ -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 ());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue