#4329398 - 01/18/17 03:33 PM
Re: The bouncing bomb
[Re: Rotton50]
|
Joined: Apr 2002
Posts: 12,497
MrJelly
Veteran
|
Veteran
Joined: Apr 2002
Posts: 12,497
Montagnac, L'Herault, France
|
I added five extra slots already in what I sent you in the "extended" files. You need to edit SPARE 1 and SPARE 2. If you already have something similar you can copy its line, paste it, then edit the cells. I checked the exe and we have a limit of 100, so I do not need to modify the "eaw.exe".
Fly EAW online at GameRanger: GameRanger SiteFaceBook Pages UAW 160 downloadsEAW ClubMark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.I am now of an age at which I no longer need to suffer fools gladly
|
|
#4329702 - 01/19/17 05:55 PM
Re: The bouncing bomb
[Re: MrJelly]
|
Joined: Apr 2002
Posts: 12,497
MrJelly
Veteran
|
Veteran
Joined: Apr 2002
Posts: 12,497
Montagnac, L'Herault, France
|
Ray I have rewritten quite a lot of my torpedo code
if (pBomb->pType->TypeNum == 30) //Jel: Torpedo
{
pBomb->Torpedo = 1;
}
else if (pBomb->pType->TypeNum == 31) //Jel: Torpedo
{
pBomb->Torpedo = 1;
}
else if (pBomb->pType->TypeNum == 63) //Jel: SPAW torpedo
{
pBomb->Torpedo = 1;
}
else if (pBomb->pType->TypeNum == 64) //Jel: SPAW torpedo
{
pBomb->Torpedo = 1;
}
else if ((pBomb->pType->TypeNum >= 80) && (pBomb->pType->TypeNum < 86)) //Jel: Added for bouncing bomb
{
pBomb->Torpedo = 1;
}
Torpedoes and bouncing bombs are recognised from their "TypeNum" and we already have 30 and 31 in the default weapons, 63 and 64 in the SPAW section, and 80 as the original bouncing bomb. The last line of that code sets 80, and the five extra lines (81 to 85) as torpedoes, so currently there are three spare slots if you only use 81 and 82. The UAW150 bouncing bomb is effectively a bouncing torpedo, but the bounce routine only applies if the "TypeNum" is 80 - 85.
Fly EAW online at GameRanger: GameRanger SiteFaceBook Pages UAW 160 downloadsEAW ClubMark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.I am now of an age at which I no longer need to suffer fools gladly
|
|
#4329842 - 01/20/17 07:51 AM
Re: The bouncing bomb
[Re: MrJelly]
|
Joined: Apr 2002
Posts: 12,497
MrJelly
Veteran
|
Veteran
Joined: Apr 2002
Posts: 12,497
Montagnac, L'Herault, France
|
Once you have a set of files for this send them to me so I can test them with the new exe. Yesterday I had torpedoes working fine from the Avenger and the Kate using loadout files without the release mechanism. In a Zero escorted Kates to attack the Enterprise and the AIs released torpedoes at low altitude using the torpedo code I had modified. I will see if I can find the code relating to the torpedo speed. I think it is using the horizontal velocity component of the aircraft at the time of release
Fly EAW online at GameRanger: GameRanger SiteFaceBook Pages UAW 160 downloadsEAW ClubMark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.I am now of an age at which I no longer need to suffer fools gladly
|
|
#4329994 - 01/20/17 06:40 PM
Re: The bouncing bomb
[Re: MrJelly]
|
Joined: Apr 2002
Posts: 12,497
MrJelly
Veteran
|
Veteran
Joined: Apr 2002
Posts: 12,497
Montagnac, L'Herault, France
|
It depends on the variable used. Several have signed and unsigned ones. If you recall the MaxTMods problem that you hit was caused because the original programmers had used using a signed value for a number that could never be negative. The signed range was from -32767 to 32767, half of which were useless as a counting number. When I switched the to to unsigned the range was from 0 to 65535, and you were back in business. I will look at the velocity and see what type it is. If it can be negative as far as the exe goes then I will try to modify the editor It is a UBYTE which is unsigned (0 to 255). There is a "signed_char" from -128 to 128. The problem is that some rockets use a value bigger than 128 such as 194
Last edited by MrJelly; 01/20/17 06:54 PM.
Fly EAW online at GameRanger: GameRanger SiteFaceBook Pages UAW 160 downloadsEAW ClubMark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.I am now of an age at which I no longer need to suffer fools gladly
|
|
|
|