Bots swap for more powerful weapons#1800
Bots swap for more powerful weapons#1800sunzenshen wants to merge 3 commits intoNeotokyoRebuild:masterfrom
Conversation
|
Demo clip: bot-scavenge-better-weapons-oilstain.mp4 |
54b1a25 to
d49e3f0
Compare
|
Currently the bots won't scavenge weapons that they could not select themselves at LT rank, but I figure that's a PR for another time. Also this PR tends to cause Recon bots to use the Supa most of the time, so I'm not sure if we want to tweak the related bot preferences. Also I thought about merging the class preferences into one big bit mask, but what that did was cause EVERYONE to use Supas, because Supa at Recon LT choice is a common bot profile. I personally don't like the bot performance using the Supa, but maybe that's a deficiency with the bot tactics and not with the weapon choice. |
d49e3f0 to
8dd035e
Compare
| } | ||
|
|
||
| const NEO_WEP_BITS_UNDERLYING_TYPE wepBits = pNeoWep->GetNeoWepBits(); | ||
| return ( wepBits & ( NEO_WEP_BALC | NEO_WEP_SMAC ) ) != 0; |
There was a problem hiding this comment.
technically the smac can be dropped in nt;re, and we have third person animations for most weapons (and use some other animations instead for weapons that the vip doesnt have animations for)
| continue; | ||
| } | ||
|
|
||
| CBaseCombatWeapon *pWeapon = pEntity->MyCombatWeaponPointer(); |
There was a problem hiding this comment.
I think its a safe assumption at this point that all weapons derive from CNEOBaseCombatWeapon, this way you can check wep bits for a weapon of type ghost instead of doing a string comparison further down
8dd035e to
abebf02
Compare
Description
Based on a bot's weapon selection preferences, bots will scavenge weapons if they are not available to the bot's current rank.
Toolchain