1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. 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.

AirTime is back... optionally

Discussion in 'Editing' started by Ravu al Hemio, Sep 2, 2004.

  1. Ravu al Hemio

    Ravu al Hemio Comes, fixes, leaves.

    Joined:
    Sep 1, 2004
    Messages:
    178
    Likes Received:
    0
    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
     

    Attached Files:

    Last edited: Apr 1, 2005
  2. Shrimp

    Shrimp Seafood splatter

    Joined:
    Jan 13, 2003
    Messages:
    740
    Likes Received:
    0
    OH NO YOU LOOKED AT MY AWEFUL CODE!!!! AAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHH!!!!!!!!

    Ahem, yes, well, sorry if it's a mess, didn't have time to clean it up for UT2004: ECE :(

    Nice, I'll give it a try later ;)
     
  3. Ravu al Hemio

    Ravu al Hemio Comes, fixes, leaves.

    Joined:
    Sep 1, 2004
    Messages:
    178
    Likes Received:
    0
    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.

    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.)

    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!)
     

    Attached Files:

    Last edited: Sep 3, 2004
  4. The_Head

    The_Head JB Mapper

    Joined:
    Jul 3, 2004
    Messages:
    3,092
    Likes Received:
    0
    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
     
  5. Ravu al Hemio

    Ravu al Hemio Comes, fixes, leaves.

    Joined:
    Sep 1, 2004
    Messages:
    178
    Likes Received:
    0
    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 ;)
     
    Last edited: Sep 3, 2004
  6. ProjectX

    ProjectX Nicholas 'ProjectX' Udell - UnWheel Maps

    Joined:
    Jan 9, 2004
    Messages:
    1,223
    Likes Received:
    0
    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.
     
  7. Ravu al Hemio

    Ravu al Hemio Comes, fixes, leaves.

    Joined:
    Sep 1, 2004
    Messages:
    178
    Likes Received:
    0
    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.)
     
  8. The_Head

    The_Head JB Mapper

    Joined:
    Jul 3, 2004
    Messages:
    3,092
    Likes Received:
    0
    Shame bout that. would have been nice. thanks for trying anyway
     
  9. ProjectX

    ProjectX Nicholas 'ProjectX' Udell - UnWheel Maps

    Joined:
    Jan 9, 2004
    Messages:
    1,223
    Likes Received:
    0
    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: Sep 3, 2004
  10. Ravu al Hemio

    Ravu al Hemio Comes, fixes, leaves.

    Joined:
    Sep 1, 2004
    Messages:
    178
    Likes Received:
    0
    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?
     
  11. ProjectX

    ProjectX Nicholas 'ProjectX' Udell - UnWheel Maps

    Joined:
    Jan 9, 2004
    Messages:
    1,223
    Likes Received:
    0
    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
     
  12. Ravu al Hemio

    Ravu al Hemio Comes, fixes, leaves.

    Joined:
    Sep 1, 2004
    Messages:
    178
    Likes Received:
    0
    Wuzzah! Wooyeah! Booyalaka!

    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.
     
  13. ProjectX

    ProjectX Nicholas 'ProjectX' Udell - UnWheel Maps

    Joined:
    Jan 9, 2004
    Messages:
    1,223
    Likes Received:
    0
    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.
     
  14. Ravu al Hemio

    Ravu al Hemio Comes, fixes, leaves.

    Joined:
    Sep 1, 2004
    Messages:
    178
    Likes Received:
    0
    Theoretically... know about any mutators that do the same in "normal" UT2003/UT2004?
     
  15. ProjectX

    ProjectX Nicholas 'ProjectX' Udell - UnWheel Maps

    Joined:
    Jan 9, 2004
    Messages:
    1,223
    Likes Received:
    0
    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
     
  16. Smokin

    Smokin New Member

    Joined:
    Nov 23, 2002
    Messages:
    194
    Likes Received:
    0
    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.
     
  17. ProjectX

    ProjectX Nicholas 'ProjectX' Udell - UnWheel Maps

    Joined:
    Jan 9, 2004
    Messages:
    1,223
    Likes Received:
    0
    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.
     
  18. Ravu al Hemio

    Ravu al Hemio Comes, fixes, leaves.

    Joined:
    Sep 1, 2004
    Messages:
    178
    Likes Received:
    0
    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!
     
  19. ProjectX

    ProjectX Nicholas 'ProjectX' Udell - UnWheel Maps

    Joined:
    Jan 9, 2004
    Messages:
    1,223
    Likes Received:
    0
    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?
     
  20. Ravu al Hemio

    Ravu al Hemio Comes, fixes, leaves.

    Joined:
    Sep 1, 2004
    Messages:
    178
    Likes Received:
    0
    Have a big lot of fun!

    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).
     

Share This Page