www.tombraiderforums.com

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

Reply
 
Thread Tools
Old 28-12-10, 21:21   #1
THOR2010
Archaeologist
 
THOR2010's Avatar
 
Join Date: Apr 2010
Location: New York
Posts: 2,328
Default Triggering audio with a weapon

Is it possible to trigger a certain audio number when you pull out a specific weapon?
__________________
My Current Projects: Legends of Ubar
THOR2010 is offline   Reply With Quote
Old 28-12-10, 21:27   #2
Soul
Relic Hunter
 
Soul's Avatar
 
Join Date: Jan 2009
Location: Austria (NOT Australia!!!) Gender: Male
Posts: 5,398
Default

Make a Triggergroup of these two...Should be working [If Lara is holding the grenadegun, the audio 035 is played a single time ]

1st trigger:
Exporting: CONDITION(35:0) for PARAMETER(5)
; <#> : Holding_GrenadeGun
; <&> : Lara. (Holds) Lara is holding/driving the <#>item
; (E) :
; Values to add in script command: $8000, 5, $23

2nd trigger:
Exporting: TRIGGER(35:0) for FLIPEFFECT(68)
; <#> : Sound. (CD) Play <&>CD track in (E) way on channel1
; <&> : AUDIO\035
; (E) : Single playback
; Values to add in script command: $2000, 68, $23

Could also work with an old CD trigger (then no Triggergroup is needed) but I recall some people saying, that it doesn't work for everyone in TRNG...
__________________
You're not just a regular moron. You were DESIGNED to be a moron.

Last edited by Soul; 28-12-10 at 21:32.
Soul is offline   Reply With Quote
Old 28-12-10, 22:54   #3
psiko
Explorer
 
psiko's Avatar
 
Join Date: Apr 2001
Posts: 819
Default

Quote:
Originally Posted by Soul View Post
2nd trigger:
Exporting: TRIGGER(35:0) for FLIPEFFECT(68)
; <#> : Sound. (CD) Play <&>CD track in (E) way on channel1
; <&> : AUDIO\035
; (E) : Single playback
; Values to add in script command: $2000, 68, $23
I think it will work even this way... you can even export this trigger as anim command and add it into the specific animation for that weapon with wadmerger animation tool ..if you want, you can trigger it any times you wish, just change the (E) value
psiko is offline   Reply With Quote
Old 28-12-10, 23:07   #4
KyleCroft
Archaeologist
 
KyleCroft's Avatar
 
Join Date: Dec 2008
Location: Canada
Posts: 2,176
Default

Would it not be possible to do it with just a combat trigger? Place the audio trigger, then the combat trigger above it?

EDIT: Nevermind, I thought you were asking something else. Sorry
KyleCroft is offline   Reply With Quote
Old 29-12-10, 06:26   #5
Raymond
Archaeologist
 
Join Date: Nov 2007
Posts: 1,689
Default

Sopulīs suggestion leads in the right direction, but use a GT with this condition instead (GT_CONDITION_GROUP and this condition or there is also a GT_LARA_HOLDS_ITEM and also use the flag FGT_SINGLE_SHOT_RESUMED). A CD-trigger isnīt usable here, because you canīt export it). Not sure, if you can export an animcommand in a gun-animation and therefore if this works out.
Raymond is offline   Reply With Quote
Old 29-12-10, 10:50   #6
psiko
Explorer
 
psiko's Avatar
 
Join Date: Apr 2001
Posts: 819
Default

Raymond, there are new flipeffects for sound that can be exported as anim commands or script commands, like this one:

Code:
Add a SetPosition anim command with following values:

Set Position [-24576] [68] [0]

Infos about exported trigger
-------------------------------------------------------------------------------
Exporting: TRIGGER(0:0) for FLIPEFFECT(68)
<#> : Sound. (CD) Play <&>CD track in (E) way on channel1
<&> : AUDIO\000
(E) : Single playback

AnimCommand: Frame=0  
-------------------------------------------------------------------------------
this one is to play the 000 audio track at first frame of that specific animation
psiko is offline   Reply With Quote
Old 29-12-10, 15:17   #7
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 22,474
Default

Raymond knows that.
He was talking about the old original CD trigger Soul referred to, which can also still be used in the NGLE. That trigger can't be exported.
__________________
If it walks like a duck and if it quacks like a duck, it is a duck.
Titak is offline   Reply With Quote
Old 29-12-10, 17:41   #8
psiko
Explorer
 
psiko's Avatar
 
Join Date: Apr 2001
Posts: 819
Default

Oh, sure, my mistake, sorry I haven't read properly last line on Soul's post
psiko is offline   Reply With Quote
Old 29-12-10, 18:05   #9
Delta
Student
 
Join Date: Jul 2007
Location: Italy Gender: Male
Posts: 171
Default

Quote:
Originally Posted by psiko View Post
Raymond, there are new flipeffects for sound that can be exported as anim commands or script commands, like this one:

Code:
Add a SetPosition anim command with following values:

Set Position [-24576] [68] [0]

Infos about exported trigger
-------------------------------------------------------------------------------
Exporting: TRIGGER(0:0) for FLIPEFFECT(68)
<#> : Sound. (CD) Play <&>CD track in (E) way on channel1
<&> : AUDIO\000
(E) : Single playback

AnimCommand: Frame=0  
-------------------------------------------------------------------------------
this one is to play the 000 audio track at first frame of that specific animation
You can't activate a triggergroup exporting the trigger as animcommand for weapons animations, it doesn't work, maybe because weapons animations aren't real Lara's animations: they affects only Lara's arms and hands, then you can't activate a set position animcommand ...
Delta is offline   Reply With Quote
Old 31-12-10, 12:08   #10
Raymond
Archaeologist
 
Join Date: Nov 2007
Posts: 1,689
Default

Yes, as I said, this is no problem. The GT-solution is still available for you.
Raymond is offline   Reply With Quote
Reply

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 16:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Copyright Đ2000 - 2013, www.tombraiderforums.com
Sponsored by www.tombraiderchronicles.com | Powered by Nimbus Hosting
Donations