Jump to content

palota

Moderators
  • Posts

    104
  • Joined

  • Last visited

  • Days Won

    63

Everything posted by palota

  1. 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.
  2. 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) ?
  3. The end of EvalFunc }, should be on line 79 after return, not on line 86.
  4. 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.
  5. Navigation = { stop = { EvalFunc = function() { return !this.StopTime || GetTime()-this.StopTime > 2; }, navigate = function() { this.Goto(this.Bot.GetPosition()); sleep(3); this.StopTime = GetTime(); }, }, },
  6. Use Paththrough Navigation Navigation = { stop = { navigate = function() { this.Goto(this.Bot.GetPosition()); sleep(3); }, }, }, /bot waypoint_setproperty paththrough Navigation_PT:stop
  7. After the wp_check command you can use commands /bot wt DUPE1; /bot wt DUPE2 etc.
  8. 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.
  9. 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.
  10. 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.
  11. That bot cvar is stored in some of your config files or in profiles subfolder. You have to find it and delete it.
  12. 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.
  13. 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
  14. Look into the console. Are there any error messages ?
  15. 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, },
  16. The chosen botToKill is never an engineer because botToKill has goal FLAG, but engineer has goal PLANT.
  17. GetReinforceTime() is needed to kill a bot just before respawn, so that the bot is actually not dead. I've already done it and committed it to SVN repository.
  18. First of all bots should wait for respawn. You can use function bot.GetReinforceTime() and sleep until 1 second before respawn. Then you should check if the book is at its original location and nobody is carrying it. Then you kill bots that have bot.GetMapGoalName()=="FLAG_book".
  19. Which map is it ? Why do you want to kill bots ?
  20. foreach(g in Util.GoalTable("FLAGRETURN.*")) { Util.MapDebugPrint("Position " + g.GetPosition()); }
  21. It does not count dead players because dead players cannot carry anything. But you can get distance to a dropped object from a FLAGRETURN goal. foreach(g in Util.GoalTable("FLAGRETURN.*")) { d = DistanceBetween(g, Vec3(-1824, 2115, 4)); Util.MapDebugPrint("Distance " + d); }
  22. for ( i = 0; i < 64; i += 1 ) { if ( EntityIsValid(i) && GetEntFlags(i, ENTFLAG.CARRYINGGOAL) ){ d = DistanceBetween(i, Vector3(-1824, 2115, 4)); Util.MapDebugPrint("Distance " + d); } }
×
×
  • Create New...