General > User modifications

aircraft mod

(1/4) > >>

Noordung:
so if i want to make new aircraft what do i have to write about it?
aircraft craft_drop_raptor
{
   param {
      speed      13
      maxspeed   16
      shield      0
      ecm         80
      damage      250
      accuracy   100
      range      220
      antimatter   40
   }
   name      "_Raptor-class Combat Transport"
   defaultname   "_Raptor"
   type      "transporter"
   model      "geoscape/drop_raptor"
   price      30000
   building   building_hangar
   numteam      10
   size      2
   image      "geoscape/air_dropship"

   radar {
      range   10
      trackingrange   14
   }

   slot {
      type      "weapon"
      position   "nose_center"
      size      "light"
   }
   slot {
      type      "weapon"
      position   "wing_left"
      size      "medium"
   }
   slot {
      type      "weapon"
      position   "wing_right"
      size      "medium"
   }
   slot {
      type      "electronics"
      position   "wing_left"
   }
   slot {
      type      "electronics"
      position   "wing_right"
   }
}
i saw this, but where is price for alien materials? or there are other files?

ShipIt:
alienmaterials are defined in otheritems.ufo
aircraft defs are in components.ufo

You will also need a model to be shown in the ufopaedia and battlescape, another low-poly one for the geoscape. And map tiles.

Noordung:
thx.

battlescape model? but there are no mission on crashed interceptors? so do i really need battlescape version?

geever:
I'm afraid that adding a new aircraft is not that easy...

One thing you missed is the tech entry (see research.ufo)

But also I remember some nasty enums in the C code wired-in for aircraft types which makes it impossible to add new planes without changing the sourcecode. :(

-geever

Noordung:
i see... so would it be possible to change that code so more aircrafts could be added later?

Navigation

[0] Message Index

[#] Next page

Go to full version