Ship specific Cockpits

Home Forums Mods and POG Scripting Ship specific Cockpits

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #13862
    MajorTom
    Participant

    It is possible and even rather easy to do! Without pog!
    You can simply place the cockpit as a subsim in the ships .ini file.

    It does cause a slight preformance hit so I would recommend it for the SP game only. Don’t use the method on nps ships or the preformance hit will be even heavier.

    How?
    1)make a dummy setup.lws file that’s completly empty and put it in the avatars/cockpit folder replacing the one there.
    (That will cause all player ships to be without a cockpit.)

    2) Grab an ini file for a turret. (It has to be an type=icTurret file) Give the turret your cockpit avatar. Comment out the collision hull and the setup scene (so you have none). Change the bolt template in the turret ini to a nonexistant bolt.ini (so it won’t/can’t fire at anything.) The rest of the .ini contents can be left as they are and have (as far as I can tell) no effect, as it doesn’t fire anyhow.

    3) Place the modded turret .ini as a normal subsim on the crew null in the ships ini file. (make sure you keep the template numbers consecutive)

    Thats it. You now have a cockpit, including cockpit sway and everything. You can’t even tell the difference to the normal stock cockpit (except for a slight framerate hit because the cockpit is now rendered differently)
    Using this method you can give every player ship a different cockpit by using a different icTurret subsim. ini file, each with it’s own cockpit avatar. (once you have the different cockpit models).

    I’ve tried it using the starfury cockpit and the original cockpit it works just fine.
    Now you guys can get cracking making different cockpits if you want 😀

    The above requires no pog at all, but, you can switch the cockpit using pog if you want to. In this case you simply Subsim.Destroy the current cockpit subsim. Then Subsim.Create the new one (using the turret.ini with the appropriate avatar). After calling Sim.AddSubsim you just have to Subsim.Place it at the exact coordinates of the crew null.
    It happens at the bat of an eye, no delay! Suddenly the other cockpit is there.

    Iwar2 Multiplayer Fan Site


    [url=”http://webpages.charter.net/mjrtom/index.html”]Iwar2 Multiplayer Fan Site[/url]
    [img]http://webpages.charter.net/mjrtom/BANNER11.jpg[/img]

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.