Page 1 of 1

was reading unitdef.cpp.

Posted: 09 Feb 2011, 01:37
by smoth
Some interesting stuff:

Code: Select all

canSelfRepair = udTable.GetBool("canSelfRepair", false);
decloakOnFire    = udTable.GetBool("decloakOnFire",    true);

kamikazeDist = udTable.GetFloat("kamikazeDistance", -25.0f) + 25.0f; //we count 3d distance while ta count 2d distance so increase slightly
kamikazeUseLOS = udTable.GetBool("kamikazeUseLOS", false);

bankingAllowed = udTable.GetBool("bankingAllowed", true);

verticalSpeed = udTable.GetFloat("verticalSpeed", 3.0f); // speed of takeoff and landing, at least for gunships

turnInPlaceDistance = udTable.GetFloat("turnInPlaceDistance", 350.f);
turnInPlaceSpeedLimit = ((turnRate / SPRING_CIRCLE_DIVS) * ((PI + PI) * SQUARE_SIZE)) * (speed / GAME_SPEED);
turnInPlaceSpeedLimit = udTable.GetFloat("turnInPlaceSpeedLimit", std::min(speed, turnInPlaceSpeedLimit));

fallSpeed         = udTable.GetFloat("fallSpeed",    0.2);
unitFallSpeed     = udTable.GetFloat("unitFallSpeed",  0);

transportMass     = udTable.GetFloat("transportMass",    100000.0f);
minTransportMass  = udTable.GetFloat("minTransportMass", 0.0f);
^so there is a way to delimit min size!

flareSalvoSize  = udTable.GetInt("flareSalvoSize",  4);
flareSalvoDelay = udTable.GetInt("flareSalvoDelay", 0) * GAME_SPEED;
^salvos? wtf?

usePieceCollisionVolumes = udTable.GetBool("usePieceCollisionVolumes", false);
^piece collistion?

Re: was reading unitdef.cpp.

Posted: 09 Feb 2011, 03:57
by Pxtl
I assume the ^ things are yours.

Does anybody even use Spring flares?

Re: was reading unitdef.cpp.

Posted: 09 Feb 2011, 04:34
by smoth
don't know man. don't remember seeing them.

Re: was reading unitdef.cpp.

Posted: 09 Feb 2011, 04:50
by SinbadEV
doesn't the XTA raven use salvos... maybe check it and see if it uses salvo flares too?

Re: was reading unitdef.cpp.

Posted: 09 Feb 2011, 05:30
by bobthedinosaur
how does a salvo work compared to a Projectiles or burst?

Re: was reading unitdef.cpp.

Posted: 09 Feb 2011, 05:51
by smoth
don't know as far as I know it is related to flares but I don't see a salvo count.

I could have looked that up but I am trying to understand the aircraft code.

Re: was reading unitdef.cpp.

Posted: 09 Feb 2011, 06:01
by knorke
random thread is random...
can you post what you want to explain/want explained?
most of those are in wiki already..
ie piece collisions do work, Spring.GetUnitLastAttackedPiece to get last hit piece.
SinbadEV wrote:doesn't the XTA raven use salvos... maybe check it and see if it uses salvo flares too?
err i think flares are those chaff flares airplanes can throw to fool missiles. it has nothing to do with weapons.

Re: was reading unitdef.cpp.

Posted: 09 Feb 2011, 08:53
by FLOZi
For Salvo read Burst.

wrt piece cols:

http://spring1944.svn.sourceforge.net/v ... threv=3333

Re: was reading unitdef.cpp.

Posted: 14 Feb 2011, 19:24
by Neddie
I haven't seen a flare in use for a long time, though I liked them in AA or XTA. Can't remember which. Five years ago?

Re: was reading unitdef.cpp.

Posted: 14 Feb 2011, 19:49
by Pxtl
Neddie wrote:I haven't seen a flare in use for a long time, though I liked them in AA or XTA. Can't remember which. Five years ago?
Iirc only the versions of AA that introduced flares actually had them visible - after that some bug or other made them invisible, but still functional. Iirc, the scout, the radar plane, and the stealth fighters all had flares, although the stealth fighter's flares were so weak as to be practically useless.

Re: was reading unitdef.cpp.

Posted: 18 Feb 2011, 17:07
by Karl
War To Oblivion uses flare too on the B-52 bombers
i dont know how it looks on other mod