18-02-19, 17:39 | #13231 | |
Member
Joined: Mar 2018
Posts: 632
|
A solution for your problem...
Quote:
There is one solution for you which I suppose it can help you with your issue. This is how the algorithm works: We need to allocate a variable to check for us whether a flyby camera is active or we are in our Inventory/Pause Menu. Whenever the variable is set to 1, it means that the game is busy doing some operations hence our other TriggerGroups in action must be suspended. After the operation is complete ( I mean when the player has exited Inventory/Pause Screen and/or the flyby scene has been broken/ended ), we will set the value to 0, which means there are no more operations to wait for. Here, I have used Local Byte Delta4 variable, but if you have already occupied this variable, you can change the code the way you want! Code:
GlobalTrigger= 1 , IGNORE , GT_GAME_KEY2_COMMAND , 65536 , IGNORE , 1 , 2 GlobalTrigger= 2 , IGNORE , GT_GAME_KEY2_COMMAND , 8192 , IGNORE , 1 , 2 GlobalTrigger= 3 , IGNORE , GT_CONDITION_GROUP , IGNORE , 3 , 1 , 2 TriggerGroup= 1 , $2000, 232, $14B TriggerGroup= 2 , $2000, 232, $4B TriggerGroup= 3 , $8000+TGROUP_AND, 13, $34 , $8000+TGROUP_AND, 10, $5 Maybe this question might pop up in your mind that why do I have to use a GT_GAME_KEYX_COMMAND? Why can't I use other condition triggers to check for input? The answer is that when the inventory/pause menu is prompted, the game's background operations such as rendering the scene, getting other inputs, etc. will be disabled 1 frame before the inventory/pause menu is shown, but here we need a command that has A VERY HIGH PRIORITY which even works in the suspension frame, and as a result, GT_GAME_KEYX_COMMAND is the best choice. So, the code works like this: GlobalTrigger with ID 1 waits for "Pause" key input from the player. As soon as the mapped button is received from our controller device, it will set the Local Byte Alfa4 value to 1. If not TRUE, it will revert it back to 0. GlobalTrigger with ID 2 waits for "Inventory" key input from the player. As soon as the mapped button is received from our controller device, it will set the Local Byte Alfa4 value to 1. If not TRUE, it will revert it back to 0. GlobalTrigger with ID 3 checks for miscellaneous conditions, such as if there is a flyby sequence in progress or if Lara is dying. TriggerGroup with ID 1 sets the variable's value to 1. TriggerGroup with ID 2 sets the variable's value to 0. TriggerGroup with ID 3 is our condition group. HOW TO MAKE OUR CODE WORK? Simple! Just add this condition trigger to the beginning of each TriggerGroup you want to control its suspension while the game is busy doing some operations ( such as player is in pause menu/inventory and other conditions you would like to be there! ): Code:
$8000+TGROUP_AND, 75, $2B , ;OTHER COMMANDS... ; Exporting: CONDITION(43:62) for PARAMETER(75) {Tomb_NextGeneration} ; <#> : Local Byte Delta4 ; <&> : Variables. The <#>Numeric Variable is = than (E)Value ; (E) : Value= 0 ; Values to add in script command: $8000, 75, $2B If you had any problems, let me know and I would be grateful to help you! Last edited by TheLostSecret; 18-02-19 at 18:51. Reason: Updating Code |
|
19-02-19, 10:11 | #13232 |
Member
Joined: Apr 2010
Posts: 806
|
Is it possible to make enemy not turn towards Lara? I had to put monkey in small_scorpion slot because baboon slot causes savegame crashes. It performs only idle animation so it stays on spot. Only problem is that it turns towards Lara and it looks a bit silly.
|
21-02-19, 09:41 | #13233 |
Member
Joined: Jul 2012
Posts: 4,286
|
How would one go about setting up non-pickup multi-use save crystals like in Tomb Raider Anniversary Retold?
Run up to animating object -> face object -> press action -> Lara animation plays -> save window pops up -> either use or close -> second Lara animation plays to return to normal state. Last edited by Boobandie; 21-02-19 at 11:25. |
21-02-19, 10:41 | #13234 |
Member
Joined: Jul 2010
Posts: 858
|
Id I remember correctly, Ahmet and Mutant don’t do this 😊
|
21-02-19, 14:58 | #13235 |
Member
Joined: Nov 2007
Posts: 7,582
|
Having a REALLY annoying issue with it stopping me from TRLE'ing at all.
So I am using NGLE and made a room - textured and places a light bulb - all fine. However, when I move the camera using the mouse (to do something like place an object or whatever) the editor crashes.. and it doesn't make a backup save.. so I lost the work Could have sworn I set the resolution and stuff to prevent this crash on modern systems, but it seems to be doing it anyway. Disabled and enabled CRS - nothing changes |
28-02-19, 10:02 | #13236 |
Member
Joined: May 2001
Posts: 1,275
|
I’m using the electric cables from TR5 Submarine again and was sure that this time I could add electric sparks to their meshes, such as they had in the original level. However, it turns out that ADD_EFFECT does not offer this particular option. Is there another way of adding electric sparks to a mesh?
|
28-02-19, 15:30 | #13237 | |
Member
Joined: Apr 2012
Posts: 10,346
|
Quote:
|
|
28-02-19, 19:42 | #13238 | |
Member
Joined: Jan 2012
Posts: 1,320
|
Quote:
Be careful with that though, because if there is already swapped meshes you can encounter problems with corrupted saves. Edit: Can anybody help with condition where the game must check if there is some static nearby, with collision, but Lara does not touch it at the moment? Is this condition possible at all either with plugins or without them? Last edited by A_De; 01-03-19 at 08:21. Reason: A question appeared |
|
01-03-19, 12:46 | #13239 |
Member
Joined: Apr 2012
Posts: 10,346
|
Why can't I find a flipeffect to set lara on flames?
|
01-03-19, 13:08 | #13240 |
Member
Joined: Dec 2008
Posts: 13,126
|
|
Thread Tools | |
|
|