Jump to content

palota

Moderators
  • Posts

    111
  • Joined

  • Last visited

  • Days Won

    67

Everything posted by palota

  1. Good morning, Which map is it ? Does the target entity have health information which could be used to calculate exact amount of grenades needed to destroy it ? We can't ignore EVENT.ENT_ENTER_RADIUS if distance is greater than AvoidRadius. If a bots is moving towards a grenade or a grenade is moving towards a bot, then the event is triggered once at distance 400. If you want bots to go to ammo cabinets, you can change priority: global OnBotJoin = function( bot ) { wpn = bot.GetWeapon(WEAPON.ALLY_GRENADE); if(wpn) { wpn.PrimaryFire.LowAmmoPriority = 0.82; } };
  2. I updated goal_rolemanager.gm now so that you can use AllBots=true to assign all other bots to that role: Roles = { ALLIES = { AllBots = true, DEFENDER1 = { numbots = 2, }, DEFENDER2 = { numbots = 2, AllBots = true, }, }, },
  3. That wiki page was written 20 years ago. Maybe DrEvil did it.
  4. Why don't you use the PrintScreen key or Snipping tool to make screenshots ? There must not be "=" in server.cfg. You have to delete = after set omnibot_path.
  5. It would be too slow to search waypoints network every second for every bot. You can set a role for the goal and then assign the role to bots in triggers.
  6. 0x1005a is number 90 converted to hexadecimal. You can use command /entitylist which prints all entities and their script names and target names. GetEntityByName searches target names. Where can we download pk3 file of this map ?
  7. Where can we download pk3 file of this map ? You should never use entity numbers because they depend on mods. You should use GetEntityByName instead of GetGameEntityFromId. If the entity does not have any name, then you can use TraceLine. Functions GetEntityByName and GetGameEntityFromId return null if the entity is invalid. Correct condition is: if(ent1) { print("Entity is valid"); } You must not use GetEntTeam in OnExit because it returns null if a player disconnected. Players can also change team when they are inside the region. See wiki how to count players in a region.
  8. This is not related to bots. The same problem happens if you watch human players. There are a lot of bugs in the omnibot mod because it is based on the original game from year 2001. The spectator stamina is displayed correctly in newer mods (legacy, nitmod, noquarter, silent). It does not work in jaymod and etpub.
  9. gm scripts are case-sensitive. There must be Goto, not GoTo. Why didn't you copy the function from this page and paste it into your script (Ctrl+C, Ctrl+V) ?
  10. The end of EvalFunc }, should be on line 79 after return, not on line 86.
  11. Hi, welcome to the Omni-bot forum. If you have scripted a lot, where are your scripts ? Could you please share a link to your scripts and waypoints ? Util.EnableGoal and Util.DisableGoal can be used to activate ROUTE nodes. You can do this in a while loop in a thread.
  12. Navigation = { stop = { EvalFunc = function() { return !this.StopTime || GetTime()-this.StopTime > 2; }, navigate = function() { this.Goto(this.Bot.GetPosition()); sleep(3); this.StopTime = GetTime(); }, }, },
  13. Use Paththrough Navigation Navigation = { stop = { navigate = function() { this.Goto(this.Bot.GetPosition()); sleep(3); }, }, }, /bot waypoint_setproperty paththrough Navigation_PT:stop
  14. After the wp_check command you can use commands /bot wt DUPE1; /bot wt DUPE2 etc.
  15. You can use INFILTRATOR role for goals that are available only for disguised covertops. You can use detonatespot property for a place to trigger the explosion.
  16. It is intended. It's written on the wiki: Any goal that has a role defined will be ignored by bots that do not have the same role defined. If you have goals with a role available for both teams, then you have to assign that role to both teams. Or you can duplicate the goals and have one goal for Axis and the second goal for Allies.
  17. You must run ET as administrator if you have installed it in C:\Program Files (x86). It needs admin rights to extract DLL files from omnibot_et.pk3.
  18. That bot cvar is stored in some of your config files or in profiles subfolder. You have to find it and delete it.
  19. The unset command requires ET version 2.71 or later. Current ET version is 2.82. You can also try to execute command \bot (without parameters). If it prints a value of the bot variable, then you can search it in your config files and delete it.
  20. Do you have the last version of both Omni-bot library (omnibot_et.dll) and the mod (cgame_mp_x86.dll) ? \gamedate "gamedate" is: "Jun 14 2024" \bot version Omni-Bot : Jun 26 2024 17:00:59 Version : 0.91 Interface # : 17
  21. Look into the console. Are there any error messages ?
  22. You increased the range of the MORTAR goal. But you have to increase the range of the AMMOCAB goal which is only 1250. AMMOCAB_main_ammocabinet = { CreateOnLoad = 0, GoalType = "AMMOCAB", Position = Vec3(1512.000, 939.000, 516.000), Range = 1250, TeamAvailability = 6, },
×
×
  • Create New...