DF-21 Forums Forum Index DF-21 Forums
The Dark Forces Community
 
DF-21.net Home | FAQ | Search | Memberlist  | Register 
Profile | Log in to check your private messages | Log in

INF: Using elevator door_mid to make floor/ceiling crushers

 
Post new topic   Reply to topic    DF-21 Forums Forum Index -> Dark Forces Levels & Editing
View previous topic :: View next topic  
Author Message
Rory Duffy
Ree-Yees

Joined: 29 May 2004

PostPosted: Aug 02, 2004 16:32    Post subject: INF: Using elevator door_mid to make floor/ceiling crushers View user's profile Send private message Reply with quote

Heya,
Does anyone know how to make an elevator door_mid,
(the 2 part door which opens upwards and downwards)
always move without needing to nudge from the front?

I'm trying to create a two-way crusher, where the top half (ceiling) and the bottom half (floor)
of the sector meet in the middle to sandwich the player in a death-crush which keeps moving.

ie:

addon: 0////////////////////////////////////////////////////////////addon: 0-->
//////////-->addon: 0-->///////////////////////-->addon: 0-->//////////-->
//////////-->//////////-->addon: 0///addon: 0-->//////////-->//////////-->
PLAYER:-->PLAYER:-->PLAYER CRUSHED!! -->PLAYER:-->PLAYER:--> (REPEAT)
//////////-->//////////-->addon: 1///addon: 1-->//////////-->//////////-->
//////////-->addon: 1-->///////////////////////-->addon: 1-->//////////-->
addon: 1////////////////////////////////////////////////////////////addon: 1-->

So far I've only been able to make the crushers work when nudged, which is not a lot of use!!
Has anyone worked it out yet?

Rory

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Aug 03, 2004 06:15    Post subject: View user's profile Send private message Reply with quote

What does your script say right now?

Rory Duffy
Ree-Yees

Joined: 29 May 2004

PostPosted: Aug 03, 2004 11:46    Post subject: View user's profile Send private message Reply with quote

Well, at first I used the elevator door_mid script from the DF Editor's INF Guide:

class: elevator door_mid
addon: 0
speed: 5
master: on
addon: 1
speed: 5
master: on

Then, I figured that maybe it assumes event_mask 48 (nudge from front/back)
because it is a door so I added event_mask 0 (work all the time). Didn't change.

class: elevator door_mid
event_mask: 0
addon: 0
speed: 5
master: on
addon: 1
speed: 5
master: on

Perhaps the addon values work with other elevator classes???? I tried this here;

class: elevator move_fc
event_mask 0
addon: 0
speed: 5
master: on
addon: 1
speed: 5
master: on

This has an interesting effect...it makes the elevator surge infinitely downwards.
But this was not what I wanted! Confused
I've only just learnt how to use INF from referring to the guide, so I'm not any good at making new ones.
I just thought it would be cool to have a hydro generator which the player has to crawl through to get to the lagoon.

Thanks for any help you can give me! Smile

Scape Goat
Dark Trooper Phase 2

Joined: 23 Sep 2003

PostPosted: Aug 03, 2004 15:06    Post subject: View user's profile Send private message Reply with quote

I'd use a combination of 'move_floor' and 'move_ceiling'.

Rory Duffy
Ree-Yees

Joined: 29 May 2004

PostPosted: Aug 03, 2004 20:26    Post subject: View user's profile Send private message Reply with quote

Thanks, Scape Goat...that works a treat!!! Cool
Let it be a message to anyone who wants
to make sandwich crushers! Wink
Hmmm....now to all those pesky altitudes.

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Aug 04, 2004 06:55    Post subject: View user's profile Send private message Reply with quote

Glad to hear that works...I'll have to try it out! Btw would adding

stop: 0 0
stop: 5 0
to the bottom addon and

stop: 10 0
stop: 5 0

to the top addon in your original script for say a 10-high crusher have worked?

Rory Duffy
Ree-Yees

Joined: 29 May 2004

PostPosted: Aug 04, 2004 10:17    Post subject: View user's profile Send private message Reply with quote

No, it didn't work - it was the problem that the crusher only opened when nudged.
It thought itself was a door! At the moment, my script says this:

class: elevator move_ceiling
event_mask: 0
speed: 5
stop: 24 2
stop: 8 2
class: elevator move_floor
event_mask: 0
speed: 5
stop: -8 2
stop: 8 2

ie, the ceiling starts at -24 and the floor starts at 8.
The ceiling falls 16 to meet the floor at -8 which has risen from 8.
It's a 16 high crusher, so yes it does work like that.
The only thing you have to watch out for, that was confusing me,
is that with all absolute stops the altitude values are the opposite.
So: + = above ground, and - = below ground. (for some reason?)

Oh and make sure the sector has the sector flag 'crushing sector.'

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Aug 05, 2004 07:14    Post subject: View user's profile Send private message Reply with quote

Ah ok. I guess DF must look at that class: elevator door_mid and say "ooooohhh a door" and treat it as such.

Now back to trying and get the accelerating elevator to work efficiently...


Last edited by DF4GL4ever on Aug 05, 2004 07:20; edited 1 time in total

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Aug 05, 2004 07:16    Post subject: View user's profile Send private message Reply with quote

Ack stupid double post...I don't like dialup...

Display posts from previous:   
Post new topic   Reply to topic    DF-21 Forums Forum Index -> Dark Forces Levels & Editing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group