Jump to content


Air horn script


  • This topic is locked This topic is locked
126 replies to this topic

#61 Guest_[SAP]Francis_*

Guest_[SAP]Francis_*
  • Guests

Posted 14 July 2008 - 04:18 PM

There is only this. It's German, but the codes are in English, so it should be understandable.
http://emergency4spe...tegorie:Scripts
You can find 'GetSpeed' under GameObject. Note: That website IS NOT a tutorial.

Thanks!

#62 CrownVictoriaCop

CrownVictoriaCop

    Lieutenant

  • Members
  • 25 posts

Posted 14 July 2008 - 04:33 PM

Or you can go to http://www.google.co...%...sl=de&tl=en for english

#63 Guest_[SAP]Francis_*

Guest_[SAP]Francis_*
  • Guests

Posted 14 July 2008 - 06:30 PM

Thank you too.

#64 Eremal

Eremal

    Lieutenant

  • Members
  • 52 posts
  • Location:Bergen, Norway

Posted 14 July 2008 - 07:59 PM

Hmm. I dont really know alot about scripting in EM4, but seing how original EM4 sirens activates when an emergency vehicle approaches a car on the roads, would it be possible to have the siren automaticly change from wail to yelp/horn or from yelp to priority/horn when approaching other vehicles?

Also, normal vehicles stop for the lights at the intersections, would it be possible to have the sirens change there too?

If so, you would be able to create a very realistic siren-script.

#65 Guest_[SAP]Francis_*

Guest_[SAP]Francis_*
  • Guests

Posted 14 July 2008 - 08:30 PM

Hmm. I dont really know alot about scripting in EM4, but seing how original EM4 sirens activates when an emergency vehicle approaches a car on the roads, would it be possible to have the siren automaticly change from wail to yelp/horn or from yelp to priority/horn when approaching other vehicles?

Also, normal vehicles stop for the lights at the intersections, would it be possible to have the sirens change there too?

If so, you would be able to create a very realistic siren-script.

I think it would.

#66 Hoppah

Hoppah

    Boss cat

  • Administrators
  • 3,879 posts
  • Gender:Male
  • Location:Special Needs Department

Posted 15 July 2008 - 05:57 AM

That would require an extensive script change, but yes it's possible in theory.

#67 Guest_[SAP]Francis_*

Guest_[SAP]Francis_*
  • Guests

Posted 15 July 2008 - 06:03 AM

That would require an extensive script change, but yes it's possible in theory.

That means you're gonna do it right? :D

#68 Hoppah

Hoppah

    Boss cat

  • Administrators
  • 3,879 posts
  • Gender:Male
  • Location:Special Needs Department

Posted 15 July 2008 - 06:22 AM

Did I say that? :1046275873_shakehead:
Alot of things are possible in theory, but that doesn't mean I am going to make it.
It's a waste of time to me. I don't even have sirens which aren't edited (audio file with wail or yelp only).
The ones I had aren't used in LA.

#69 Guest_[SAP]Francis_*

Guest_[SAP]Francis_*
  • Guests

Posted 15 July 2008 - 06:29 AM

Did I say that? :1046275873_shakehead:
Alot of things are possible in theory, but that doesn't mean I am going to make it.
It's a waste of time to me. I don't even have sirens which aren't edited (audio file with wail or yelp only).
The ones I had aren't used in LA.

http://www.fedsig.co...irens/index.php

;)

#70 Hoppah

Hoppah

    Boss cat

  • Administrators
  • 3,879 posts
  • Gender:Male
  • Location:Special Needs Department

Posted 15 July 2008 - 10:11 PM

http://www.fedsig.co...irens/index.php

;)


:1046275873_shakehead:
These are NOT the correct sirens used by the LAFD and LAPD. (Source: MikesPhotos)

#71 Guest_[SAP]Francis_*

Guest_[SAP]Francis_*
  • Guests

Posted 15 July 2008 - 10:16 PM

:1046275873_shakehead:
These are NOT the correct sirens used by the LAFD and LAPD. (Source: MikesPhotos)

Sorry then, thought they were good. :)

But, I personally prefer the 1.5 sirens to 1.6 ones.

#72 MikesPhotos

MikesPhotos

    Senior Captain

  • Members
  • 441 posts
  • Gender:Male
  • Location:Los Angeles, CA

Posted 15 July 2008 - 10:25 PM

:1046275873_shakehead:
These are NOT the correct sirens used by the LAFD and LAPD. (Source: MikesPhotos)


Correct, while the accurate files are located on that sight, it has been a big topic of discussion on the elightbars.org forums and elsewhere that the web designer or whoever is in charge of the FedSig sight, put the wrong files with the wrong siren.

While this won't help you for that sight, here is a break down of what each dept/apparatus uses.

The LAPD went from the Unitrol 480K to the Omega and is now equipping most of their units with Federal Signal Smart siren SS201 series with six button control head . Only tones available are Wail and Yelp. While airhorn is available it is never used. Just hit the horn ring to switch from wail to yelp and back.

