AirTime is back... optionally

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Ravu al Hemio

Comes, fixes, leaves.
Sep 1, 2004
178
0
0
34
Austria
Okay guys, I got angry when good ol' AirTime was replaced by StuntPoints. And what happens if Ravu al Hemio, AKA [~ANT~]B!7ch, gets angry? He either curses, kicks and spits around, or makes a nice change.

The attached package contains two files which should be unzipped into the UT2004\System directory. Once done, the gametype menu will contain an entry boldly stating UnWheel Big Air (T). When you activate this, you can pick a BigAir map and play it, just that instead of getting points through daredevil-like stunts, you get them based on Air Time (so set the Point Limit very high; you gain them pretty fast!!!).

If you want to run a server with this package, I suppose you know what to do: Add a line saying
ServerPackages=UnWheelBigAirTimed
under [Engine.GameEngine] in your UT2004.ini.

I have not modified (only read) any UnWheel class file, I just derived my classes from some.

Please read the Readme file for the legal mumbo-jumbo (not my fault if something bad happens, that it's a release candidate, etc). If you want to tell me about something, post in here or send an E-mail to the_white_timberwolf [at] yahoo.de.

Oh yeah: I hereby give permission to the members of the UnWheel Team to reuse any of the classes in the included package, UnWheelBigAirTimed.u, if appropriate credit is given ("Portions by Ondra Hosek, used under permission").

So, whaddaya think? (Constructive criticism please!)

MD5 signature of UnWheel BigAir Timed RC2.zip: 2DEE662F6B78F71C42618CB7BA990830
 

Attachments

  • UnWheel BigAir Timed RC2.zip
    15.4 KB · Views: 21
Last edited:

Ravu al Hemio

Comes, fixes, leaves.
Sep 1, 2004
178
0
0
34
Austria
Shrimp said:
OH NO YOU LOOKED AT MY AWEFUL CODE!!!! AAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHH!!!!!!!!
Awful? Hell no!!! It might not have the 2000 comments like Epic's has, but it is quite clearly built up. Besides: a game that is so much fun simply does NOT have crappy code. Maybe faulty, maybe a bit slow code, but not awful.

Ahem, yes, well, sorry if it's a mess, didn't have time to clean it up for UT2004: ECE :(
I don't complain. It's okay. Just that you shouldn't be so sure that only English-speaking people will play it. I think internationalisable strings might be a good idea for the next version; I might make some changes to the code in the future to slap "Checkpoint!" into an .INT file (because that's what they are for! Then I will make a German and maybe a Czech translation saying "Kontrollpunkt!" and "Záchytný bod!" respectively. Hard-coded strings in 'defaultproperties' sections don't matter, because they actually are used if there is no language file. So, you can slap "Checkpoint!" in the default props too.)

Nice, I'll give it a try later ;)
Thanks ;) I sure do need alphatesters!

EDIT: All right, here are the zipped classes with internationalisation support and the corresponding .INT file. Please merge the code, so that I can start translating into German for the next version! (You bet that Germany, Austria, Liechtenstein and Switzerland combined have a very large gamers community!)
 

Attachments

  • UW_Loc.zip
    24.8 KB · Views: 17
Last edited:

The_Head

JB Mapper
Jul 3, 2004
3,092
0
36
36
UK
www.unrealized-potential.com
Just tested this mutater. its nice to have airtime back rather than points, points occasionally seem a bit random.
Any chance of when you are in the air you see the time goin up? I think the Beta 3 version of UnWheel did this.
Nice Job keep up the good work
 

Ravu al Hemio

Comes, fixes, leaves.
Sep 1, 2004
178
0
0
34
Austria
The_Head said:
Just tested this mutater. its nice to have airtime back rather than points, points occasionally seem a bit random.
Thanks for the positive feedback!
Any chance of when you are in the air you see the time goin up? I think the Beta 3 version of UnWheel did this.
Actually, I don't think it did, but I know just the way to activate it.
EDIT: It might take a bit longer than I though... :( Oh well, I'll see what will happen ;)
Nice Job keep up the good work
Will do ;)
 
Last edited:

ProjectX

Nicholas 'ProjectX' Udell - UnWheel Maps
Jan 9, 2004
1,223
0
0
Right behind you.
Ravu al Hemio said:
Thanks for the positive feedback!

Actually, I don't think it did, but I know just the way to activate it.
EDIT: It might take a bit longer than I though... :( Oh well, I'll see what will happen ;)

Will do ;)

Sorry to dissappoint you man, this is great work, but you aren't the "first guy to make a mod for UnWheel". That would be JCBDigger who coded the "unrigid fixed camera" a significant improvement over the rigid fixed camera days of yore.
 

Ravu al Hemio

Comes, fixes, leaves.
Sep 1, 2004
178
0
0
34
Austria
ProjectX said:
Sorry to dissappoint you man, this is great work, but you aren't the "first guy to make a mod for UnWheel". That would be JCBDigger who coded the "unrigid fixed camera" a significant improvement over the rigid fixed camera days of yore.

All right *changes sig*

Sorry, The_Head, but because nobody (more intelligent than me) ever wrote the code to update the airtime measurement dynamically and my brain is unfortunately completely useless when doing advanced logic thinking, it is going to be no-go.
*curses over his disfunctional logical thinking, lack of patience and catastrophic short-term memory, whilst ignoring the fact that he actually has a very good long-term memory, which is really useless. "And I am supposed to accomplish anything?!"*

(Oh yeah: when anybody can help me with this, just open the package and browse for Engine/Actor/UWAttachment/UWAirTimerSV. I have only commented out the faulty lines, so you can see what I still was able to do.)
 

The_Head

JB Mapper
Jul 3, 2004
3,092
0
36
36
UK
www.unrealized-potential.com
Ravu al Hemio said:
nobody ever wrote the code to update the airtime measurement dynamically and my brain is unfortunately completely useless when doing advanced logic thinking, it is going to be no-go.
Shame bout that. would have been nice. thanks for trying anyway
 

ProjectX

Nicholas 'ProjectX' Udell - UnWheel Maps
Jan 9, 2004
1,223
0
0
Right behind you.
The_Head said:
Shame bout that. would have been nice. thanks for trying anyway

It'd be something like the UT2004 clock except it only starts when you're in the air, and it goes up not down.

EDIT:

Hey Head, played around abit in your DM-Storm. It has good atmos :2thumb: and it would take little work to make it into a roamer/rabbit map. If you feel up to it I'd definately play it he more rabbit maps the merrier.
 
Last edited:

Ravu al Hemio

Comes, fixes, leaves.
Sep 1, 2004
178
0
0
34
Austria
ProjectX said:
It'd be something like the UT2004 clock except it only starts when you're in the air, and it goes up not down.

Well, this is what I have gotten to so far. Maybe Shrimp could go check it out...
Code:
function Tick(float DeltaTime)
{
	local bool	bGrounded;			// car on its wheels?
	local UWSCar	UC;				// car to test
	local int	i, j;				// i: iterator for aired-wheel checking, j: counter of aired wheels

	if (Owner.IsA('UWSCar') && (UWSCar(Owner).Controller != None))
		UC = UWSCar(Owner);
	else
		return;

	// new method for getting bGrounded
	bGrounded = true;					//grounded by definition
	j = 0;							//reset counter
	for (i = 0; i < UC.Wheels.Length; i++)
	{
		if ( UC.Wheels[i].bWheelOnGround == false )	//if a wheel of that damned bugger is overground...
		{
			j++;					//... add one to the counter of wheels in the air.
		}
	}

	if ( j >= WheelsUpToStartTimer )	//If there are enough wheels in the air as configured...
	{
		bGrounded = false;		//... then we consider the car NOT grounded.
	}

	if (!bGrounded && QuickEnoughWUVT(UC))			//When flying in the air or sliding on roof. Unfortunately, NeedsFlip() check was too brutal; go for configurability (see PassesWUVT)
	{
		if (UWPlayer(UC.Controller).StartTime < 1)	//If the car just flew up in the air...
		{
			log("UWBAT: Started timing at"@Level.TimeSeconds@"because"@j@"wheel(s) is/are in the air.");
			UWPlayer(UC.Controller).StartTime = Level.TimeSeconds;	//... start timing.
		}

		
			//log("UWBAT: Wheel in the air, time must be updated constantly.");
		if ( FlyDetected || ((Level.TimeSeconds - UWPlayer(UC.Controller).StartTime) > MinAirTimeToCountAsStunt) )	//If the fly is long enough for a stunt...
		{
			if (bConstantlyUpdateAirTime)										//...and the time must be updated all the time...
			{
				UWPlayer(UC.Controller).Times[0] += Level.TimeSeconds - UWPlayer(UC.Controller).StartTime;	//...add the airtime...
				log("UWBAT: Whilst flying, air time updated at"@Level.Timeseconds@"to"@UWPlayer(UC.Controller).Times[0] + Level.TimeSeconds - UWPlayer(UC.Controller).StartTime$".");
				UC.PlayerReplicationInfo.Score = UWPlayer(UC.Controller).Times[0];				//...set it as the score...
				Level.Game.CheckScore(UC.PlayerReplicationInfo);						//...update the client...
				UWPlayer(UC.Controller).StartTime = 0;								//...and make it seem long enough.
			}
			FlyDetected = true;
		}
	}
	else							//when on ground.
	{
		//if (bConstantlyUpdateAirTime)
		//	FlyDetected = false;
		//if ( (UWPlayer(UC.Controller).StartTime > 0 && (Level.TimeSeconds - UWPlayer(UC.Controller).StartTime) > MinAirTimeToCountAsStunt) )
		if ( FlyDetected && !bConstantlyUpdateAirTime )
		{
			log("UWBAT: We have landed at"@Level.TimeSeconds$". Adding"@Level.TimeSeconds - UWPlayer(UC.Controller).StartTime@"points to player's score.");
			UWPlayer(UC.Controller).Times[0] += Level.TimeSeconds - UWPlayer(UC.Controller).StartTime;
			UC.PlayerReplicationInfo.Score = UWPlayer(UC.Controller).Times[0];
			Level.Game.CheckScore(UC.PlayerReplicationInfo);
			UWPlayer(UC.Controller).StartTime = 0;
		}
		FlyDetected = false;
	}
}

Anybody can help?
 

ProjectX

Nicholas 'ProjectX' Udell - UnWheel Maps
Jan 9, 2004
1,223
0
0
Right behind you.
You'd have to wait till Shrimp comes off of doing whatever he does between coding (or off from coding in most cases judging by the rate at which we get new features) and have a peek at it, cos he's te only one on the team (as far as I know) who has serious coding knowledge
 

Ravu al Hemio

Comes, fixes, leaves.
Sep 1, 2004
178
0
0
34
Austria
Wuzzah! Wooyeah! Booyalaka!

A determined expression was visible on Ravu's face. He took his gloves, his protective eyewear, his gas mask and the container of nitric acid and approached the first bug. It bared its fangs at him, but he didn't flinch. He tipped the container, and with a loud sizzling noise, the bug was torn apart by the acid.
Okay, this didn't really happen, but...

You think I would lead this project die? I'd better see bugs than projects dead, really. With new mental energy, I've decided to play with this *old* project of mine. And the result: even more timed Big Air!

The_Head and others sharing his opinion: dynamic updating of airtime now works!!! You just have to add this at the end of your UT2004.ini:

[UnWheelBigAirTimed.UWAirTimerSV]
bConstantlyUpdateAirTime=true

Check out the top post for the newest version (BETA 1). Yes, we're out of the alpha stage now, so I am searching for a truckload of beta testers now. If you feel up to the job, sign up at these forums if you haven't done so yet, download UnWheel and my file, install them and tell me what you found out.
 

ProjectX

Nicholas 'ProjectX' Udell - UnWheel Maps
Jan 9, 2004
1,223
0
0
Right behind you.
Ravu al Hemio said:
Okay, this didn't really happen, but...

You think I would lead this project die? I'd better see bugs than projects dead, really. With new mental energy, I've decided to play with this *old* project of mine. And the result: even more timed Big Air!

The_Head and others sharing his opinion: dynamic updating of airtime now works!!! You just have to add this at the end of your UT2004.ini:

[UnWheelBigAirTimed.UWAirTimerSV]
bConstantlyUpdateAirTime=true

Check out the top post for the newest version (BETA 1). Yes, we're out of the alpha stage now, so I am searching for a truckload of beta testers now. If you feel up to the job, sign up at these forums if you haven't done so yet, download UnWheel and my file, install them and tell me what you found out.

I'll have a go at it, any chance you could implement a mutator to add cinematic effects (e.g. fading, motion blur, slow-down, FOV change, cinematic view mode, or if you're feeling ambitious: camera paths around the car while it flies) when the cars go off the ground for more than say 3 seconds

