Jump to content

Welcome to Omni-bot Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

bot.TargetBreakableDist

- - - - - breakable

  • Please log in to reply
5 replies to this topic

#1
VargaTom

VargaTom

    Junior Member

  • Members
  • PipPipPip
  • 80 posts
  • LocationNorth of Hungary

Hi,

 

Can anyone tell me more about this topic?
What it means
Bot.TargetBreakableDist = 30.0;
or
RegionTrigger.BreakableDistance.MinBreakableDist = 50;
or
RegionTrigger.BreakableDistance.MaxBreakableDist = 250;
 
How do I set these values correctly?
What to do in case the BOT has to go in vertical line to go down or up and there is a breakable obstacle on the road, for example on a ladder?
How can I ensure that you shoot the breakable obstacle until it breaks and does not run in any other direction?
Can paththrough be used?


#2
palota

palota

    Senior Member

  • Administrators
  • 506 posts

If you set bot.TargetBreakableDist inside OnBotJoin function, then bots will destroy all breakable objects which are closer than the distance.

 

Trigger regions are useful if you want to destroy only a few obstacles and don't want bots to shoot everything. For example, see fueldump.gm.

When a bot enters the region, bot.TargetBreakableDist is set to RegionTrigger.BreakableDistance.MaxBreakableDist.

When a bot exits the region, bot.TargetBreakableDist is set to RegionTrigger.BreakableDistance.MinBreakableDist.

 

Paththrough navigation is necessary for ladders or difficult obstacles. For example, see et_poker_b2.gm.

 


  • VargaTom and Mateos like this

#3
VargaTom

VargaTom

    Junior Member

  • Members
  • PipPipPip
  • 80 posts
  • LocationNorth of Hungary

Thank you for your reply! Is available this map somewhere? (et_poker_b2.pk3)



#4
palota

palota

    Senior Member

  • Administrators
  • 506 posts

You can download et_poker_b2 from enemyterritory-stuff.net


  • VargaTom likes this

#5
Mateos

Mateos

    Senior Member

  • Members
  • 1,059 posts
  • LocationFrance

For reference regarding the distance: http://omni-bot.invi..._Reference#dist

 

Not sure about this one: http://omni-bot.invi...ference#aim_pos


  • VargaTom likes this

mateos1.png


#6
VargaTom

VargaTom

    Junior Member

  • Members
  • PipPipPip
  • 80 posts
  • LocationNorth of Hungary

In this script (et_poker_b2 at the no. 96 line) the first three coordinates are paththrough x_hole waypoint coordinates or something else?

x_hole = {
	EvalFunc = function(t){
	   return !Map.breakable_x_hole;	
        },
	navigate = function(t){
	   Map.DestroyBreakable(t, Vec3(1.525, 2153.875, -256.125), Vec3(0.019, 0.561, 0.828));
	}
},

Then at No. 48 line

ent = TraceLine( position, position + 200*facing, 0, TRACE.SHOT, _this.Bot.GetGameId(), false ).entity;

what means position + 200*facing, ?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users