www.tombraiderforums.com  

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Level Editor > Next Generation Level Editor

Reply
 
Thread Tools
Old 21-06-22, 11:29   #15361
l.m.
Historian
 
Join Date: Feb 2009
Location: Iserlohn
Posts: 357
Default

Self Answer:

I recognize that Lara will always positioned to a 0 dif of the HOrientDif.
Before I had rotatating the NPC in wadtool Lara rotating while she positioning to it. Both faces look after positioning into that same direction instead of looking each other.

I can fix it with rotating the NPC Object in Wadtool (180 degrees).
Then ingame the HOrientDif is not 32.768 .. but 0.

With this rotating and this Test Position it does work:

TestPosition= 2, IGNORE, ANIMATING3_MIP, 0-512, 0+512, 0-512, 0+512, -512-512,-512+512,-12000,12000, 0, 0, 0, 0
Animation= 444,KEY1_ACTION,IGNORE,FAN_ALIGN_TO_ENV_POS,ENV_IT EM_TEST_POSITION,2,IGNORE,2


The -12000 and 12000 is the "tolerance" of side angles from Lara to the NPC.

But - I wonder that if this is a valid (or right) solution...
How can I positioning Lara correctly if the other Object has not a 0 HOrientDif, but instead of that 32768 (180 degrees) like in that example above?
__________________
Greetings, :-) l.m. :-)
l.m. is offline   Reply With Quote
Old 21-06-22, 13:58   #15362
Richard_trle
Explorer
 
Richard_trle's Avatar
 
Join Date: Aug 2003
Location: Brazil
Posts: 816
Default

I've noticed something in the TestPosition, are you supposed to put actual math in the parameters? Does TRNG actually support it?
Richard_trle is offline   Reply With Quote
Old 21-06-22, 14:01   #15363
l.m.
Historian
 
Join Date: Feb 2009
Location: Iserlohn
Posts: 357
Default

Quote:
Originally Posted by Richard_trle View Post
I've noticed something in the TestPosition, are you supposed to put actual math in the parameters? Does TRNG actually support it?
Yes TRNG supports it, it is supposed for tolerance values for each DistanceMin and DistanceMax Values.
__________________
Greetings, :-) l.m. :-)
l.m. is offline   Reply With Quote
Old 21-06-22, 15:51   #15364
Richard_trle
Explorer
 
Richard_trle's Avatar
 
Join Date: Aug 2003
Location: Brazil
Posts: 816
Default

Oh nice, we learn something new every day

I've also noticed this

ENV_IT EM_TEST_POSITION

Maybe it is a format issue, but ain't it suposed to be ENV_ITEM_TEST_POSITION?

Can you also test something for me? What happens if you remove the FAN_ALIGN_TO_ENV_POS (simply IGNORE it)?

ty
Richard_trle is offline   Reply With Quote
Old 21-06-22, 20:01   #15365
l.m.
Historian
 
Join Date: Feb 2009
Location: Iserlohn
Posts: 357
Default

Quote:
Originally Posted by Richard_trle View Post
Oh nice, we learn something new every day

I've also noticed this

ENV_IT EM_TEST_POSITION

Maybe it is a format issue, but ain't it suposed to be ENV_ITEM_TEST_POSITION?

Can you also test something for me? What happens if you remove the FAN_ALIGN_TO_ENV_POS (simply IGNORE it)?

ty
It was a format issue, in my script it is named correctly:
MultEnvCondition= 11,ENV_ITEM_TEST_POSITION,20,IGNORE,ENV_CONDITION_ TRIGGER_GROUP,80,IGNORE

Your question:
If I type IGNORE instead of FAN_ALIGN_TO_ENV_POS
the TestPosition is also true, but Lara does not position herself (like she does if she wants to pull or push a pushable).
__________________
Greetings, :-) l.m. :-)
l.m. is offline   Reply With Quote
Old 22-06-22, 04:56   #15366
Richard_trle
Explorer
 
Richard_trle's Avatar
 
Join Date: Aug 2003
Location: Brazil
Posts: 816
Default

While analyzing your script, I can think of two factors. First is Horizontal Orientation, I don't know, maybe I'm mistaken, but that range seems a bit too large to me (-1200,1200). I usually test something like $7000,$7100. In the reference it says the calc done in there should be Lara.HorizonalOrient – Item.HorizontalOrient also presenting small gaps between the values, if these parameters are wrong, Lara would approach the item, but it would be in Lara's wrong side, maybe that is the case. I'm not 100% certain, but you can test something like 1200,1000? Maybe?

Another thing that could be taken into consideration is the ROrient (two last parameters), while they barely change, they set the rotation orientation between the object and Lara, maybe you can try change it to be like -180,180 to see if it helps. I hope I'm not saying something stupid and actually helping.

Could you please check those two and see if it help. I hope anything comes out of it.

Last edited by Richard_trle; 22-06-22 at 05:14.
Richard_trle is offline   Reply With Quote
Old 22-06-22, 09:07   #15367
SrDanielPonces
Relic Hunter
 
SrDanielPonces's Avatar
 
Join Date: Apr 2012
Location: Run the Gauntlet
Posts: 9,950
Default

maybe this will help:

I remember doing a bunch of illustrative images on Lara's POV coordinates when I was using those myself, but seems I lost them.

Maybe this also helps, but it was for Addeffect purposes:

SrDanielPonces is offline   Reply With Quote
Old 22-06-22, 14:19   #15368
AkyV
Moderator
 
Join Date: Dec 2011
Location: Hungary
Posts: 4,651
Default

https://www.tombraiderforums.com/sho...ostcount=21119
AkyV is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:01.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.