That would be uber-cool if you could.

Though it might conflict with view-trigger volumes.
 

Ravu al Hemio

Comes, fixes, leaves.
Sep 1, 2004
178
0
0
34
Austria
ProjectX said:
I'll have a go at it, any chance you could implement a mutator to add cinematic effects (e.g. fading, motion blur, slow-down, FOV change, cinematic view mode, or if you're feeling ambitious: camera paths around the car while it flies) when the cars go off the ground for more than say 3 seconds

That would be uber-cool if you could.

Though it might conflict with view-trigger volumes.
Theoretically... know about any mutators that do the same in "normal" UT2003/UT2004?
 

ProjectX

Nicholas 'ProjectX' Udell - UnWheel Maps
Jan 9, 2004
1,223
0
0
Right behind you.
Ravu al Hemio said:
Theoretically... know about any mutators that do the same in "normal" UT2003/UT2004?

No, but if you look at the matinee editor, it lets you enable a "cinematic mode", motion blur and FOV changes time slowdown would just be gamespeed
 

Smokin

New Member
Nov 23, 2002
194
0
0
www.geocities.com
I know that we had Motion blur in unrealspeed, it turned on when you reached a certain speed.
Also i find that the fixed camera in Unwheel seems to jump around and get caught on invisable things and the free form camera dosnt. I know its not totaly what your talking about but its in the same area.
 

