-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bots creating a nests #127
Comments
Hi,The parameter approach should be doable. The first thing you need to do is to add the key/value pair to the table of available parameters: Lines 50 to 74 in 7ed12dc
(Technically it's not necessary to add anything to this table, its only use is automatic correction of parameter names) After that you can use the Then it's up to you how you use your parameter in your bot handler. You can iterate over all nodes and find the closest node that has your "nest". Just set that as Some details:
|
I apologize for not saying hello, ^_^ Thank you for your answer, I will try to finish what I planned earlier over the next week. |
If that's in response to my oversized And yeah, feel free to ask questions or post any progress here. This may also be helpful for other users who want to implement something similar. |
Unfortunately, I didn’t have time to work on nodes this week. I'll get to it later. But, I was able to add a check for the distance between bots and sigils, but it works relatively stably with only one sigil on the map. If at least a sigil (out of three) with a distance of less than 900 units appears in the calculation, then the condition is met and the nest appears. I'll think about how to fix this later. Code added to fresh_creeper.luaif SERVER then
It is worth noting that the appearance of nests leads to endless “blobs of meat”, which in the first waves leads to defeat. Only level 5 guns with 5 upgrades can somehow solve the situation. Attached a video of what happens when there is a ratio of 7 people to 22 zombies |
Is it possible to create a specific parameter for a node, for example "Nest", which would allow the bot to search for a specific point on the map? One of the bots (with a given class/name) must specifically search for this specific node, and when it is found, the bot writes the “kill” command to the console, thereby creating a nest next to the node.
I managed to find a function responsible for nest spawning, and successfully added it in the class of a specific zombie. However, some problems arose, more precisely, the uncontrolled respawning of nests, including right in front of the barricades. I'll try to add conditions for the distance to the players and sigils. Taking into account the fact that you can create your own network of nodes for bots, it would be possible to precisely control the creation of nests through it.
How difficult would such a task be?
The text was updated successfully, but these errors were encountered: