Wolfy wrote: Sounds risky, especially if modded ships start showing up, as their code may not be compatible.
Agreed. I think for that and other reasons we want an attribute that prevents a ship class from showing up in the intro. And we probably also need a function (or something) that tells you whether you are running in the intro screen. [Maybe some attribute of the system.]
How about just (if gplayership ... )? Because the intro screen is the only place where the game is running that gplayership is nil except the few frames that run after death, and nobody will notice recurring events not running then.
So from what I can tell, the only thing that was changed was the CSC base, right? I alread copied ~ 1500 lines to add just one weapon in my override, so I don't want to lose functionality when playing with the MSUniverse vanilla Override.
gPlayerShip is most likely not set at all in the intro screen, so checking it would lead to an error, not just a failed conditional. So, gPlayerShip would have to be set to nil in the intro screen.
I bet I can get around that by making an event in a playership base class onDestroy that sets some global value or something so that the ships have in their conditionals (if (not (and (eq gPlayerShip Nil) (neq gPlayerStatus "dead"))) ...) or something along those lines
(shpOrder gPlayership 'barrelRoll)
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
I'm pretty sure there's nothing you can do that will crash the game on player death that wouldn't also crash the game if done in the intro screen so there's no point to mucking around with base classes there.
Atarlost wrote:I'm pretty sure there's nothing you can do that will crash the game on player death that wouldn't also crash the game if done in the intro screen so there's no point to mucking around with base classes there.
Its not that it would would crash the game on both; its that disabling on player death would crash the game.
And I'm using playership base classes anyways for other stuff.. so...
(shpOrder gPlayership 'barrelRoll)
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Well, I don't actually know that it would, as I haven't programmed in the Tactical AI controllers, but given the number of things that would all need to be shut down...
At any rate its a moot point since I found a workaround to keep them running properly.
(shpOrder gPlayership 'barrelRoll)
<New tutorials, modding resources, and official extension stuff coming to this space soon!>