weapons not working when plane is out of fuel - Page 2

weapons not working when plane is out of fuel

Requests for features in the spring code.

Moderator: Moderators

User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Fuel for ground units would be easy to implement mod-side. It's not in because there's nothing in the engine featureset that would work for refueling ground units. An empty plane returns to an airpad but an empty tank?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

... could also return to an "airpad", which could be set up so that it'll only take tanks- IIRC, we can make it so that some airpads will only take certain units, yes?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

You'd have to make that yardmap type y though.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

It'd probably be an idea to expand the airpad system to a per-category repairpad
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

rcdraco wrote:
Argh wrote:Um, if somebody feels like fixing this, could they also, maybe, finally just give us Fuel for everything, not just planes? That'd be pretty nice... yeah, I know this is LUA-able and you can even do it with COB, but, meh, it's something that I honestly think should just be in the engine proper...
I think that's interesting, but then we need more huge maps. Havin' little outposts with gas stations and some towers. Havin' little trucks runnin' around with huge fuel tanks on the back to get the fuel to the outpost. That's deep, AHHHHHHHH!
We dont really need huge maps to have supply lines, just supplies to actual need to be transported :) (A contructor far away from your econ haves the resources literally teleported to him, but maybe it would be more interesting if he needed to collect the materials and bring em there or something like that)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

gaia player can be neutral. I wonder what it would take to allow units to land there?

It would be cool if we could place neutral airpads that would charge a lot when units use them.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Post by Pxtl »

Problem with tanks returning to rearm-pad is that they can get lost on the way back.

Think about it: an airplane can always find a pad. There's no pathing for planes. They'll get there, eventually. So, the plane can safely ignore user input and prioritize getting back to the pad without breaking much.

Vehicles? Not so much. A vehicle will try to get back to the pad... and if something's in the way?

Can't get there.
Can't get there.
Can't get there.
x10000

and you can't change its orders, or else fuel is meaningless.

Limited _ammo_ is safe, because if a tank gets lost on the way home you can still give it orders to the ammo dump.

The only way I could see limited fuel working on tanks is if you had unlimited fuel (but possibly limited refueling-ability) aircraft that were programmed to refuel the tanks, or to transport them back to a refueling station. They'd simply patrol, and when they see tanks below their "refuel at" level, they'd go get them refuelled. Tanks at 0 fuel don't drive home like planes, they just stop moving.

That's the only way I'd see it working without becoming a path/AI/UI nightmare.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

Stuff returning to the fuel pad before running out of fuel and stopping moving if it runs out of fuel before reaching the pad sounds the right thing...
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Post by MadRat »

If the refuelling took place within a radius, like how mana worked in TA:K, then that would probably work for the idea.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

MadRat wrote:If the refuelling took place within a radius, like how mana worked in TA:K, then that would probably work for the idea.
Fuel cannon 8)
User avatar
VonGratz
Posts: 471
Joined: 03 May 2005, 05:25

Post by VonGratz »

Fuel trucks for the tanks. :wink:

IMHO I dont think its a very good idea, because patches, more micromanagement , and I think ,but I can be wrong, that planes return to the base before they are empty of fuel.
At least when in patrol mode.Im right?
and........If this would be extended for vehicles, the roads would be bottled :!:

