*phaser/plasma.hob -> * = shiplist.sst +0x11A (-> esp+20 is start of shiplist.sst entry in sub_496340)
*plasma.hob
Code: Select all
trek.exe at 0x95759 replace 0xF bytes with:
8A 84 24 3A 01 00 00 90 90 90 90 90 90 90 90
asm code:
00496359 8A8424 3A010000 MOV AL, [ESP+13A]
00496360-496367 90 NOP
Code: Select all
trek.exe at 0x957BF replace 0xD bytes with:
8A 84 24 3A 01 00 00 90 90 90 90 90 90
asm code:
004963BF 8A8424 3A010000 MOV AL, [ESP+13A]
004963C6-4963CB 90 NOP
Code: Select all
trek.exe at 0x95406 replace 0x27 bytes with:
03 C2 8B D4 E8 51 28 09 00 8A 84 24 1B 01 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
asm code:
00496006 03C2 ADD EAX, EDX // ds:597864 entry of the firing ship
00496008 8BD4 MOV EDX, ESP
0049600A E8 51280900 CALL 528860 // shiplist.sst entry to [edx]
0049600F 8A8424 1B010000 MOV AL, [ESP+11B]
00496016-49602C 90 NOP
Remember, although torpedoes can be oblong, they must be mirror symmetric, since depending on the last selected perspective i.e. not always the firing ship resp. target.thunderchero wrote:You could also use different torpedeo types (hob) as below
But I just discoverd some code that seems to control the 3D animations. So maybe we can fix the issue in future versions (and even better the plasma ).
The code effectively enables all the requests, but it's not UE ready (yet) and also older ships keep their old weapon animations until their next upgrade (appears realistic).geon wrote:What I'm asking is this. Is it possible, using the UE, to have, say h phaser 1 (blue) assigned to one ship and h phaser 2 (orange) assigned to another ship. And will the game be able to differentiate these, or will just one colour still be assigned to the whole Federation?
Take another more complicated example.
For Cardassians, c phaser 1 (purple for the early compression beams), c phaser 2 (orange for phasers some ships have), c phaser 3 (later gold disruptor beams).
Would the current game recognise some ships with the purple beams and some with the orange if I assigned them to different ship models?
And would it upgrade all to the yellow beams at a higher tech level?
Code: Select all
NAME: Ship Specific Weapon Animations (shiplist.sst)
DESC: Allows different colour weapons within empire fleets (even for upgrades e.g. quantum for later federation, red for early klingons) and for minors/monster.
DESC: Minor/stolen keep their original weapons when joining other fleets.
AUTHOR: Spocks-cuddly-tribble
URL: https://www.armadafleetcommand.com/onscreen/botf/viewtopic.php?p=32043#p32043
# *plasma.hob -> * prefix = shiplist.sst +0x11A
>> 0x95759 66 83 FB 05 73 5C 31 C0 88 D8 E8 18 48 FA FF
<< 0x95759 8A 84 24 3A 01 00 00 90 90 90 90 90 90 90 90
# *phaser.hob -> * prefix = shiplist.sst +0x11A
>> 0x957BF 66 83 FB 05 73 57 88 D8 E8 B4 47 FA FF
<< 0x957BF 8A 84 24 3A 01 00 00 90 90 90 90 90 90
# *photon.hob -> * prefix = shiplist.sst +0x11B
>> 0x95406 66 8B 84 02 DC 01 00 00 25 FF FF 00 00 89 84 24 CC 01 00 00 83 F8 05 7D 47 31 C0 8A 84 24 CC 01 00 00 E8 53 4B FA FF
<< 0x95406 03 C2 8B D4 E8 51 28 09 00 8A 84 24 1B 01 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90