Comments (10)
It's pretty much logical imho, but not for deathmatch maps ofc.
from yapb.
this is not logical AT ALL. if you want to code good bots, the bot should behave like a human, he should not turn robot-like to the killer. is this behavior caused from your yapb code or from the game engine?
from yapb.
you can fix it yourself if u want. it's not a bug, a PR with ability to disable this thing will be accepted.
[here](https://github.com/yapb/yapb/blob/01046f7c9ad5bc877551d31c537d8480170138f2/src/manager.cpp#L1263C10-L1263C10)
from yapb.
you can fix it yourself if u want. it's not a bug, a PR with ability to disable this thing will be accepted.
[here](https://github.com/yapb/yapb/blob/01046f7c9ad5bc877551d31c537d8480170138f2/src/manager.cpp#L1263C10-L1263C10)
i have completely commented this part, but the victim bot still turns to me the killer... it must be somewhere else
from yapb.
Probably here too:
Lines 381 to 394 in 01046f7
from yapb.
that is not relevant code, its about the victim bot that is being killed, from an angle not visible for him.
i have commented your posted codes already
i have also commented all assignments everywhere in my crazy search:
// m_seeEnemyTime =
// m_seeEnemyTime =
// m_enemy =
// m_enemyOrigin =
// m_lookAt = // if its an entity
now still the bot turns to me on dying, how is that possible
and even crazier, i have
// updateAimDir ();
// updateLookAngles (); // both
// lookupEnemies ();
so what else causes the angle turning?
also why does handleDeath get called before takeDamage on bot death?
from yapb.
OK, i have re-read topic on the pc.. and i have misunderstood your question from a start :)
Well, it's game related. Bot's doesn't control dying/dead player in any things besides chat. Angles of player model is not adjusted in any way.
also why does handleDeath get called before takeDamage on bot death?
they get called by game, from network message handler, so i got no idea, you check out regamedll sources for that.
from yapb.
so this is not from yapb?
what is the best way to prevent this angle turning on dying to the killer? basically i want the bot to stay on the angle of dying predeath. btw it only happens on bot victims, not human victims.
(btw i have quickly tested with amxx, on predeath i save his pev_angles and force these on posthink until the dying is over, that is a dirty fix). so basically i want to do the same in yapb
from yapb.
This happens randomly with all fakeclients, just tested with official cs bots, same result. so probably dirty fix is a good idea.
from yapb.
ok thanks man, i was going crazy
from yapb.
Related Issues (20)
- [Feature request] yb_difficulty_auto only for the team with humans
- [Feature request] Bots switch team option
- Bot chatter, some bugs HOT 4
- Бот сообщает о том, что он спасает заложников, когда находится на узле с флагом RESCUE и при этом не ведя за собой заложников. HOT 4
- Боты неправильно прыгают HOT 2
- Can't build yapb.so.p/src_message.cpp in Alpine Linux HOT 11
- Block the flashlight on zombie bots HOT 14
- Bots that can hear the enemy but cannot predict the enemy HOT 2
- c4 defuse animation for yapb HOT 2
- При вводе команды yb kill_ct, yb kill ct или yb kill 2, умирают террористы а не КТшники HOT 3
- Failure of enemy predictions in some circumstances HOT 2
- yb_enable_fake_steamids 1 doesn't work HOT 5
- Ошибка в коде? HOT 1
- yb_show_latency also alters player pings HOT 3
- Повышение прозрачности и доверия в отношении ботов HOT 14
- logs bots HOT 6
- [Feature request] Прицеливание ботов на модели с кастомным model index HOT 5
- Bots can't walk up slopes, even small ones have to jump on them. HOT 6
- Боты перестают стрелять из снайперок когда враг находится слишком близко HOT 4
- Последовательность логики у Bot::filterTasks для ZombieMod HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yapb.