Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 10 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
Rainbow HELP....
CoD4 MP Mapping
help pls
CoD2 Scripting

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Quake 4
Category: Q4 Mapping
Quake 4 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Rotating doors
Slagjoeyoco
General Member
Since: Aug 1, 2006
Posts: 61
Last: Feb 8, 2008
[view latest posts]
Level 3
Category: Q4 Mapping
Posted: Thursday, Dec. 28, 2006 08:03 am
Hi everyone,

I need help with creating rotating doors.
I know that I have to create a certain scriptfile for this, but I have no idea what to write in there and where to put that file...



edited on Dec. 28, 2006 10:03 am by Slagjoeyoco
Share |
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 95732
Last: Apr 28, 2013
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Mapping
Posted: Thursday, Dec. 28, 2006 08:34 am
The doom 3 video tutorial that we have will work. Check it out here: http://www.modsonline.com/Tutorials-read-158.html
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
Slagjoeyoco
General Member
Since: Aug 1, 2006
Posts: 61
Last: Feb 8, 2008
[view latest posts]
Level 3
Category: Q4 Mapping
Posted: Friday, Dec. 29, 2006 03:38 pm
Yes I've already seen it but I want to create a door wich rotaates in both directions - you know like a hospital door for instance...
Share |
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 95732
Last: Apr 28, 2013
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Mapping
Posted: Friday, Dec. 29, 2006 04:01 pm
You will have to go through the tutorial twice then. Once for each side of the door.

You need to trigger a separate script for each side of the door so that it opens opposite the player.

Now, the trick will be making it so that the second trigger (to the player) doesn't interfere with the first. When the player activates the first script and walks through the door. The second script will be activated and you need to stop this from happening.

I recommend adding something to the script that removes the second trigger until after the first script is run. So, the start of the script will remove the trigger brush from the map (or deactivate it). Then the end of the script will put the trigger brush back in.

Or another option is to move the second trigger to a place outside of your map while the script is activated. Then move it back at the end.

some scripting info: http://www.doom3world.org/phpbb2/viewtopic.php?t=2562&highlight=script+remove+trigger

Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
Slagjoeyoco
General Member
Since: Aug 1, 2006
Posts: 61
Last: Feb 8, 2008
[view latest posts]
Level 3
Category: Q4 Mapping
Posted: Friday, Dec. 29, 2006 04:24 pm
the problem is, there are nearly no codes on that website the link refers to

the door rotates in one direction only, like a clock
so if I want the door to open opposite the player, I would have to write $mydoor.rotateTo('0 -90 0')
allright so far, but when it closes again, it spins arround 360°
Share |
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 95732
Last: Apr 28, 2013
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Mapping
Posted: Saturday, Dec. 30, 2006 07:10 am
Are you setting the return to 360 or to 0?
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
Slagjoeyoco
General Member
Since: Aug 1, 2006
Posts: 61
Last: Feb 8, 2008
[view latest posts]
Level 3
Category: Q4 Mapping
Posted: Saturday, Dec. 30, 2006 07:58 am
no to 0
Just like this:

void rotate_mydoor() {
$mydoor.time(1);
$mydoor.rotateTo('0 90 0');
sys.wait(3);
$mydoor.time(1);
$mydoor.rotateTo('0 0 0');
}

void rotate_mydoor_back() {
$mydoor.time(1);
$mydoor.rotateTo('0 -90 0');
sys.wait(3);
$mydoor.time(1);
$mydoor.rotateTo('0 0 0');
}

the second paragraph works only for one direction - that's the problem because I don't want the door to push away the player...
Share |
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 95732
Last: Apr 28, 2013
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Mapping
Posted: Saturday, Dec. 30, 2006 08:32 am
here you go. This will work:
Quote:
void rotate_mydoor() {
$mydoor.time(1);
$mydoor.rotateTo('0 -90 0');
sys.wait(3);
$mydoor.time(1);
$mydoor.rotateTo('0 360 0');
}
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
Slagjoeyoco
General Member
Since: Aug 1, 2006
Posts: 61
Last: Feb 8, 2008
[view latest posts]
Level 3
Category: Q4 Mapping
Posted: Saturday, Dec. 30, 2006 12:06 pm
yes okay thanks now it works...
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Quake 4 : Q4 Mapping

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»