I've trying really hard to get an piece of OXP equipment damaged in combat for testing purposes.
In my tests I've fitted a new Jameson with the equipment, launched, fired on the coriolis and then let the vipers batter me....i'm about 15 attempts in and still it has not broken.
On the other hand if I fit docking computers, ecm and witchspace injectors and do the same, on most attempts one or more of these are damaged before I die.
So it there a preference in the code for certain items to be damaged first? Or is there a bug somewhere stopping OXP equipment being damaged?
Ta,
edit to add - I'm testing this on a 1.75.2 installation and the equipment.plist is below....
But it should not stop this OXP equipment being damaged. Once it is a script takes over to simulate a damaged HUD/scanner until the OXP equipment is repaired.
I know it works when I damage it via script - for testing it breaks when I switch to aft view.
this.viewDirectionChanged = function(view)
{
if (view == "VIEW_AFT")
{player.ship.setEquipmentStatus("EQ_HUD_IFF_SCANNER","EQUIPMENT_DAMAGED");}
}
Also another question - looking at the source I think that equipment can only be destroyed in Strict Mode.....why do we have a this.equipmentDestroyed handler then? Is it for the native mission scripts?
maybe it's because the HUD/scanner can't get/doesn't get damaged?
The above is a standard piece of equipment, at least as far as the game is concerned. It's not the HUD or scanner, it's just a piece of equipment that happens to make use of it.
In my experience OXP equipment can also get damaged as readily as trunk stuff can.
The destroyed question is interesting - it was my understanding too that equipment can only be destroyed in strict mode. I guess it's there for modifying trunk equipment or making new equipment that is strict-mode compatible (although quite how you'd do that given OXPs aren't loaded is a further interesting question).
I've been trying to decipher the source for this bit (not knowing Obj C) and it looks like the choice is random, but the chance of damaged equipment is more likely the more items of equipment you have got fitted. Makes sense I guess to help new Jamesons...
Capt. Murphy, why don't you just use the Debug Console for this? Run the game with the Debug Console, then when you want to damage the equipment, just execute:
I just like to double check in game play that the equipment can be selected by the code for damage (I've made wrong assumptions before!) , and was a bit surprised by what seemed to be a predilection for certain items if installed to be damaged in preference to others.
edit - OK - it's been successfully damaged in game combat - although only after on a hunch I changed the name to "EQ_BREAKABLE_HUD_IFF_SCANNER". Probably coincidence, but the hunch was that the internal list of installed equipment is alphabetical and that things earlier in the list may be more likely to be damaged. It did break first time out though after this change (and with about 1/2 dozen other equipment items installed).
I've heard the last items to be installed are more likely to be damaged.
Thargoid wrote:
The destroyed question is interesting - it was my understanding too that equipment can only be destroyed in strict mode.
It's worthy of considering a game change so that already-damaged equipment could be destroyed in regular mode...but giving undamaged equipment a chance to get damaged before destroying something. And any single hit could only damage/destroy 1 thing.
I've trying really hard to get an piece of OXP equipment damaged in combat for testing purposes.
In my tests I've fitted a new Jameson with the equipment, launched, fired on the coriolis and then let the vipers batter me....i'm about 15 attempts in and still it has not broken.
On the other hand if I fit docking computers, ecm and witchspace injectors and do the same, on most attempts one or more of these are damaged before I die.
I wish I'd read this thread 2 days ago... this is exactly the same experience I've had today. It doesn't matter how many equipment items I have, the game seems to have a definite preference for destroying the docking computers, rather than OXP equipment.
ADDENDUM: I've just been experimenting some more. It seems the Witchdrive Fuel Injectors cannot be damaged while in use? I.e. I provoked a group of ships to shoot at me, then flew straight at them on fuel injectors, a console message said fuel injectors damaged. But when I tried it a second time, expecting not to have fuel injectors available, they still worked. Upon docking, other equipment was listed as damaged but not the fuel injectors? Did I just mis-read the message in the rush? (This was with no OXP equipment items at all.)