26-02-18, 16:57 | #11 | |
Moderator
Joined: Dec 2011
Posts: 4,881
|
Quote:
(Anyway, Frame15 is only one moment, naturally, so the Resumed feature to force it to be activated only at a tick frame is not really useful, it will do it either way. ) |
|
26-02-18, 17:30 | #12 |
Moderator
Joined: Jul 2003
Posts: 33,359
|
Why do I keep missing such info!
Tried it and made some progress. Code:
; ---- show pistol in left holster when revolver is drawn Parameters= PARAM_WEAPON_HOLSTERS, 1, IGNORE, SIXSHOOTER_ITEM, 15, IGNORE TriggerGroup= 106, $028000, 1, $A5 TriggerGroup= 108, $2000, 340, $200D, $2000, 355, $1405 GlobalTrigger= 46, IGNORE, GT_ALWAYS, IGNORE, 106, 108, IGNORE Because that's the reason I started trying this C165 condition: to have a pistol in the left holster when drawing the sixshooter. Tried this before with scripting, but that failed. This C165 makes that easier I thought. However: Lara draws the sixshooter for the first time: the screen flashes and the holsters are those in the LARA_DOUBLE_MIP slot (with a pistol in the left holster). Lara holsters the sixshooter for the first time: the LARA_HOLSTERS_SIXSHOOTER appear, as it should. So far so good. But... Lara draws the sixshooter for the second time: the screen flashes but this time the LARA_HOLSTERS appear. Lara holsters the sixshooter for the second time: the LARA_HOLSTERS_SIXSHOOTER appear, as it should. Lara draws the sixshooter for the third time: the screen flashes and the holsters are those in the LARA_DOUBLE_MIP slot (with a pistol in the left holster). Lara holsters the sixshooter for the third time: the LARA_HOLSTERS_SIXSHOOTER appear, as it should. Lara draws the sixshooter for the fourth time: the screen flashes but this time the LARA_HOLSTERS appear. And so on. So the holsters alternate between the LARA_HOLSTERS version and those in the LARA_DOUBLE_MIP slot. And when I draw pistols, the holsters are also those of the LARA_DOUBLE_MIP slot, so with a pistol in the left holster. So I need a way to somehow reverse the effect and return to the normal holsters in between. But my mind draws a blank here... Last edited by Titak; 26-02-18 at 17:32. |
26-02-18, 18:12 | #13 |
Moderator
Joined: Dec 2011
Posts: 4,881
|
This is the general way how swaps work since TRLE.
I mean a swap not only a reference to a slot, but even a physical change between slots: Original: Slot A: object with X look Slot B: object with Y look Swap1: Slot A: object with Y look Slot B: object with X look Swap2: Slot A: object with X look Slot B: object with Y look Etc. I don't know, perhaps you should swap them back when she is holstering, so the proper meshes (=another swap) will be shown up when extracting the next time. |
26-02-18, 18:28 | #14 |
Moderator
Joined: Jul 2003
Posts: 33,359
|
Can't use that F340 trigger again, because I can't pick the LARA_HOLSTERS from the list to swap to.
This one doesn't seem to work either, at least not so far with my current setup: Code:
; Set Trigger Type - FLIPEFFECT 100 ; Exporting: TRIGGER(3088:0) for FLIPEFFECT(100) {Tomb_NextGeneration} ; <#> : Lara. (Mesh) Set single <&>Lara mesh with mesh got from (E)slot ; <&> : Objects in the Holsters ; (E) : SLOT 13 LARA_HOLSTERS ; Values to add in script command: $2000, 100, $C10 Actually, I've reached the same point as back then with my variables scripting setup. It's the alternating meshswap issue that stopped me from trying this any further. Couldn't figure out how to swap back to the holsters then either. On the other hand, what if I do manage to get it to work? How would that look when having uzi's selected before drawing the sixshooter? Lara would then have a pistol in the left holster instead of a uzi... Perhaps I should just leave it at this. At least I can confirm that C165 is working. |
26-02-18, 18:38 | #15 | ||||
Moderator
Joined: Dec 2011
Posts: 4,881
|
Quote:
I mean this trigger swaps, and the second activation swaps back etc: Quote:
Quote:
Anyway, I am not sure you need to keep swapping. I mean, after you swapped the proper object to the proper slot, then you will leave it there. It will be changed the next time only when you need the regular holsters again for the revolver. Quote:
Last edited by AkyV; 26-02-18 at 18:49. |
||||
28-02-18, 11:27 | #16 |
Member
Joined: May 2007
Posts: 20,454
|
Titak, you could check a variable to check if Lara has swapped holsters before she draws them?
|
28-02-18, 11:38 | #17 | |
Moderator
Joined: Jul 2003
Posts: 33,359
|
Hhm... I don't understand how that would help, because that would still leave the meshswap system that AkyV mentioned intact.
Quote:
|
|
28-02-18, 11:47 | #18 |
Member
Joined: May 2007
Posts: 20,454
|
It was in regress’s to it happening every other time. With a variable, the game will stop checking every other draw.
If the variable is 0 or you don’t have a bit set (whatever you prefer), when she draws a revolver, change the holster and set the bit to one/set the bit. So, every time she draws a holster, it won’t swap. Again, when she draws the pistols, you do the opposite - check if the variable is 1, of if a bit has been set, then change the holster back, and reset the variable. |
28-02-18, 12:28 | #19 |
Moderator
Joined: Jul 2003
Posts: 33,359
|
Hmm... I can look into that.
I was hoping I wouldn't have to use a variable anymore because I tend to use quite a few of them in my levels these days. But it might work. I'll come back asking questions if I can't figure it out. |
08-03-18, 16:05 | #20 |
Member
Joined: Jul 2010
Posts: 858
|
I have two questions about the weapons:
Is it possible to have a crossbow with included and not detatchable lasersight? Is it possible to have a shotgun with a single ammo pack available? |
Thread Tools | |
|
|