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

Help for what looks like basic path through...

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Mateos

Mateos

    Senior Member

  • Members
  • 1,086 posts
  • LocationFrance

Good afternoon,

 

I'm polishing V1 Rocket Beta 2 waypoints, and I'm trying to make bots leave as soon as possible the Depot Yard spawn

 

The quickest way is to jump on the crates in front of the exit

 

In the beginning I thought a jump/crouch was necessary, but in the end I've found out simply keeping forward+jump pressed is enough

 

I've made a path through routine like this:

        jump_crouch =
        {
            navigate = function( _this )
            {
                _this.AddAimRequest( Priority.High, "facing", Vec3( 1, 0, 0 ) );
 
                holdJump = 2/*.85*/;
                //holdCrouch = .5;
                holdForward = holdJump/* + holdCrouch*/;
                _this.Bot.HoldButton( BTN.FORWARD, holdForward );
                _this.Bot.HoldButton( BTN.JUMP, holdJump );
                //sleep( holdJump );
                //_this.Bot.HoldButton( BTN.CROUCH, holdCrouch );
                //sleep( .2 );
            },
        },

But the bots doesn't seem to keep jump press that long (1 second should be enough but I tested with 2 in case)

I noticed it because the bot lands too shortly after jumping in front of the crate

 

Attached the current waypoints

 

Screen of the location:

LKcARYl.jpg

 

The goal being:

EfKy4H8.jpg

 

Is there something I'm missing here?

Attached Files


mateos1.png


#2
Native12

Native12

    Senior Member

  • Members
  • 185 posts

Put navigate on each waypoint, where bot should jump.

Like:

//	/bot waypoint_setproperty paththrough Navigation_PT:jump
	jump =
	{
		navigate = function(_this)
		{
			_this.Bot.HoldButton(BTN.JUMP, 0.55);
			sleep(0.55);
		},
	},


#3
palota

palota

    Senior Member

  • Administrators
  • 543 posts

Those crates are too big. It's impossible to jump on them.



#4
Mateos

Mateos

    Senior Member

  • Members
  • 1,086 posts
  • LocationFrance

 

Put navigate on each waypoint, where bot should jump.

Like:

//	/bot waypoint_setproperty paththrough Navigation_PT:jump
	jump =
	{
		navigate = function(_this)
		{
			_this.Bot.HoldButton(BTN.JUMP, 0.55);
			sleep(0.55);
		},
	},

 

Yeah I know, the path through is on each waypoint at the bottom of the crates

 

Those crates are too big. It's impossible to jump on them.

 

See: https://youtu.be/m5rQjHRogJk

 

I took the time to explain by text how I've found out it's possible, but here's a demo, showing btw it's not so easy


mateos1.png


#5
palota

palota

    Senior Member

  • Administrators
  • 543 posts

I watched your youtube video. You have very high frame rate 125 FPS. I think I can't jump so high because I have only 60 FPS.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users