Jump to content

palota

Moderators
  • Posts

    111
  • Joined

  • Last visited

  • Days Won

    67

Reputation Activity

  1. Thanks
    palota got a reaction from Mateos in Roles - Having n bot taking a role and all the other bots taking an other one automatically   
    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, }, }, },  
  2. Like
    palota got a reaction from vargatom in omnibot not starting   
    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.
  3. Like
    palota got a reaction from vargatom in EntityIsValid   
    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.
  4. Like
    palota got a reaction from vargatom in Stop Bot   
    You cannot query the current stamina.
  5. Like
    palota got a reaction from vargatom in Stop Bot   
    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.
  6. Like
    palota got a reaction from vargatom in Stop Bot   
    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) ?
     
  7. Like
    palota got a reaction from vargatom in Stop Bot   
    The end of EvalFunc }, should be on line 79 after return, not on line 86.
  8. Like
    palota got a reaction from vargatom in Stop Bot   
    Navigation = { stop = { EvalFunc = function() { return !this.StopTime || GetTime()-this.StopTime > 2; }, navigate = function() { this.Goto(this.Bot.GetPosition()); sleep(3); this.StopTime = GetTime(); }, }, },  
  9. Like
    palota got a reaction from vargatom in Stop Bot   
    Use Paththrough Navigation
    Navigation = { stop = { navigate = function() { this.Goto(this.Bot.GetPosition()); sleep(3); }, }, },  
    /bot waypoint_setproperty paththrough Navigation_PT:stop
  10. Like
    palota got a reaction from vargatom in wp_check   
    After the wp_check command you can use commands /bot wt DUPE1; /bot wt DUPE2 etc.
  11. Like
    palota got a reaction from vargatom in Infinite energy for engineers or ...   
    You can set g_engineerChargeTime
  12. Sad
    palota got a reaction from Mateos in Mobile mortar bot not going for in-range available AMMOCAB when out of ammo   
    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, },  
  13. Like
    palota got a reaction from vargatom in ENTFLAG.CARRYINGGOAL   
    The chosen botToKill is never an engineer because botToKill has goal FLAG, but engineer has goal PLANT.
  14. Like
    palota got a reaction from vargatom in ENTFLAG.CARRYINGGOAL   
    foreach(g in Util.GoalTable("FLAGRETURN.*")) { Util.MapDebugPrint("Position " + g.GetPosition()); }  
  15. Like
    palota got a reaction from vargatom in ENTFLAG.CARRYINGGOAL   
    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); }  
  16. Like
    palota got a reaction from vargatom in ENTFLAG.CARRYINGGOAL   
    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); } }  
  17. Thanks
    palota got a reaction from Mateos in Path through switch - Delay between map trigger and OB script trigger   
    Here's my solution:  voilegarde_b3.gm
  18. Like
    palota got a reaction from Mateos in RTCW Waypointing/Goals menu   
    I uploaded new omnibot mod binaries for Windows 32bit to my Google drive.
  19. Like
    palota got a reaction from Mateos in RTCW Waypointing/Goals menu   
    I will increase MAX_MENUS from 64 to 128 in the next Omnibot mod version.
  20. Thanks
    palota got a reaction from MickyP in RTCW Waypointing/Goals menu   
    I uploaded new omnibot mod binaries for Windows 32bit to my Google drive.
  21. Thanks
    palota got a reaction from MickyP in RTCW Waypointing/Goals menu   
    I will increase MAX_MENUS from 64 to 128 in the next Omnibot mod version.
  22. Like
    palota got a reaction from PuNkReAS in RTCW Waypointing/Goals menu   
    I have just moved commands stuckstart, stucknext, saveplayerpos, saveusepoint, warpanybot, warptogoaloffset, cleargoalflags  from et to global_scripts so that they can be used both in ET and RTCW.
  23. Thanks
    palota got a reaction from Mateos in mlb_daybreak   
    It's a bug in the legacy mod since version 2.76. It happens on all maps with multiple MG42s. The same problem is on goldrush map. I created an issue on  Github.
  24. Thanks
    palota got a reaction from Mateos in RTCW Waypointing/Goals menu   
    Hi
    Those commands were not coded into RTCW mod. I added them to GitHub now. They will be included in the next Omni-bot version.
    Will you make any waypoints for RTCW ?
  25. Thanks
    palota got a reaction from Mateos in RTCW Waypointing/Goals menu   
    I have just moved commands stuckstart, stucknext, saveplayerpos, saveusepoint, warpanybot, warptogoaloffset, cleargoalflags  from et to global_scripts so that they can be used both in ET and RTCW.
×
×
  • Create New...