Page 1 of 1

Help Needed for Brain Injury Study Using Unreal Tournament 2003

Posted: Mon Mar 28, 2011 2:31 am
by Brian
Hello,

I am new both to this forum and to Unreal Tournament 2003. I apologize if I have posted this in an inappropriate location on this site, please let me know if I have. I am graduate researcher currently completing my degree in psychology and I am hoping to use Unreal Tournament 2003 software to create a virtual environment that will be used in a research study as part of my dissertation project.  I am definitely not an expert programmer, so I am hoping to find some help on this forum.

Before asking my question, maybe I'll explain what I am attempting. In a nutshell, I will be testing patients who have sustained traumatic brain injuries at several hospitals with the goal of identifying which patients are most likely to experience long-term navigational deficits post-injury. Part of the project involves administering neuropsychological tests, and I am hoping that additional information can be gained from data collected by having patients navigate through a virtual environment that resembles a small town. Essentially, I would like to have patients start at a set location and work their way through the town to a target point. Once the target point is found, I would like the program to be reset so the patient can try to navigate to that same point again.

Luckily, I have someone at my university who is assisting me with developing the town in the unreal editor, however, we have run into a problem.  Here is my question: Is it possible to track "distance travelled" by a user while navigating through a town created with unreal editor? I am able to track "Total Time Taken", but it would be very helpful if I could also quantify "Total Distance Travelled" by the patients to allow me to compare distance travelled across patients.

Any ideas?

Thanks!

Re: Help Needed for Brain Injury Study Using Unreal Tournament 2003

Posted: Mon Mar 28, 2011 7:18 am
by Smirftsch
most people here concentrate on the older versions of Unreal, so not sure if someone here can help you, but I'm sure its possible to write a mod doing that.

Re: Help Needed for Brain Injury Study Using Unreal Tournament 2003

Posted: Mon Mar 28, 2011 2:56 pm
by GreatEmerald
Not that logic is different between the versions.
Hmm, I can't tell an easy way to do that... I guess you could store the Pawn.Location variable somewhere and compare it with the current Pawn.Location every Tick(), then store the difference (for example, Distance += VSize(Pawn.Location - StoredLocation)) in a float value. When the goal is reached, you will have your full distance calculated.

Re: Help Needed for Brain Injury Study Using Unreal Tournament 2003

Posted: Mon Mar 28, 2011 4:27 pm
by Mewtwo
12353521

Re: Help Needed for Brain Injury Study Using Unreal Tournament 2003

Posted: Mon Mar 28, 2011 6:11 pm
by GreatEmerald
It's Pawn (or xPawn). Also, instead of doing a ForEach, you need to do a Level.GetLocalPlayerController().Pawn.

And this is reference: http://ericdives.com/UT2004-UnCodex/classtree.html

Re: Help Needed for Brain Injury Study Using Unreal Tournament 2003

Posted: Tue Mar 29, 2011 10:17 pm
by Brian
This is a huge help. Thank you all very much for the quick responses!

Re: Help Needed for Brain Injury Study Using Unreal Tournament 2003

Posted: Wed Mar 30, 2011 11:32 am
by KeeperUTX
UT2k3 isn't a god...

UNREAL TOURNAMENT 1999 AND UNREAL 1 ARE THE GODS HERE!!!!!