Hi, this post is me trying to understand more about the coding behind the transformation between the Alien race from alienRaces.rul
I am trying to understand the difference between STR_SECTOID and STR_SECTOID_UNDERWATER
Please check screenshot EXP2.bmp
Okay, I am putting things here in the most basic simple description possible. So every one can understand my problem.
What so hard to understand? They are two different teams, one on land and one under the water. Yes, they are. However, what I want to know is. How are they related in the game, from the code.
For example.
In Exp1.bmp, I shot down a large scout with a crew of Sectoid on board, they crash just off the coast and in the ocean.
If you refer to screen shot Exp2.bmp I tried launching a troop transport to the crash site. When it did, an error was generated.
In screen shot Exp2.bmp, I have disable the underwater team. So the error, unknown race: STR_SECTOID_UNDERWATER defined in deployment : STR_LARGES_SCOUT.
Now.. now, hang on a minute, this ufo is crew with sectiod from the STR_SECTOID, not STR_SECTOID_UNDERWATER. However, why is it asking for STR_SECTOID_UNDERWATER?
My question is,
1) Is there a transformation done between STR_SECTOID to STR_SECTOID_UNDERWATER? There are two different teams right?
Why is the engine asking for the sea team where it is a surface team that was shot down?
So I change the code a bit to test, please check Exp3.bmp, I have put the snakemen team into the STR_SECTOID_UNDERWATER, so it will make the difference between the surface STR_SECTOID and the underwater STR_SECTOID_UNDERWATER stood out.
I run the game again, and then whola! Please check Exp5.bmp, I found snakemen from STR_SECTOID_UNDERWATER.
So, why would a large scout with sectoids now crew with Snakemen? When it crash underwater? Is there a transformation done?
So this came to the second part of my question.
IF there is a transformation done, I have code a underwater deployment for it in alienDeployments.rul.
Please check screen shot EXP6.BMP and EXP7.BMP.
I have done a craftcustomdeploy, using the STR_SECTOID_UNDERWATER as a trigger, since it is an underwater team being deploy in the map game from EXP5.bmp.
Unfortunately, the underwater deployment from alienDeployments.rul is not triggered and ignored.
However, when I use the surface team, STR_SECTOID, only then the underwater deployment is triggered.
So, is there a problem with the codes? Why can't I use the underwater team STR_SECTOID_UNDERWATER to trigger the deployment I want from alienDeployments.rul?
From I saw in the codes, clearly there's a transformation done from a surface team to an underwater team. If there's no underwater team, the game would crash by EXP2.bmp
I really want to deploy this Hybrid game of mine out next year. My aim is, you can intercept, shoot down and do ufo crash sites from both sea and land. You can use any craft, however, the crashsites in the ocean are limited to a selected bunch of craft. I want the game to be able to handle in a way that it will warn you some craft or armor in your team is forbidden from being used in the underwatrer crash sites.
You can build undersea bases. You have Aliens from TFTD and UFO but they are tweak in some ways, for example, the Tentulat is no longer an alien that turn your soldier into a zombie, it is now a melee bomb. Much like the popper.
I have human factions infiltrated by Terminators. So, when you are fighting Marsec or other Human factions, chances are their ranks have terminator infiltrated in them. When any human dies, a terminator rises out as a terror weapon you deal with.
I am implementing a salvage mechanic, where you can't buy everything you want. You have to salvage dead tanks and corpses and rebuilt them for your own use.
You can't manufacture most Alien weapons, you can only capture and horde. You can built inferior version of their weapon.
It is my hope to have a black market system beside the normal market system where you can but certain faction aligned or rare good for a high price.
My game does not have any quest, just a straight up UFO + TFTD merge. Where the R&D is along the line with TFTD merging UFO and finishing on Cydonia.
This game has human factions that make your life difficult, infiltrated by Skynet with terminator robots as tough as Lobstermen or more. You can rebuilt your dead soldiers into tough HWPs like Universal Soldiers. You can also rebuilt certain alien corpse to fight with you.
Enemy human factions has tanks like you buy in the market, with Barrage rockets to stunt rockets. A few have nukes to throw at you.
When you started off, the weapons you have are downright primitive, from muskets to Panzerfaust. The Automatic rifles you have from the original ufo are just luxuries. Aliens have Toxic, Plasma, Ion and Sonic weapons. With Blaster bombs having Anti-mater warheads that can almost carve a ufo into half. So in this game, there are weapons that can wipe out a quarter of the map. I am also having plans to implement aliens like Teknomen, please check the anime for info. Teknomen are alien modified humans armed with alien armor and weapons, that can cut through anything with antimater weapons that can wipe out half of the battlefield.
So, this is my mod. I hoping to have some interesting mechanic in it that's different from the other mod. I put out all my plans and cards here, hoping at least I get the right help at making this mod happens.