[Suggestion] Amxmodx API for YaPB.
Hi, i like this bot very much it works fine on server, but it has some issues on cs1.6 custom mod like ZombieMod, Biohazard and any other mods that use instant team changes.
Issues: 1. Team detection - In Zombie Plague Mod when zombie(TR player) infect a human(CT player) the CT player will change team to TR, but this player won't attack any other CT player, it will still attacking the Zombie player(TR). 2. Knife attack distance - This is known issue on podbot too, since we are running Zombie Plague Mod, the zombies only have 1 weapon (knife). So when it get close to Humans (CT), the humans will use knife too and start a knife battle lol. My suggestions: 1. Implement a better way to set CS1.6 team, use m_iTeam (114) offset. 2. Create AmxModx API to set/get enemy target, knife attack distance. So with this API server owner can code a simple amxx plugin to make YaPB more compatible to any CS1.6 custom mods. You can see this custom YaPB, it has AmxModx API features. :punk: |
Re: [Suggestion] Amxmodx API for YaPB.
I see in bool Bot::LookupEnemy (void) you are using a var to retrieve player team.
PHP Code:
Example: yb_get_player_team(index) yb_set_player_team(index, m_team) |
Re: [Suggestion] Amxmodx API for YaPB.
Hello!
Offset is not used, to ensure that futures CS 1.6 updates (if any) will not break bot compatibility. You can force bot to get valid TeamId by sending TeamInfo message manually, when needed. About the API, you have found SyPB Bot. I'm not sure, that yapb needs this. |
Re: [Suggestion] Amxmodx API for YaPB.
Quote:
|
Re: [Suggestion] Amxmodx API for YaPB.
The same problem I noticed on my zombie mod(biohazard).
|
Re: [Suggestion] Amxmodx API for YaPB.
I found the reason why yapb failed to instantly detect team change, it because TeamInfo message cannot be read by any other metamod module.
I tried to send TeamInfo message via emessage_begin but it failed too. So i found a silly method to fix this issue, but it need to modify our custom cs1.6 mod, example in Zombie Plague and Biohazard. Here is an example of fix: PHP Code:
|
Re: [Suggestion] Amxmodx API for YaPB.
undefined symbol "CS_NORESET"
Whan to do now? |
Re: [Suggestion] Amxmodx API for YaPB.
Fix for this issue:
Well this fix is for ZP4.3Fix5a. On ZP50 just need to change emessage_begin(MSG_BROADCAST, g_msgScoreInfo) to emessage_begin(MSG_ALL, g_msgScoreInfo) in cs_teams_api.sma Step by step: 1. Search for UpdateFrags(attacker, victim, frags, deaths, scoreboard) and disable ScoreInfo message for victim: Code:
// Update Player Frags and Deaths Code:
// Send User Team Message |
All times are GMT +2. The time now is 05:06. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.