Thread: Spotlights
View Single Post
Old 07-19-2004, 11:27 AM   #19 (permalink)
DCoder
Senior Member
 
Join Date: Jul 2003
Location: Lithuania, Central Europe
Posts: 1,057
Send a message via MSN to DCoder
Default

Yes, I have the TS (FS 2.03) version. I've just looked at it, and I've noticed something odd:
In YR, look at any tag requiring a number, it always contains
Code:
mov ***, dword ptr [007F0C9C]
in the end. I would think it points to some constant offset which is used for something in every single tag. Yet I'm sure this tag requires an integer, as it calls the same routine as other integer tags, and not the one used on real tags.
In TS, look at any other tag requiring a number, it contains the same instruction with different offset. SpotlightRadius is the only one so far which omits it, the one after it (RevealTriggerRadius) carries it twice - in the start and in the end - instead. Any thoughts on why would it be so exclusive?

I will d/l all the patches for ra2 and yr and try to compare each version. Maybe that'll show something else.


Regarding HasSpotlight:
YR:
Code:
:0045FEEC 68A0AE8100              push 0081AEA0
:0045FEF1 56                      push esi
:0045FEF2 8BCF                    mov ecx, edi
:0045FEF4 E8F7960C00              call 005295F0
:0045FEF9 8D9D0C0E0000            lea ebx, dword ptr [ebp+00000E0C]
:0045FEFF 8D542414                lea edx, dword ptr [esp+14]
:0045FF03 53                      push ebx
TS:
Code:
:00440AFB 68404A6F00              push 006F4A40
:00440B00 53                      push ebx
:00440B01 8BCE                    mov ecx, esi
:00440B03 E838D60900              call 004DE140
:00440B08 8DBD84040000            lea edi, dword ptr [ebp+00000484]
:00440B0E 8D4C2410                lea ecx, dword ptr [esp+10]
:00440B12 57                      push edi
It seems that tag hasn't changed much.

Edit: now that I think more, when I NOPed that extra operation, I most probably ztyped up something with the revealtriggerradius and not noticed it, since it's only used in missions.

Edit #2: people recommended this tutorial to me, according to them, it's the best and easiest to understand.
DCoder is online now   Reply With Quote