View Single Post
Old 08-10-21, 20:00   #129
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 33,152
Default

I'm using this script to prevent drawing of weapons while on a swingpole and when holding a torch:
Code:
; ---- disable drawing of weapon and look while swinging around ----
; ---- disable drawing of weapon while swinging around, while performing the custom torch animation, while holding any torch ----
TriggerGroup=  21, $8000, 467, $1E, $8000 + TGROUP_OR, 582, $1E, $8000 + TGROUP_OR, 584, $1E, $8000 + TGROUP_OR, 585, $1E, $8000 + TGROUP_OR, 16, $23  
				; condition that Lara is performing animation 467 (swingpole swing around), or 582, 584, 585 (torch animations), or it holding any torch.
TriggerGroup=  22, $2000, 51, $A, $2000, 51, $14  ; disable "draw weapon" forever (use other action/effect to disable it)
TriggerGroup=   23, $2000, 52, $A, $2000, 52, $14 ; enable "draw weapon" when conditions are not true
GlobalTrigger=  11, -1, GT_CONDITION_GROUP, -1, 21, 22, 23
I have to admit I haven't tested this in a long time, it's been in my script since forever.


*** EDIT ***
Just tested in one of the levels and she does not draw pistols when hitting 1 or space when holding a torch.
__________________
If it walks like a duck and if it quacks like a duck, it is a duck.

Last edited by Titak; 08-10-21 at 20:04.
Titak is offline   Reply With Quote