Just like the LAPD, the LASD has used mostly the Unitrol and Touchmaster but is now switching over to the Smart Siren, specifically the SS2000-LASD.

The CHP uses the Federal Signal Smart Siren attached to a GE S825 head. It sounds different with a longer low end and a lower high end.

LAFD Engines and Large rigs have mechanical Federal Q sirens and Motorola Radio heads with built in sirens that sound identical to the LAPD smart sirens. They also have real airhorns, not electronic ones.

Ambulances have a Timberwolf siren and the Motorola Radio siren and real airhorns.

LAFD Chiefs, EMS cars, and brush patrols, use either the touchmaster siren or the motorola siren depending on year bought. Chiefs have real airhorns mounted under their bumper.

LACoFD squads use the touchmaster siren with real airhorns, not electronic.

USFS is the Touchmaster or Unitrol 80k

FBI uses what appeared to be a typical Smart siren on their SUVs as well.

---

Also remember, only the Wail and Yelp are legal tones in this state. Electronic airhorns are rarely heard if ever on police vehicles because of the way the horn ring is set up.

Mike
Misinformation is wrong or inaccurate information that is erroneous and can result from ignorance.


Posted Image
Posted Image
Posted Image
http://MikesPhotos.us- For the best in General and Fire/Law Enforcement photography in the Southern California Area.

#73 Guest_[SAP]Francis_*

Guest_[SAP]Francis_*
  • Guests

Posted 15 July 2008 - 11:22 PM

Thanks for explanations, Mike ;)

#74 CrownVictoriaCop

CrownVictoriaCop

    Lieutenant

  • Members
  • 25 posts

Posted 17 July 2008 - 11:32 PM

Take a look, I was able to turn this script into a police bullhorn.

Attached Files



#75 Guest_[SAP]Francis_*

Guest_[SAP]Francis_*
  • Guests

Posted 18 July 2008 - 12:04 AM

Nice.

#76 Guest_tjhugentobler_*

Guest_tjhugentobler_*
  • Guests

Posted 14 August 2008 - 05:02 PM

airhorn.wav: Emergency 4\Mods\Los Angeles Mod v1.5\Audio\Fx\sirens

Create a new file in "Emergency 4\Mods\Los Angeles Mod v1.5\Scripts\Game\Command" named "LAHorn.script". Put this code in it:

int DummyGroup = 22;

object VcmdHorn : CommandScript
{
	VcmdHorn()
	{
		SetIcon("sirens");
		SetCursor("sirens");
		SetRestrictions(RESTRICT_SELFEXECUTE);
		SetPossibleCallers(ACTOR_VEHICLE);
	}

	bool CheckPossible(GameObject *Caller)
	{
		if (!Caller->IsValid())
			return false;

		return true;
	}

	bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
	{
		if (!Target->IsValid() || Target->GetID() != Caller->GetID())
			return false;

		return true;
	}

	void PushActions(GameObject *Caller, Actor *Target, int childID)
	{
		Vehicle v(Caller);
		int hornsoundID;
		Vector CarPos = v.GetPosition();
		hornsoundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/airhorn.wav", CarPos, false);
		//Audio::StopSample(hornsoundID);
	}
};

object DummyHasSiren : CommandScript
{
	DummyHasSiren()
	{
		SetGroupID(DummyGroup);
	}

	bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
	{
		return false;
	}

	  void PushActions(GameObject *Caller, Actor *Target, int childID)
	{
	}
};

Add the command to all the cars you want it to in the editor. The command is "VcmdHorn".

PS: Everything is fixed and works perfectly.
Airhorn.wav uploaded:


Does this work for the LA Mod 1.6?? If it does, how do you do it?

#77 Guest_EMSTEAM_*

Guest_EMSTEAM_*
  • Guests

Posted 15 August 2008 - 04:14 AM

How do i put it into the scripy file that you need to make it work?

#78 tripel7

tripel7

    Lieutenant

  • Members
  • 26 posts
  • Gender:Male

Posted 16 August 2008 - 04:42 PM

I think that the sirens of Flame-Sim would be perfect next to the airhorn script, Can someone try to get a sound file of that?
Gino
Help fight the evil! Don't use imageshack!
Eingefügtes Bild

#79 davidotk

davidotk

    Lieutenant

  • Members
  • 50 posts
  • Gender:Male

Posted 16 August 2008 - 05:22 PM

I think that the sirens of Flame-Sim would be perfect next to the airhorn script, Can someone try to get a sound file of that?
Gino

I think you would need to contact the creator and ask him ...

#80 Atomic Monkey

Atomic Monkey

    Captain

  • Members
  • 142 posts
  • Gender:Male
  • Location:New York
  • Interests:Computers, Gaming , Video game Development , Dance and Trance Music.

Posted 16 August 2008 - 06:07 PM

Posted Image


Sorry for going a bit off topic here, but is that a Hazmat with a hose? How did you do that?! >_<

Dedicated EMS player for online