Limited fuel

Limited fuel

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Limited fuel

Post by Das Bruce »

I heard somewhere there was a new tag for aircraft for this, if so hows it work?
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post by Zenka »

no clue, but I've read it on the svn. could be fun
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

Here some piece of code I've seen :

Code: Select all

float maxFuel; //max flight time in seconds before the aircraft needs to return to a air repair bay to refuel
float refuelTime; //time to fully refuel unit
float minAirBasePower; //min buildpower for airbases that this aircraft can land on
Not that weapon can use fuel too.[/quote]
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

would further encourage expansion by forcing people to build and protect advanced airpads.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Torrasque wrote:Here some piece of code I've seen :

Code: Select all

float maxFuel; //max flight time in seconds before the aircraft needs to return to a air repair bay to refuel
float refuelTime; //time to fully refuel unit
float minAirBasePower; //min buildpower for airbases that this aircraft can land on
Not that weapon can use fuel too.
Awesome, so is there more than one time of 'fuel', ie one you can use as a sort of ammo?
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

Sweet I could put that in EE.. oooh.. thats cool I like that..
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

This sounds superb.
User avatar
unpossible
Posts: 871
Joined: 10 May 2005, 19:24

Post by unpossible »

sounds like some different_from_TA game mechanics might start emerging proper...excellent :D
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

unpossible wrote:sounds like some different_from_TA game mechanics might start emerging proper...excellent :D
Excellent point.
User avatar
Erom
Posts: 1115
Joined: 25 Apr 2006, 05:08

Post by Erom »

A very low fuel cap and a low refuel time would make a pretty convincing drone, like from a starcraft carrier, methinks.
Theotherguy
Posts: 79
Joined: 11 Jul 2005, 02:01

Post by Theotherguy »

am I the only one who thinks its a horrible idea? Sure, put it in the engine for the mods, but for god's sake don't implement it in AA or XTA. limited fuel is a C&C thing, not a TA thing. It would make aircraft laughably useless, and would completley change the way the game is played. One of the things I liked most about OTA was the way it handled aircraft, and that included unlimited fuel.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Post by knorke »

why do people always complain about new features? :shock:
I think its nice, someone is working on this.
Sure, for most TA-based mods, limited ammo/fuel is just annoying
but I'd like to see some more different possibiliys for mods
User avatar
Drone_Fragger
Posts: 1341
Joined: 04 Dec 2005, 15:49

Post by Drone_Fragger »

Theotherguy wrote:am I the only one who thinks its a horrible idea? Sure, put it in the engine for the mods, but for god's sake don't implement it in AA or XTA. limited fuel is a C&C thing, not a TA thing. It would make aircraft laughably useless, and would completley change the way the game is played. One of the things I liked most about OTA was the way it handled aircraft, and that included unlimited fuel.
It was also the way that you could build nothing BUT aircraft and get away with it. Porc porc porc then build Hawks like theres no tommorow and blow everyhitn up.
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

you don't just porc and build hawks in TA...

you've got to expand and nab all the metal patches, and keep pressure upon your opponent to prevent him doing the same. You need to know what the enemy is doing. Mass hawks are used because most players built forests of MTs, and to take out take out MTs with Hawks without sustaining damage takes a lot of skill
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Post by Nemo »

Please consider that there are games other than AA/XTA for the spring engine.

and in that mind, hurrah, now we can make 1944 planes even MORE powerful!
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

Now you just need STOL!

Perhaps code a way so runways have a designated startpoint and endpoint:

Code: Select all

QueryRunway(startnum,endnum,attachpiece)
{
	startnum = piecename_of_runway_start_point;
	endnum = piecename_of_end;
	attachpiece = blah1;
}
(of course, doing it that way would also allow you to configure multiple runways per airport)

Then have aircraft loop around to line up with the startnum then decrease in altitude and speed steadily until it touches down, and have it move until endnum (while still slowing down). Then the unit would be attached to the attachpiece (which could again be toggled like a current transport) and moved into a hangar or otherwise off the runway by the modder.

Planes taking off could be handled however for takeoff. Perhaps a QueryRunwayTakeoff() function that works like queryrunway. The airport should define when it lets the plane go (un-attaches it after moving it into position on the runway).

Doing it this way could also allow aircraft to "measure" runways (the distance between startnum and endnum) and define a minrunwaylength, which would make it so a B-52 can't land on an aircraft carrier or whatever the modder wants.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

STOL would be cool.. with airstrips and such.. And why in the hell do people always thing that just cause a new feature gets added to the "Engine" that this feature will now be blanketly applied to all mods.. the point of a feature is that you can use it or not use it.. GOOD GREIF PEOPLE PAY ATTENTION...
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Post by Noruas »

+1 for Fang from Noruas, not a spam response or means to lock the thread now, but i think Fang has a very good point that new things should never EVER be bashed, anyone who is stupid enough to insult a new feature is insulting what spring is being built and on and all the people who work on it making patches t0 help make life easier on others, such as modders, if you dont understand or dont like it, then you dont have to post PERIOD.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Post by Pxtl »

Theotherguy wrote:am I the only one who thinks its a horrible idea? Sure, put it in the engine for the mods, but for god's sake don't implement it in AA or XTA. limited fuel is a C&C thing, not a TA thing. It would make aircraft laughably useless, and would completley change the way the game is played. One of the things I liked most about OTA was the way it handled aircraft, and that included unlimited fuel.
iirc original C&C planes returned for ammo, not fuel.

Curious: is this aircraft-only?
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Pxtl wrote:Curious: is this aircraft-only?
It would appear so.
Post Reply

Return to “Engine”