[TC] Gaming Forums
[TUTORIAL] Horn/Siren Changing - Printable Version

+- [TC] Gaming Forums (https://forum.city-driving.co.uk)
+-- Forum: General Information (/forumdisplay.php?fid=1)
+--- Forum: General Discussions (/forumdisplay.php?fid=4)
+---- Forum: Tutorials & Guides (/forumdisplay.php?fid=48)
+---- Thread: [TUTORIAL] Horn/Siren Changing (/showthread.php?tid=91)

Pages: 1 2


Horn/Siren Changing - Ash - 2011-10-03 20:33

Hello All! Smile

In the servers, you are allowed allocated use of two horns.

HORN5: This horn is allocated for a Wail Siren which is to be used as the main siren throughout a pursuit/blue light run.

HORN4: This horn has been allocated as a piercer/two tone/yelp siren which is to be used when passing cars in dangerous situations and when driving on wrong side of the road.

Please read the rules http://www.city-driving.co.uk/rules for further clarification about sirens. You can download a recommended siren pack from [TC]'s website at http://www.city-driving.co.uk/downloads

Now, down to the nitty gritty. This tutorial is based on the fact you are using a program such as LFS Cops, LFS Strobe or TCLights to control the siren on/off function.

Throughout this tutorial, anything which is formatted in bold, is customizable to your specific setup within LFS.

You will need one F Key (either Ctrl F1-9 or Alt F1-9).

For this script, i am using Ctrl F5 as my chosen 'hot key' to control the flicking between Wail (HORN5) and my Yelp (HORN4).

You will need to open up Notepad (or similar) and create two files.

We will call the first file wailtoyelp.lfs Inside your Notepad document, you will need to type the following.

Code:
//This script will change from HORN5 to HORN4
/shift H
/shift H
/shift H
/shift H
/ctrlf 5 /run yelptowail

The /ctrlf 5 /run yelptowail programs the key to change to run the next script, therefore it makes it a 'scrolling key'.

Save this file as wailtoyelp.lfs - Please ensure you do not save as a txt file, but change it to .lfs!

The second document has to be called what you entered into the command line within the last script, therefore our new file will be called yelptowail.lfs.

Enter this into the new document:

Code:
//This script will change from HORN4 to HORN5
/shift H
/ctrlf 5 /run wailtoyelp

As you can see, the command line /ctrlf 5 /run wailtoyelp has now programmed the key to run the original script, therefore it will now just alternate between the two sirens!

Enjoy people, please feel free to ask any questions! Smile

Ash



First, its only possible using Logitech Profiler, unless you create your own script, which i can do Tongue

You will need 1 spare button, 10 minutes of your time.

First, find your button on the controller, this will operate the flicking between horns.

[Image: EndResult.png]
You can see here in mine, i have programmed it to me left wheel button.

Once you have found your button, click it, go 'Select Command', then Create Command.

Call it something like 'Switch Horn 4 Times'.

[Image: SwitchHorn4.png]

Press Record, and press buttons in this sequence:
  • Press & Hold ANY Shift, it doesnt have to be right shift.
  • Whilst still holding shift, press H, then release it immediatly.
  • Compelete the following instruction 4 times.

You should have in your profiler, the following:
  • Shift Press
  • H Press
  • H Release
  • H Press
  • H Release
  • H Press
  • H Release
  • H Press
  • H Release
  • Shift Release
, then you need to press stop recording.

Next step, is to get the button to change horns once.

[Image: SwitchHorn1.png]

Press record, and press the buttons found in the sequence.
  • Any shift, press it, and hold it down
  • Then press, and immediatly release H
  • Then let go of the shift, and click stop

Now we have the main process out of the way, the last thing to do, is we need to combine the two sequences together.
We can do this, using something called a 'Cycling Command'. A cycling command allows you to program one button to do more than one thing on one press.

[Image: CyclingCommand.png]

Click the button in the profiler again, this will bring up the drop down menu. Select 'Select Cycling Command', and 'New Cycle Command'.
You will see a new box appear.

[Image: SwitchSirenCycle.png]

From the left side of that box, is a list will all your commands, locate 'Change Horn 4 Times' first, then locate 'Change Horn 1 Time' as shown above in the image.

Call it a reasonable name, such as siren change or something similar.
You then need to click 'Ok', and off you go.

In Live For Speed. Make sure you have the horn selected as 'Horn 5' first, you can toggle through the sounds ingame by using Shift and H. Once you have made sure it is on Horn 5, you can then press your new 'Siren Change' button. Whilst doing this, you can leave the siren on, the change will then make the siren go to Horn 4, which is a 'Piercer' sound. This sound is intended for use at busy junctions to warn members of the public that you are there, the horn should only be used ideally for no more than 3-5 seconds.
If you do not have the 'Piercer' siren yet, you can download it from the attachment in this post.

Happy Driving!




EDITED - LOGITECH PROFILER FILE ADDED.

http://www.filedropper.com/publicsirenonly
Link updated by Bez 7/5/2015

PLEASE ENSURE THAT YOU DO NOT USE TCLIGHTS WITH THIS SETUP. You may use other software such as LFSStrobe by Tommy or LFSCops, as they do not operate the siren.

In game, you MUST have your siren binded to PageUP for this to work.


RE: Horn Changing Tutorial - BP - 2011-10-03 20:54

Good guide! Will definitely help the newbies. Wink


RE: Horn Changing Tutorial - Pete - 2011-10-04 00:31

Nice guide, stickied. Thumbup1


RE: Horn Changing Tutorial - Elmo - 2011-10-04 22:37

* Elmo takes all the credit for the original script way back when Wink


RE: [TUTORIAL] - Horn Changing - Dylan - 2011-11-20 23:23

i can't get this to work. i assume you're supposed to put both of those in the script folder.. i did that, and they will not do anything.. what do i need to do?

nevermind, got it.. i think this tutorial needs some clarifications/revising.. lol


RE: [TUTORIAL] - Horn Changing - McGherkin - 2011-11-21 20:05

You need to go into LFS and assign Ctrl+F5 to:

/run wailtoyelp


RE: [TUTORIAL] - Horn Changing - Ash - 2011-11-21 20:50

Yep, sorry i forgot to add that Smile


RE: [TUTORIAL] - Horn Changing - Aus - 2011-11-22 19:24

Thanks! Helped me out bigtime


RE: [TUTORIAL] - Horn Changing - Lewis - 2011-11-22 21:33

Works great, thank you.


RE: [TUTORIAL] - Horn Changing - B!ll - 2011-11-23 09:10

Nice guide ash thx for this. I searched this long time.
But i have one question, is possible change hot key at F4 (only F4)? Cuz i got (in lfs) script error when i change this 2 files for hot key F4. On combination ctrl + F1-9 or alt + F1-9 all work perfect.

(edit: i cant type Wink rapaired)


RE: [TUTORIAL] - Horn Changing - KaraK - 2011-11-23 14:47

Yeah, you can't use that with the normal F keys, only the ctrlf or altf keys Sad


RE: [TUTORIAL] - Horn Changing - ZsoLT - 2011-11-23 17:35

"Could not load file : data\script\wailtoyelp.lfs"

Why?


RE: [TUTORIAL] - Horn Changing - Ash - 2011-11-23 18:17

You didnt add a . after .lfs did you? Because in my first post i accidently put that.


RE: [TUTORIAL] - Horn Changing - ZsoLT - 2011-11-24 17:09

(2011-11-23 18:17)Ash Wrote:  You didnt add a . after .lfs did you? Because in my first post i accidently put that.

No.


RE: [TUTORIAL] - Horn Changing - ZsoLT - 2011-11-25 19:28

Any idea? :/


RE: [TUTORIAL] - Horn Changing - Elmo - 2011-11-26 17:46

(2011-11-25 19:28)ZsoLT Wrote:  Any idea? :/

Check the file is actually there, named correctly and that you have file extensions visible (for those with extensions hidden, it's easy for files to be called something like script.lfs.lfs)


RE: [TUTORIAL] - Horn Changing - McGherkin - 2011-11-26 17:52

(2011-11-26 17:46)Elmo Wrote:  (for those with extensions hidden, it's easy for files to be called something like script.lfs.lfs)

I'd say it's probably been saved as wailtoyelp.lfs.txt


RE: [TUTORIAL] - Horn Changing - Pete - 2011-11-26 18:21

Either way, if so, set your folder options to show extensions.


RE: [TUTORIAL] - Horn Changing - ZsoLT - 2011-11-27 17:45

Yeah, it was wailtoyelp.lfs.txt, I only saw the ".txt" in Total Commander. Ty guys!


RE: [TUTORIAL] - Horn Changing - Seven - 2013-01-26 11:44

Okay, I know soemone will punch me in the face for reviving a year old thread but I'm having some trouble in the profiler... I have the script set up exactly how Ash has it, I run LFS through the profiler, and under Specific Game Settings I have ticked 'Use Special Game Settings'. The siren doesn't work with this ticked or not ticked, so I oficially have no idea what's going on. Little help?