Left 4 Dead 2

Left 4 Dead 2

ion's Vocalizer
Pluvillion Jul 19, 2023 @ 9:52am
Binding only one of a response-specific line?
Ellis has a "♥♥♥♥, run, man!" in PlayerRemarkc2m3_tracks01Mechanic (when running on the coaster in DC) that I find a perfect addition to the usual "Run!" vocalizer given the panic in Ellis' voice. However, the response also has four other voice lines which will fire with it. Is there any way to bind WorldC2M331.vcd alone?
< >
Showing 1-2 of 2 comments
ion  [developer] Jul 20, 2023 @ 4:29am 
No, you can't directly bind VCD files. If I understand correctly, you want to add that one voice line to existing "Run" responses. There are several ways to do it, but I would suggest you to use the following code (put it anywhere in imt_mechanic.txt):

Response my_PlayerYellRunMechanic { scene "scenes/Mechanic/WorldC2M331.vcd" //S-hit, run, man! } Rule my_PlayerYellRunMechanic { criteria ConceptPlayerYellRun IsNotCoughing IsMechanic IsTalk IsTalkMechanic IsWorldTalkMechanic ChanceToFire25Percent Response my_PlayerYellRunMechanic }

Take a note that I've added "my_" prefix (you can actually use any) for custom rule and response just to differentiate them from the existing ones from game's talker. Also, "ChanceToFire25Percent" condition means that this rule has 25% to trigger. I've put this percentage since "Run" has 3 voice lines, but you can change it to other value if you want to have higher or lower chance to trigger.

Since this is custom and server-side script, it will behave as any other "limited use" line. The easiest way to test any use it is on your locally hosted server.

If you did everything properly, using "Run" from radial menu will sometimes trigger the specific voice line you wanted.
Pluvillion Jul 20, 2023 @ 6:02am 
Ah. Gotcha. I guess I'll use the other variant. Thank you!
< >
Showing 1-2 of 2 comments
Per page: 1530 50