ProjectX

Nicholas 'ProjectX' Udell - UnWheel Maps
Jan 9, 2004
1,223
0
0
Right behind you.
Smokin said:
I know that we had Motion blur in unrealspeed, it turned on when you reached a certain speed.
Also i find that the fixed camera in Unwheel seems to jump around and get caught on invisable things and the free form camera dosnt. I know its not totaly what your talking about but its in the same area.

Oh yeah, Shrimp if you're reading this you need to make the fixed camera collide with objects like te freeform one. is very ugly when you turn sharply and stick the camera through the terrain, or a bsp wall, or a static mesh.
 

Ravu al Hemio

Comes, fixes, leaves.
Sep 1, 2004
178
0
0
34
Austria
NEW VERSION: BETA 2

Okay, I have kicked the ass of some other dastardly bugs again (namely one which prevents the game from counting airtime if the player was moving 'against an axis' and another one making the airtime go into extreme negatives instead of positives), and added a "Some Cool FX" feature (not only) for ProjectX - highly configurable for camera rotation, slow motion and motion blurring. More info on all the variables in the attached readme.

The download is at the top of this thread again; in the next version, I will do thorough testing of replication (server/client) variables and decide on which variables are serverside and which clientside. Stay tuned... and give me constructive criticism on this release too, please!
 

ProjectX

Nicholas 'ProjectX' Udell - UnWheel Maps
Jan 9, 2004
1,223
0
0
Right behind you.
Downloaded. Looking forward to this!

Am I righ in thinking that these settings don't yet appear in the "game rules" menu and that I have to edit the ini to get them to work, right?
 

Ravu al Hemio

Comes, fixes, leaves.
Sep 1, 2004
178
0
0
34
Austria
ProjectX said:
Downloaded. Looking forward to this!
Have a big lot of fun!

Am I right in thinking that these settings don't yet appear in the "game rules" menu and that I have to edit the ini to get them to work, right?
Oh yes. The GUI is also on my To-Do list (as well as the replication and registering WOTgreal... once I will be able to get a credit card. It helped me a big lot in coding for Unreal games).