Buyable Cockpits, modders resource
Posted: Mon Mar 22, 2010 10:01 am
I created buyable cockpits for my game, but must admit that I am too lazy to make a real oxp out of it (atm).
The problem being that either all cockpit oxps would have to be merged together to make it work or you would have to have the singular oxps renamed, at least hud-wise and partially otherwise due to equally-named constituent parts.
So I publish my solution, a java script and equipment.plist entry here as a modders resource. If someone wants to go forth and male an oxp out of it, be my guest. Or it can be used for a handful of cockpits by cutting it down to ones' gaming needs.
In any case, please simply reference me if you do, except that the license can be considered "as Oolite" on this one.
I personally find cockpits as bought and sold much nicer than having to crawl around in the code to have a specific one. (OK, so I did crawl around ... but I do that. Not every player wants to I guess.) It's more atmospheric to be able to do ingame, imo.
Edit: The java script needs Oolite 1.74 RVN3070 upwards to run properly. Should be known I guess.
End speech and start java script.
The problem being that either all cockpit oxps would have to be merged together to make it work or you would have to have the singular oxps renamed, at least hud-wise and partially otherwise due to equally-named constituent parts.
So I publish my solution, a java script and equipment.plist entry here as a modders resource. If someone wants to go forth and male an oxp out of it, be my guest. Or it can be used for a handful of cockpits by cutting it down to ones' gaming needs.
In any case, please simply reference me if you do, except that the license can be considered "as Oolite" on this one.
I personally find cockpits as bought and sold much nicer than having to crawl around in the code to have a specific one. (OK, so I did crawl around ... but I do that. Not every player wants to I guess.) It's more atmospheric to be able to do ingame, imo.
Edit: The java script needs Oolite 1.74 RVN3070 upwards to run properly. Should be known I guess.
End speech and start java script.
Code: Select all
this.name = "HUDs as equipment items";
this.author = "Lestradae";
this.copyright = "Creative Commons: attribution, non-commercial, sharealike.";
this.description = "Cockpits can be bought as equipment items";
this.version = "1.0";
this.startUp = function()
{
if(player.ship.hasEquipment("EQ_ASPEXP_HUD"))
{
player.ship.hud = "aspexp-hud.plist";
}
if(player.ship.hasEquipment("EQ_ASPMKI_HUD"))
{
player.ship.hud = "aspmk1-hud.plist";
}
if(player.ship.hasEquipment("EQ_ASPMKII_HUD"))
{
player.ship.hud = "aspmk2-hud.plist";
}
if(player.ship.hasEquipment("EQ_AVONDALE_HUD"))
{
player.ship.hud = "avondale-hud.plist";
}
if(player.ship.hasEquipment("EQ_BWEEDFALCON_HUD"))
{
player.ship.hud = "bweed-falconhud.plist";
}
if(player.ship.hasEquipment("EQ_BWEEDKESTREL_HUD"))
{
player.ship.hud = "bweed-kestrelhud.plist";
}
if(player.ship.hasEquipment("EQ_CCLIPPER_HUD"))
{
player.ship.hud = "c-clipper-hud.plist";
}
if(player.ship.hasEquipment("EQ_COBRAIIX_HUD"))
{
player.ship.hud = "cobra2x-hud.plist";
}
if(player.ship.hasEquipment("EQ_COBRAIII_HUD"))
{
player.ship.hud = "cobra3-hud.plist";
}
if(player.ship.hasEquipment("EQ_COBRAIIINEW_HUD"))
{
player.ship.hud = "cobra3new-hud.plist";
}
if(player.ship.hasEquipment("EQ_COBRACOURIER_HUD"))
{
player.ship.hud = "cobracourier-hud.plist";
}
if(player.ship.hasEquipment("EQ_COBRANJX_HUD"))
{
player.ship.hud = "cobranjx-hud.plist";
}
if(player.ship.hasEquipment("EQ_COBRARAPIER_HUD"))
{
player.ship.hud = "cobrarapier-hud.plist";
}
if(player.ship.hasEquipment("EQ_COMPACT_HUD"))
{
player.ship.hud = "Compact-hud.plist";
}
if(player.ship.hasEquipment("EQ_CONDOR_HUD"))
{
player.ship.hud = "condorhud.plist";
}
if(player.ship.hasEquipment("EQ_COURIERSE_HUD"))
{
player.ship.hud = "courierSE-hud.plist";
}
if(player.ship.hasEquipment("EQ_COURIERSPECIAL_HUD"))
{
player.ship.hud = "courierspecial-hud.plist";
}
if(player.ship.hasEquipment("EQ_DEEPSPACERETRO_HUD"))
{
player.ship.hud = "deepspace-retro-hud.plist";
}
if(player.ship.hasEquipment("EQ_DRHUDCMKIII_HUD"))
{
player.ship.hud = "Dr_HUD_CMkIII-hud.plist";
}
if(player.ship.hasEquipment("EQ_DRHUD_HUD"))
{
player.ship.hud = "Dr_HUD-hud.plist";
}
if(player.ship.hasEquipment("EQ_DRAKE_HUD"))
{
player.ship.hud = "drake-hud.plist";
}
if(player.ship.hasEquipment("EQ_DRAKEMKII_HUD"))
{
player.ship.hud = "drakemk2hud.plist";
}
if(player.ship.hasEquipment("EQ_DRAKEMKIIB_HUD"))
{
player.ship.hud = "drakemk2-hud.plist";
}
if(player.ship.hasEquipment("EQ_FIGHTER_HUD"))
{
player.ship.hud = "Fighter-hud.plist";
}
if(player.ship.hasEquipment("EQ_BIGFIGHTER_HUD"))
{
player.ship.hud = "Fighter-hud1280x1024.plist";
}
if(player.ship.hasEquipment("EQ_FIREFLY_HUD"))
{
player.ship.hud = "fireflyhud.plist";
}
if(player.ship.hasEquipment("EQ_GHUDMKII_HUD"))
{
player.ship.hud = "G-HUD_Mk2-hud.plist";
}
if(player.ship.hasEquipment("EQ_HUDNG_HUD"))
{
player.ship.hud = "hud_ng-hud.plist";
}
if(player.ship.hasEquipment("EQ_URUTUIII_HUD"))
{
player.ship.hud = "hud_urutu3.plist";
}
if(player.ship.hasEquipment("EQ_URUTUIV_HUD"))
{
player.ship.hud = "hud_urutu4.plist";
}
if(player.ship.hasEquipment("EQ_ISIS_HUD"))
{
player.ship.hud = "isishud.plist";
}
if(player.ship.hasEquipment("EQ_KATIPO_HUD"))
{
player.ship.hud = "katipo-hud.plist";
}
if(player.ship.hasEquipment("EQ_KLEPTO_HUD"))
{
player.ship.hud = "kleptohud-hud.plist";
}
if(player.ship.hasEquipment("EQ_MEDUSA_HUD"))
{
player.ship.hud = "MedusaHud-hud.plist";
}
if(player.ship.hasEquipment("EQ_MEGAWALNUTDASH_HUD"))
{
player.ship.hud = "megawalnutdash-hud.plist";
}
if(player.ship.hasEquipment("EQ_MERLIN_HUD"))
{
player.ship.hud = "merlinhud.plist";
}
if(player.ship.hasEquipment("EQ_MIL_HUD"))
{
player.ship.hud = "milhud.plist";
}
if(player.ship.hasEquipment("EQ_MORRIGAN_HUD"))
{
player.ship.hud = "morrigan-hud.plist";
}
if(player.ship.hasEquipment("EQ_NG_HUD"))
{
player.ship.hud = "NG-hud.plist";
}
if(player.ship.hasEquipment("EQ_OUTRIDER_HUD"))
{
player.ship.hud = "outriderhud.plist";
}
if(player.ship.hasEquipment("EQ_PALLAS_HUD"))
{
player.ship.hud = "pallashud.plist";
}
if(player.ship.hasEquipment("EQ_PARSECBLUE_HUD"))
{
player.ship.hud = "parsec-hudblue.plist";
}
if(player.ship.hasEquipment("EQ_PARSECCARBON_HUD"))
{
player.ship.hud = "parsec-hudcarbon.plist";
}
if(player.ship.hasEquipment("EQ_PARSECBASE_HUD"))
{
player.ship.hud = "parsec-Hudcarbonbase.plist";
}
if(player.ship.hasEquipment("EQ_PARSECDELUXE_HUD"))
{
player.ship.hud = "parsec-hudcarbondeluxe.plist";
}
if(player.ship.hasEquipment("EQ_PARSECRED_HUD"))
{
player.ship.hud = "parsec-hudcarbonred.plist";
}
if(player.ship.hasEquipment("EQ_PARSECGREEN_HUD"))
{
player.ship.hud = "parsec-hudgreen.plist";
}
if(player.ship.hasEquipment("EQ_PARSECGREY_HUD"))
{
player.ship.hud = "parsec-hudgrey.plist";
}
if(player.ship.hasEquipment("EQ_PARSECWHITE_HUD"))
{
player.ship.hud = "parsec-hudgwhite.plist";
}
if(player.ship.hasEquipment("EQ_PARSECMKIII_HUD"))
{
player.ship.hud = "parsec-hudMK3.plist";
}
if(player.ship.hasEquipment("EQ_PHAZE_HUD"))
{
player.ship.hud = "phaze-hud.plist";
}
if(player.ship.hasEquipment("EQ_PTI_HUD"))
{
player.ship.hud = "PTIhud.plist";
}
if(player.ship.hasEquipment("EQ_SHTAIL_HUD"))
{
player.ship.hud = "shtail-hud.plist";
}
if(player.ship.hasEquipment("EQ_SWIFT_HUD"))
{
player.ship.hud = "swifthud.plist";
}
if(player.ship.hasEquipment("EQ_TANIWHA_HUD"))
{
player.ship.hud = "taniwhaHUD.plist";
}
if(player.ship.hasEquipment("EQ_TERRAPIN_HUD"))
{
player.ship.hud = "terrapinhud.plist";
}
if(player.ship.hasEquipment("EQ_TREK_HUD"))
{
player.ship.hud = "TrekHud-hud.plist";
}
if(player.ship.hasEquipment("EQ_VENOM_HUD"))
{
player.ship.hud = "venomhud.plist";
}
if(player.ship.hasEquipment("EQ_WOLF_HUD"))
{
player.ship.hud = "wolfhud.plist";
}
if(player.ship.hasEquipment("EQ_WOLFB_HUD"))
{
player.ship.hud = "wolf-hud.plist";
}
if(player.ship.hasEquipment("EQ_WOLFMKI_HUD"))
{
player.ship.hud = "wolfmk1-hud.plist";
}
}
this.playerBoughtEquipment = function(equipment)
{
switch(equipment)
{
case "EQ_ASPEXP_HUD":
{
player.ship.hud = "aspexp-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_ASPEXP_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_ASPEXP_HUD");
player.ship.removeEquipment("EQ_ASPEXP_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_ASPMKI_HUD":
{
player.ship.hud = "aspmk1-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_ASPMKI_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_ASPMKI_HUD");
player.ship.removeEquipment("EQ_ASPMKI_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_ASPMKII_HUD":
{
player.ship.hud = "aspmk2-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_ASPMKII_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_ASPMKII_HUD");
player.ship.removeEquipment("EQ_ASPMKII_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_AVONDALE_HUD":
{
player.ship.hud = "avondale-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_AVONDALE_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_AVONDALE_HUD");
player.ship.removeEquipment("EQ_AVONDALE_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_BWEEDFALCON_HUD":
{
player.ship.hud = "bweed-falconhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_BWEEDFALCON_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_BWEEDFALCON_HUD");
player.ship.removeEquipment("EQ_BWEEDFALCON_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_BWEEDKESTREL_HUD":
{
player.ship.hud = "bweed-kestrelhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_BWEEDKESTREL_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_BWEEDKESTREL_HUD");
player.ship.removeEquipment("EQ_BWEEDKESTREL_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_CCLIPPER_HUD":
{
player.ship.hud = "c-clipper-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_CCLIPPER_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_CCLIPPER_HUD");
player.ship.removeEquipment("EQ_CCLIPPER_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_COBRAIIX_HUD":
{
player.ship.hud = "cobra2x.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_COBRAIIX_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_COBRAIIX_HUD");
player.ship.removeEquipment("EQ_COBRAIIX_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_COBRAIII_HUD":
{
player.ship.hud = "cobra3-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_COBRAIII_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_COBRAIII_HUD");
player.ship.removeEquipment("EQ_COBRAIII_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_COBRAIIINEW_HUD":
{
player.ship.hud = "cobra3new-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_COBRAIIINEW_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_COBRAIIINEW_HUD");
player.ship.removeEquipment("EQ_COBRAIIINEW_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_COBRACOURIER_HUD":
{
player.ship.hud = "cobracourier-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_COBRACOURIER_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_COBRACOURIER_HUD");
player.ship.removeEquipment("EQ_COBRACOURIER_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_COBRANJX_HUD":
{
player.ship.hud = "cobranjx-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_COBRANJX_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_COBRANJX_HUD");
player.ship.removeEquipment("EQ_COBRANJX_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_COBRARAPIER_HUD":
{
player.ship.hud = "cobrarapier-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_COBRARAPIER_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_COBRARAPIER_HUD");
player.ship.removeEquipment("EQ_COBRARAPIER_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_COMPACT_HUD":
{
player.ship.hud = "Compact-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_COMPACT_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_COMPACT_HUD");
player.ship.removeEquipment("EQ_COMPACT_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_CONDOR_HUD":
{
player.ship.hud = "condorhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_CONDOR_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_CONDOR_HUD");
player.ship.removeEquipment("EQ_CONDOR_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_COURIERSE_HUD":
{
player.ship.hud = "courierSE-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_COURIERSE_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_COURIERSE_HUD");
player.ship.removeEquipment("EQ_COURIERSE_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_COURIERSPECIAL_HUD":
{
player.ship.hud = "courierspecial-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_COURIERSPECIAL_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_COURIERSPECIAL_HUD");
player.ship.removeEquipment("EQ_COURIERSPECIAL_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_DEEPSPACERETRO_HUD":
{
player.ship.hud = "deepspace-retro-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_DEEPSPACERETRO_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_DEEPSPACERETRO_HUD");
player.ship.removeEquipment("EQ_DEEPSPACERETRO_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_DRHUDCMKIII_HUD":
{
player.ship.hud = "Dr_HUD_CMkIII-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_DRHUDCMKIII_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_DRHUDCMKIII_HUD");
player.ship.removeEquipment("EQ_DRHUDCMKIII_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_DRHUD_HUD":
{
player.ship.hud = "Dr_HUD-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_DRHUD_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_DRHUD_HUD");
player.ship.removeEquipment("EQ_DRHUD_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_DRAKE_HUD":
{
player.ship.hud = "drake-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_DRAKE_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_DRAKE_HUD");
player.ship.removeEquipment("EQ_DRAKE_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_DRAKEMKII_HUD":
{
player.ship.hud = "drakemk2hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_DRAKEMKII_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_DRAKEMKII_HUD");
player.ship.removeEquipment("EQ_DRAKEMKII_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_DRAKEMKIIB_HUD":
{
player.ship.hud = "drakemk2-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_DRAKEMKIIB_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_DRAKEMKIIB_HUD");
player.ship.removeEquipment("EQ_DRAKEMKIIB_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_FIGHTER_HUD":
{
player.ship.hud = "Fighter-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_FIGHTER_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_FIGHTER_HUD");
player.ship.removeEquipment("EQ_FIGHTER_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_BIGFIGHTER_HUD":
{
player.ship.hud = "Fighter-hud1280x1024.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_BIGFIGHTER_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_BIGFIGHTER_HUD");
player.ship.removeEquipment("EQ_BIGFIGHTER_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_FIREFLY_HUD":
{
player.ship.hud = "fireflyhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_FIREFLY_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_FIREFLY_HUD");
player.ship.removeEquipment("EQ_FIREFLY_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_GHUDMKII_HUD":
{
player.ship.hud = "G-HUD_Mk2-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_GHUDMKII_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_GHUDMKII_HUD");
player.ship.removeEquipment("EQ_GHUDMKII_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_HUDNG_HUD":
{
player.ship.hud = "hud_ng-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_HUDNG_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_HUDNG_HUD");
player.ship.removeEquipment("EQ_HUDNG_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_URUTUIII_HUD":
{
player.ship.hud = "hud_urutu3.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_URUTUIII_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_URUTUIII_HUD");
player.ship.removeEquipment("EQ_URUTUIII_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_URUTUIV_HUD":
{
player.ship.hud = "hud_urutu4.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_URUTUIV_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_URUTUIV_HUD");
player.ship.removeEquipment("EQ_URUTUIV_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_ISIS_HUD":
{
player.ship.hud = "isishud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_ISIS_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_ISIS_HUD");
player.ship.removeEquipment("EQ_ISIS_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_KATIPO_HUD":
{
player.ship.hud = "katipo-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_KATIPO_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_KATIPO_HUD");
player.ship.removeEquipment("EQ_KATIPO_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_KLEPTO_HUD":
{
player.ship.hud = "kleptohud-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_KLEPTO_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_KLEPTO_HUD");
player.ship.removeEquipment("EQ_KLEPTO_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_MEDUSA_HUD":
{
player.ship.hud = "MedusaHud-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_MEDUSA_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_MEDUSA_HUD");
player.ship.removeEquipment("EQ_MEDUSA_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_MEGAWALNUTDASH_HUD":
{
player.ship.hud = "megawalnutdash-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_MEGAWALNUTDASH_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_MEGAWALNUTDASH_HUD");
player.ship.removeEquipment("EQ_MEGAWALNUTDASH_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_MERLIN_HUD":
{
player.ship.hud = "merlinhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_MERLIN_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_MERLIN_HUD");
player.ship.removeEquipment("EQ_MERLIN_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_MIL_HUD":
{
player.ship.hud = "milhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_MIL_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_MIL_HUD");
player.ship.removeEquipment("EQ_MIL_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_MORRIGAN_HUD":
{
player.ship.hud = "morrigan-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_MORRIGAN_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_MORRIGAN_HUD");
player.ship.removeEquipment("EQ_MORRIGAN_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_NG_HUD":
{
player.ship.hud = "NG-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_NG_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_NG_HUD");
player.ship.removeEquipment("EQ_NG_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_OUTRIDER_HUD":
{
player.ship.hud = "outriderhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_OUTRIDER_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_OUTRIDER_HUD");
player.ship.removeEquipment("EQ_OUTRIDER_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PALLAS_HUD":
{
player.ship.hud = "pallashud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PALLAS_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_PALLAS_HUD");
player.ship.removeEquipment("EQ_PALLAS_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PARSECBLUE_HUD":
{
player.ship.hud = "parsec-hudblue.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PARSECBLUE_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_PARSECBLUE_HUD");
player.ship.removeEquipment("EQ_PARSECBLUE_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PARSECCARBON_HUD":
{
player.ship.hud = "parsec-hudcarbon.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PARSECCARBON_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_PARSECCARBON_HUD");
player.ship.removeEquipment("EQ_PARSECCARBON_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PARSECBASE_HUD":
{
player.ship.hud = "parsec-Hudcarbonbase.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PARSECBASE_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_PARSECBASE_HUD");
player.ship.removeEquipment("EQ_PARSECBASE_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PARSECDELUXE_HUD":
{
player.ship.hud = "parsec-hudcarbondeluxe.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PARSECDELUXE_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_PARSECDELUXE_HUD");
player.ship.removeEquipment("EQ_PARSECDELUXE_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PARSECRED_HUD":
{
player.ship.hud = "parsec-hudcarbonred.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PARSECRED_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_PARSECRED_HUD");
player.ship.removeEquipment("EQ_PARSECRED_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PARSECGREEN_HUD":
{
player.ship.hud = "parsec-hudgreen.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PARSECGREEN_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_PARSECGREEN_HUD");
player.ship.removeEquipment("EQ_PARSECGREEN_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PARSECGREY_HUD":
{
player.ship.hud = "parsec-hudgrey.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PARSECGREY_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_PARSECGREY_HUD");
player.ship.removeEquipment("EQ_PARSECGREY_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PARSECWHITE_HUD":
{
player.ship.hud = "parsec-hudgwhite.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PARSECWHITE_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_PARSECWHITE_HUD");
player.ship.removeEquipment("EQ_PARSECWHITE_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PARSECMKIII_HUD":
{
player.ship.hud = "parsec-hudMK3.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PARSECMKIII_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_PARSECMKIII_HUD");
player.ship.removeEquipment("EQ_PARSECMKIII_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PHAZE_HUD":
{
player.ship.hud = "phaze-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PHAZE_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_PHAZE_HUD");
player.ship.removeEquipment("EQ_PHAZE_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_PTI_HUD":
{
player.ship.hud = "PTIhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_PTI_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_PTI_HUD");
player.ship.removeEquipment("EQ_PTI_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_SHTAIL_HUD":
{
player.ship.hud = "shtail-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_SHTAIL_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_SHTAIL_HUD");
player.ship.removeEquipment("EQ_SHTAIL_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_SWIFT_HUD":
{
player.ship.hud = "swifthud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_SWIFT_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_SWIFT_HUD");
player.ship.removeEquipment("EQ_SWIFT_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_TANIWHA_HUD":
{
player.ship.hud = "taniwhaHUD.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_TANIWHA_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_TANIWHA_HUD");
player.ship.removeEquipment("EQ_TANIWHA_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_TERRAPIN_HUD":
{
player.ship.hud = "terrapinhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_TERRAPIN_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_TERRAPIN_HUD");
player.ship.removeEquipment("EQ_TERRAPIN_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_TREK_HUD":
{
player.ship.hud = "TrekHud-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_TREK_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_TREK_HUD");
player.ship.removeEquipment("EQ_TREK_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_VENOM_HUD":
{
player.ship.hud = "venomhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_VENOM_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_VENOM_HUD");
player.ship.removeEquipment("EQ_VENOM_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_WOLF_HUD":
{
player.ship.hud = "wolfhud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_WOLF_HUD_SALE":
{
player.ship.hud = null;
player.ship.removeEquipment("EQ_WOLF_HUD");
player.ship.removeEquipment("EQ_WOLF_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_WOLFB_HUD":
{
player.ship.hud = "wolf-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_WOLFB_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_WOLFB_HUD");
player.ship.removeEquipment("EQ_WOLFB_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
case "EQ_WOLFMKI_HUD":
{
player.ship.hud = "wolfmk1-hud.plist";
missionVariables.CockpitBought = 1;
return;
}
case "EQ_WOLFMKI_HUD_SALE":
{
player.ship.hud = null
player.ship.removeEquipment("EQ_WOLFMKI_HUD");
player.ship.removeEquipment("EQ_WOLFMKI_HUD_SALE");
missionVariables.CockpitBought = null;
player.credits += 310;
return;
}
}
}