This is an example of how refuel/ammo works with aircraft.
[UNITINFO]
{
unitname=AGUNNER;
side=ARM;
Buildpic=AGUNNER.BMP;
ObjectName=AGUNNER;
soundcategory=ARM_VTOL;
selfdestructas=MEDIUM_UNIT;
explodeas=SMALL_UNITEX;
weapon1=AGUNNER_WEAPON;
Name=Gunner;
BuildCostEnergy=4824;
BuildCostMetal=128;
BuildTime=8004;
Category=ARM VTOL LEVEL1 WEAPON;
Description=Light rocket attack plane;
FootprintX=3;
FootprintZ=3;
MaxFuel=50; That is the range of the plane.
RefuelTime=2; That is the time spent to refuel and replace ammo.
WeaponFuelUsage1=16; Its the time the plane, while in flight, can deploy the weapon, OR weapons like this heavy and larger range plane:
WeaponFuelUsage1=40;
WeaponFuelUsage2=40;
WeaponFuelUsage1=60;
WeaponFuelUsage2=60;
MinAirBasePower=300; Minimum base power to replenish the certain types of planes. For example, in my mod, heavy bombers only can be refueled in big land pads ( MinAirBasePower=500 ) and spend more time than other kinds of planes to replenish the bomb payload.
MaxDamage=590;
BrakeRate=2.25;
Acceleration=0.0435;
CanMove=1;
MaxVelocity=4.35;
MaxSlope=10;
TurnRate=768;
Cruisealt=60;
Builder=0;
WorkerTime=0;
CanAttack=1;
CanFly=1;
CanStop=1;
SightDistance=540;
noautofire=0;
wpri_badTargetCategory=VTOL;
HoverAttack=1;
MaxWaterDepth=0;
designation=TB-AP2;
bmcode=1;
threed=1;
zbuffer=1;
noautofire=0;
copyright=Copyright 1997 Humongous Entertainment. All rights reserved.;
unitnumber=495;
firestandorders=1;
standingfireorder=2;
mobilestandorders=1;
standingmoveorder=1;
ovradjust=1;
canpatrol=1;
canguard=1;
steeringmode=1;
shootme=1;
idleAutoHeal=0;
autoheal=0;
defaultmissiontype=VTOL_standby;
moverate1=8;
iconType=air;
}
vonGratz :wink:
User avatar
DOT
Posts: 138
Joined: 26 Nov 2007, 15:39

Post by DOT »

vehicles/planes if they dont got fuel they dont move so a truck or something need to move their big butt to the vehicle/plane thaht needs fuel or for plane wich has minium fuel needs quick a big plane wich has fule so he gives the plane wich needs fuel and he can fly and if plane is on mid air and has no fuel it will simple crash down and is destoryed and leaving a scorching area around the plane..
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

A plane with no fuel returns to base, a vehicle with no fuel would return to a refueler too but there is no refueler for vehicles.
User avatar
DOT
Posts: 138
Joined: 26 Nov 2007, 15:39

Post by DOT »

no this is unrealistic if a plane has no fuel and just lands it would actually crash and blowed up in big fire ball

and a vehicle with no fuel cant drive so its very unrealistic that you said..

did you ever see on you real life a plane dosent got fuel and returns to fuel station?

or a vehicle with no fuel and drives to fuel station?

i guess no so its very unrealistic thaht you said
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Do you really want your planes to just fall out of the sky when their fuel hits zero? Do you really want to tell them to return manually? No real pilot would fly a plane until it runs out of fuel, he'd return long before that happens. AIs aren't terribly smart so we deal with that by considering fuel = 0 to mean the fuel is so low that the pilot will return now. Having a return before 0 would fuck with bomber scripts that use the fuel system to force a plane to rearm after a bombing run because they'd crash the moment they drop the bomb and there would be no way to prevent that because you wouldn't know how much fuel the plane will have left at the target location.
User avatar
DOT
Posts: 138
Joined: 26 Nov 2007, 15:39

Post by DOT »

its realstic and if vehicles have no fuel then they cant drive and needs a truck or something wich gives em fuel and he can drive
and if a plane flys and on mid air he has no fuel he would crash down to ground/water and is dead.. so to prevent it a big plane wich has enough fuel is reguird and needs to fly to the plane wich needs fuel and if he dosent do quick the plane would crash.. simple is thaht and get it?
vehicles cant be orderd to move closest fuel station if he has no fuel..
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

It's also realistic to take a year to build a factory and start production. Realism doesn't fit into Spring because Spring is an incomplete simulation. I bet you'd be screaming bloody murder if your bombers just crashed because they didn't care that their fuel was low.
User avatar
DOT
Posts: 138
Joined: 26 Nov 2007, 15:39

Post by DOT »

oh well i give up you won..
but i dont mean too realistic with structure and such only at fuels..
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Not gonna happen.
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Post by yuritch »

DOT wrote:no this is unrealistic if a plane has no fuel and just lands it would actually crash and blowed up in big fire ball
No. The fireball comes from the burning fuel. If the plane has no fuel left, there won't be a fireball (unless the bombs explode). But the plane will still crash, and that is (generally) unacceptable in Spring - you just won't be able to keep track over aircraft fuel reserves in most situations. Plus the planes behave strangely sometimes, like fighters chasing ground units (whom they cannot attack) and thus wasting fuel needlessly.
Post Reply

Return to “Feature Requests”