Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Predictablilty, Rbots, and vectors.....
Predictablilty, Rbots, and vectors.....
2001-01-09, 4:53 PM #1
Ok, trying to figure something out here. Everyone here knows how to "predict" where their opponent will be in MP during a gun fight. (That is, if you're good in a MP gun fight [http://forums.massassi.net/html/wink.gif] )

For example, you're up in that spot in Canyon Oasis with the Conn Rifle. You see someone running on the metal platform with the bacta, towards the switch for the lighting trap. Say you have the repeater, you'd "lead" your shots (taking his speed and direction into consideration) so that in effect, the guy on the metal platform runs into the little blobs of energy.

Anyways, I know there's some kinda formula, and a way to get the Rbots to do this, I just haven't figured it out yet. [http://forums.massassi.net/html/smile.gif]

The vectors really confuse me when using GetThingPos(Thing) and VectorAdd(Vector,Vector) combining all sorts of stuff into it.

Any help,(and maybe some enlightment) will be appreciated. =)

------------------
-Hell Raiser
"I am not defeated so easily!"
Co-staffer of Rbots
-Hell Raiser
2001-01-09, 9:50 PM #2
I thought of doing such aiming prediction feature in my sniper arena, but then the next second I thought the bullets just travel fast enough that it hits whenever you have aimied directly to the opponent.

I have seen such feature done in UT, though forgot what it was called, at planetUT.

That mod creates a crosshair near the opponent so if the player shoots at that crosshair, it will eventually hit him. So, if you can find that mod then just open it up with text editor and learn the vector.

------------------
http://millennium.massassi.net/ - Millennium
2001-01-10, 2:26 AM #3
Perhapes you could attach a ghost just in front of the other players and have the bots fire at that?

------------------
Together we stand.
Divided we fall.
2001-01-10, 9:13 AM #4
Hey Hideki, can you tell me the name, or provide a link? I'm having trouble finding it.

Also, maybe some JK Cog insperation? [http://forums.massassi.net/html/smile.gif]

Aglar, although a good suggestion, it wouldn't be as precise as I'd like it to be. If the person is walking backwards, or strafing, or standing still even, it wouldn't quite work.

------------------
-Hell Raiser
"I am not defeated so easily!"
Co-staffer of Rbots

[This message has been edited by Hell Raiser (edited January 10, 2001).]
-Hell Raiser
2001-01-10, 10:41 AM #5
I was looking for something like this some time ago and found a small snippet from the sync-ai cogs. Credit of course should go to Nightmare who created sync-ai.

Code:
  firepos = VectorAdd(GetThingPos(target), VectorScale(GetThingVel(target), lead));
  firevec = VectorNorm(VectorSub(firepos, GetThingPos(rbot)));
  SetThingLook(rbot, firevec);


firepos & firevec are vectors, while lead is a flex showing how much in front of the target you want the attacker to aim.

Raynar


------------------
... the Jedi I admire the most, met up with Darth Maul, now he's toast ...
Rbots - a project to develop a working Bot for Jedi Knight... download the latest development version here
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis
2001-01-10, 12:51 PM #6
I'll get ICQ fixed one of these days. [http://forums.massassi.net/html/wink.gif]

Thanks man.

------------------
-Hell Raiser
"I am not defeated so easily!"
Co-staffer of Rbots
-Hell Raiser
2001-01-10, 3:52 PM #7
That ai won't predict where the bot is heading to, you have to guess it with "lead" var or calculate the vector at somewhere else.

Don't know where the mutator is, it was a long time ago. Maybe tackle Mod Central or ask around at the forum.

Let me see what I can do here.
Code:
symbols
message startup
message timer
thing Hideki local
end
code
startup:
Hideki = startHideki();
openEditPlus();
startThinking(Hideki);
SetTimer(aFewHours);
return;
timer:
postTheResults(massassiForum, Hideki);
return;
end


------------------
http://millennium.massassi.net/ - Millennium

↑ Up to the top!