Bot Pathing adventure! look what I did.

Discussions about Coding and Scripting
Post Reply
User avatar
SilverSound
Adept
Posts: 344
Joined: Fri Nov 06, 2015 10:12 am
Personal rank: Curious
Location: St. Cloud, Florida

Bot Pathing adventure! look what I did.

Post by SilverSound »

So I did some magic (Copy Paste from bot.uc) And I made this! Check it out! 20 min video but It was a neat adventure. Feel free to skip around to parts you care for. There is a DM game then a few CTF game tests.


QiTAhXOs--g

pressing shift starts the state roaming.


first map: I encounter a bug

second map I encounter a few bugs


it continues on. tell me what you think haha. this made me giggle a bit.

on the note of the code I don't know why It's not auto turning to the current destination. If anyone wants to delve into that.


related to this:

Code: Select all

Moving:
	Enable('HitWall');
	MoveTo(Destination, WalkingSpeed);
Pausing:
	if ( Level.Game.bTeamGame && (bLeading || ((Orders == 'Follow'))) )
		GotoState('Roaming');
	Acceleration = vect(0,0,0);
	if ( NearWall(200) )
	{
		PlayTurning();
		TurnTo(Focus);
	}
	Enable('AnimEnd');
	NextAnim = '';
	TweenToPatrolStop(0.2);
	Sleep(1.0);
	Disable('AnimEnd');
	FinishAnim();
	GotoState('Roaming');

ContinueWander:
	FinishAnim();
	PlayWalking();
	if (FRand() < 0.2)
		Goto('Turn');
	Goto('Wander');

Turn:
	Acceleration = vect(0,0,0);
	TurnTo(Location + 20 * VRand());
	Goto('Pausing');
Turn to doesn't work.
"Woah what?! I wish I was recording that...."
User avatar
sektor2111
Godlike
Posts: 6410
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Bot Pathing adventure! look what I did.

Post by sektor2111 »

This will deliver basic navigation because JumpSpot things will not help player unless you tweak it VIA XCGE.
Else jumping seems not implemented and I think Player has other way of turning than TurnTo (already shown in NsDM).
Aside it won't capture the Flag According to CTFGame parameters you'll figure why later...
Else this could be more interesting in debug DM maps.
And now... my other Way of capturing such images and fully operational is doable with no scripts and no codes :agree1: :
- Load and spectate One Bot;
- Press mouse click or F5 for seeing Bot;
- Input command <behindview 0>;
- start recording, LOL.
And it should work properly.
Else I can tweak Bot (wait a minute, you have fired some idea for MBot) for showing future routes in purpose to understand where Bot wants to move and for noticing BlockedPath/s properly and how do it changes directions. It might be harder but perhaps worth a try, Bot having RouteCache will show what wants much early and can be activated when player is looking at it.
User avatar
SilverSound
Adept
Posts: 344
Joined: Fri Nov 06, 2015 10:12 am
Personal rank: Curious
Location: St. Cloud, Florida

Re: Bot Pathing adventure! look what I did.

Post by SilverSound »

sektor2111 wrote: And now... my other Way of capturing such images and fully operational is doable with no scripts and no codes :agree1: :
- Load and spectate One Bot;
- Press mouse click or F5 for seeing Bot;
- Input command <behindview 0>;
- start recording, LOL.
And it should work properly.
:loool: yes yes It is very useless but a cool little thing I put together.

Funny enough it took a shit ton of tuneing to actually get it to compile. Not at all worth it.

Could make this into a gametype of sorts. A rail shooter even.
"Woah what?! I wish I was recording that...."
Post Reply