Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 05/09/24 in all areas

  1. You have to use paththrough navigation. Then in the navigate function you can stop the bot: this.Goto(this.Bot.GetPosition());
    1 point
  2. Engineers don't fire garand grenades when they are going to PLANT goals. Do you need to disable it for BUILD goals too ? Maybe I could add a new optional property to the BUILD goal which would be used for objectives that need a lot of charge. If you want to disable grenades in some narrow corridors, you can create a region trigger and use function ETUtil.DisableRifleNade. Function WeaponTable.SetWeaponAvailability can be used to set weapons for team/class, but it's not possible to set a weapon for a role. If you want to change weapons manually in triggers, you should set Map.DontSelectWeapons=true. That will solve the problem of spawn self killing, but it completely disables weapon selection globally for all bots.
    1 point
  3. palota

    Navigation rnadehall

    This is not a goal. It's a paththrough navigation. It is executed when a bot goes through that waypoint. Bots visit that location because there is DEFEND goal. If you want to change priority or make it class specific, you can set it on the DEFEND goal.
    1 point
  4. The trigger distance is not from the target goal, but from a grenade. If somebody is standing just beside a bot, then his thrown grenade immediately enters the radius. It would be necessary to calculate trajectory of a grenade and predict coordinates of explosion. Maybe I could use some code from the mortar goal. I agree with your other suggestions and I added them to my to-do list.
    1 point
  5. 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, }, }, },
    1 point
  6. palota

    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.
    1 point
  7. palota

    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.
    1 point
  8. palota

    Stop Bot

    You cannot query the current stamina.
    1 point
  9. palota

    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.
    1 point
  10. palota

    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) ?
    1 point
  11. palota

    Stop Bot

    The end of EvalFunc }, should be on line 79 after return, not on line 86.
    1 point
  12. palota

    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(); }, }, },
    1 point
  13. palota

    Stop Bot

    Use Paththrough Navigation Navigation = { stop = { navigate = function() { this.Goto(this.Bot.GetPosition()); sleep(3); }, }, }, /bot waypoint_setproperty paththrough Navigation_PT:stop
    1 point
  14. palota

    wp_check

    After the wp_check command you can use commands /bot wt DUPE1; /bot wt DUPE2 etc.
    1 point
  15. You can set g_engineerChargeTime
    1 point
  16. palota

    ENTFLAG.CARRYINGGOAL

    The chosen botToKill is never an engineer because botToKill has goal FLAG, but engineer has goal PLANT.
    1 point
  17. palota

    ENTFLAG.CARRYINGGOAL

    foreach(g in Util.GoalTable("FLAGRETURN.*")) { Util.MapDebugPrint("Position " + g.GetPosition()); }
    1 point
  18. palota

    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); }
    1 point
  19. palota

    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); } }
    1 point
  20. 1 point
  21. voilegarde_b3.gm That's my solution. Not the cleanest solution but from my testing it works. For checking if the doors are opening and eventually opened I use "rightlabdoor_button_Moving". Check Right_Lab_Door_Moving2 to see what I did there.
    1 point
  22. Need to find time to play ET with my buddies first and then BF5 / Warzone
    1 point
  23. Welcome to MyGamingTalk. Please feel free to browse around and get to know the others. If you have any questions please don't hesitate to ask.
    1 point
  24. For Android app development, the cost of a final product depends on various app elements and the type of app that matches your business requirements. On an average, cost of Android app ranges between $15,000 to $40,000 with an hourly rate of $15-$25.
    1 point
  25. Sol

    Small LUA Server API

    Updated. server_api.zip
    1 point
  26. 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, },
    0 points
×
×
  • Create New...