www.tombraiderforums.com

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

Closed Thread
 
Thread Tools
Old 06-03-11, 21:17   #1
Delta
Historian
 
Delta's Avatar
 
Join Date: Jul 2007
Location: Italy
Posts: 270
Default TRNG - Fix Binoculars Bug

TRNG - Fix Binoculars Bug
by Delta

In the PC version of TR4, unlike the PSX version, there was the binoculars bug: if you use the binoculars in front of a mirror you will see Lara's reflection in standard pose without the binoculars. If you are using TRNG and you want to fix this bug in your level, follow this tutorial.

Requirements:
-TRNG Engine (the tutorial is now based on the 1.2.2.7 dll, but it should work good also with the previous version)
-NG Center
-MESHSWAP2 object in you wad (Lara with binoculars in her hands, you can find it in coastal wad)
-Animation 441 (Lara looks through the binoculars, this is contained in Lara's animations of the coastal wad)


With this tutorial you will activate Lara's animation 441 while you look through the binoculars.
By default, with that animation you can look only in left and right directions, if you want to look in every direction you must set the StateID 2 for that animation.
If you're using the 1.2.2.6 dll, when you look down you will see Lara's head from the binoculars, update to the 1.2.2.7 dll to fix this.

After that, open the NG Center and insert these script commands in the script part of your level.
WARNING: you must insert free IDs for all TriggerGroups and GlobalTriggers, if you used others of these commands, probably the IDs I put into the script are wrong. The colors could help you to know which numbers are associated and that must be the same.

Code:
GlobalTrigger=			1, FGT_SINGLE_SHOT_RESUMED, GT_USING_BINOCULAR, 128, IGNORE, 1, IGNORE
TriggerGroup=			1, $2000, 80, $B9, $2000, 100, $560A
					;Force Animation 441, Lara Right Hand from MESHSWAP2
GlobalTrigger=			2, FGT_SINGLE_SHOT_RESUMED + FGT_NOT_TRUE, GT_USING_BINOCULAR, 128, IGNORE, 2, IGNORE
TriggerGroup=			2, $2000, 77, $67, $2000, 100, $80A
					;Force Animation 103, Lara Right Hand from LARA_SKIN
Now the bug is fixed, but there are still some imperfections, for example if you use the binoculars when Lara is on a timed trapdoor and in front of a mirror, you will see Lara's reflection that falls without holding the binoculars near the eyes (but you are looking through the binoculars). Then if you want that the binoculars screen will be untriggered when Lara falls down, add these script commands:

Code:
GlobalTrigger=			3, FGT_SINGLE_SHOT_RESUMED, GT_USING_BINOCULAR, 128, 3, 4, IGNORE
TriggerGroup=			3, $8000, 34, $1E
					;Lara Animation = 34?
TriggerGroup=			4, $2000, 100, $80A, $2000, 53, $A
					;Lara Right Hand from LARA_SKIN, Simulate key Draw Weapon
The same imperfection happens when an enemy touchs Lara, and also in this case there is a solution:

If there are mortal enemies in the level:
Code:
GlobalTrigger=			5, FGT_SINGLE_SHOT_RESUMED, GT_USING_BINOCULAR, 128, 6, 4, IGNORE
TriggerGroup=			6, $8000, 0, $1C
					;Is Lara touching mortal creatures?
If there are guides or friends in the level:
Code:
GlobalTrigger=			6, FGT_SINGLE_SHOT_RESUMED, GT_USING_BINOCULAR, 128, 7, 4, IGNORE
TriggerGroup=			7, $8000, 2, $1C
					;Is Lara touching guides or friends?
If there are immortal enemies in the level:
Code:
GlobalTrigger=			7, FGT_SINGLE_SHOT_RESUMED, GT_USING_BINOCULAR, 128, 8, 4, IGNORE
TriggerGroup=			8, $8000, 1, $1C
					;Is Lara touching immortal creatures?
Finally you can build your script.

If you find other errors or imperfections, or if you have any questions, additional info, contact me
By Delta.

Last edited by Delta; 11-09-14 at 18:37.
Delta is offline  
Closed Thread

Bookmarks

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 17:43.


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