Police siren

Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Police siren

Post by Jack »

Someone know how to make a police siren? are it prop_dynamic or something?
Will gonna make a police car :D if it work..
I have the car i need only siren.
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: Police siren

Post by ant_8490 »

point_spotlight and some prop setparented to a func_rotating
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Police siren

Post by Jack »

ant_8490 wrote:point_spotlight and some prop setparented to a func_rotating


Thanks, ant :-)
Been
1+ Posts
1+ Posts
Posts: 3
Joined: Wed May 19, 2010 1:18 pm

Re: Police siren

Post by Been »

hi i try same but i make a police helicopter so i need siren. what is command i should add in my script?
so it will be:
ent_setname siren
???????
??????



pls help me i need it
Been
1+ Posts
1+ Posts
Posts: 3
Joined: Wed May 19, 2010 1:18 pm

Re: Police siren

Post by Been »

or i will make a police car now. i need siren still can someone help me?


ent_setname siren
?
?
?
?
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: Police siren

Post by ant_8490 »

heres a script to make a spinning siren:

Code: Select all

setpos 1100 1100 500; setang 0 180 0
wait;
ent_create func_rotating
ent_fire func_rotating addoutput "targetname siren"
ent_fire siren addoutput "classname spin"
ent_fire siren addoutput "solid 2"
ent_fire siren addoutput "origin 0 1000 65"
ent_fire siren addoutput "maxspeed 500"

wait;wait;wait;wait;wait;wait;wait;wait;

setpos 1100 1100 100; setang 90 0 0
wait;
ent_create point_spotlight
ent_fire point_spotlight addoutput "targetname spotlight1"
ent_fire spotlight1 addoutput "classname spin"
ent_fire spotlight1 addoutput "origin 0 1000 65"
ent_fire spotlight1 addoutput "angles 0 180 0"
ent_fire spotlight1 addoutput "spotlightwidth 15"
ent_fire spotlight1 addoutput "spotlightlength 50"
ent_fire spotlight1 color "255 255 255"
ent_fire spotlight1 lighton
ent_fire spotlight1 setparent siren
ent_fire spotlight1 addoutput "angles 0 0 0"

wait;wait;wait;wait;wait;wait;wait;wait;

ent_create point_spotlight
ent_fire point_spotlight addoutput "targetname spotlight2"
ent_fire spotlight2 addoutput "classname spin"
ent_fire spotlight2 addoutput "origin 0 1000 65"
ent_fire spotlight2 addoutput "angles 0 0 0"
ent_fire spotlight2 addoutput "spotlightwidth 15"
ent_fire spotlight2 addoutput "spotlightlength 50"
ent_fire spotlight2 color "255 0 0"
ent_fire spotlight2 lighton
ent_fire spotlight2 setparent siren
ent_fire spotlight2 addoutput "angles 0 180 0"

wait;wait;wait;wait;wait;wait;wait;wait;

prop_dynamic_create props_wasteland/gear01.mdl

ent_setname centerprop
ent_fire centerprop addoutput "classname spin"
ent_fire centerprop addoutput "origin 0 1000 65"
ent_fire centerprop addoutput "angles 0 45 0"
ent_fire centerprop setparent siren
ent_fire centerprop addoutput "angles 0 45 0"
ent_fire centerprop break

wait;wait;wait;wait;wait;wait;wait;wait;

ent_fire siren toggle
ent_fire siren start

ent_fire spotlight_end addoutput "classname spin"

setpos 127 1103 5;setang 0 -148 0

echo -----------------------------------
echo -----------------------------------
echo -- TO DELETE: ent_fire spin kill --
echo -----------------------------------
echo -----------------------------------
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Police siren

Post by Jack »

lol, i failed on my police car :S
hmm...
Been
1+ Posts
1+ Posts
Posts: 3
Joined: Wed May 19, 2010 1:18 pm

Re: Police siren

Post by Been »

ok
Nicdel
Server Admin
Posts: 2417
Joined: Sun Apr 11, 2010 4:50 am

Re: Police siren

Post by Nicdel »

That script crashed, Ant.
Ingame: -[SaD]- Nico

Image
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: Police siren

Post by ant_8490 »

hmmm, not in my server if u use it just like that. And u need to spawn the func_rotating on the walls of the map (setpos lines) otherwise it usually does crash.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
Nicdel
Server Admin
Posts: 2417
Joined: Sun Apr 11, 2010 4:50 am

Re: Police siren

Post by Nicdel »

Aww, okay, you spawn it at a wall :)
Ingame: -[SaD]- Nico

Image