dont shake me around so much

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
LtNeil
Sergeant
Posts: 54
Joined: Sun Nov 14, 2004 8:46 pm
Location: southend on sea
Contact:

dont shake me around so much

Post by LtNeil »

Hello, im using this exec global/earthquake.scr .23 4 0 0
for my nice ground shake when my explosions go off but i would like a gentler shake (so the screen is'nt flying around everytime theres an explosion)

What do i have to alter to get a little shake ?
My candle burns at both ends it will not last the night but oh my foes and oh my friends it gives a lovely light.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

The global/earthquake.scr is only 2 lines long
start local.duration local.magnitude local.no_rampup local.no_rampdown:
earthquake local.duration local.magnitude local.no_rampup local.no_rampdown
it speaks for it's self I think
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

And makes it entirely useless.

This is the earthquake from The Hunt:

Code: Select all

earthquake .35 10 0 0
earthquake .23 6 0 0
earthquake 1 1 0 0
earthquake 1.25 .3 0 1
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

quake

Post by tltrude »

It is the second number that sets how much it shakes (local.magnitude). But, like Rookie One.pl says, you need more than one line to make the it seem real.

waitexec global/earthquake.scr .3 1.5 0 0
waitexec global/earthquake.scr .35 .75 0 0

The above lines are from my explodingdoor map (mortar hit explosion).
Tom Trude,

Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

I also wanted to make the point that using global/earthquake.scr is totally pointless. Use the earthquake command instead.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

about the only reason for useing that script is so you can use waitexec you could do it in a thread and use waitthread as well .
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Nah, it's totally useless that way, too, as the earthquake command doesn't wait.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Probably earthquake script was originally less 'boring', but presumably the devs moved it to game code but didn't want to check and change all references :wink:
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Yeah, I suppose they were spawning func_viewjitters or something.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply