MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Rules
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
CoD Wiki

HL2 Mapping
L4D Mapping
HL2 FAQs

SoF1 Mapping
SoF2 Mapping
SoF2 FAQs

Crysis Mapping

Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs

UT2K3 Mapping

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
Kingfire [Tutor]
hollandshi... [Downl]
Tron2009 [Downl]
chrbos [Forum]
marco2 [Tutor]

5 Members and 18 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Friday, Jul. 3rd
MODSonair Episode 186
Sunday, Jun. 28th
MODSonair 186 LIVE
Friday, Jun. 26th
MODSonair Episode 185
Monday, Jun. 22nd
Through The Fire and Flames on Drums
Sunday, Jun. 21st
MODSonair 185 LIVE
Latest Poll
Will you be switching to Windows 7?
I already pre-ordered my copy. 4.55%
Looking forward to 32 bit. 7.58%
Looking forward to 64 bit. 25.76%
Waiting for the everyone else to beta the new OS. 9.09%
I'm sticking with my trusted copy of XP. 51.52%
Screw Windows, I'm on [insert other OS here]. 1.52%
Read More...
8 comments

Your Membership
User Name:
Password:
Register.
In The Forums
[NOOB] Random Script Help
CoD 4 Scripting.. Posts: (4) Views: (50) by cavia123
electro shock defenses
CoD:WW Zombie/Co.. Posts: (4) Views: (50) by techno2sl
sound import
CoD:WW Scripting.. Posts: (7) Views: (52) by mester
Tropical Plants
CoD 4 Level Desi.. Posts: (5) Views: (69) by PhenomPower
Art of War Central Half-Life 2 Mods for Dummies
CoDWW Download
Forums
MODSonline.com 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 Level Design
Quake 4 mapping and level design.
Moderators: foyleman, rEdrUmMDK, Foxhound, StrYdeR, supersword, Welshy
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 Level Design
Posted: Thursday, Dec. 28, 2006 10: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
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 42620
Last: Jul 4, 2009
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Level Design
Posted: Thursday, Dec. 28, 2006 10: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 : MODSonline.com
Support Modsonline by becoming a PREFERRED MEMBER today
Have you heard the MODSonair Podcast?: www.modsonair.com
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
Slagjoeyoco
General Member
Since: Aug 1, 2006
Posts: 61
Last: Feb 8, 2008
[view latest posts]
Level 3
Category: Q4 Level Design
Posted: Friday, Dec. 29, 2006 05: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...
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 42620
Last: Jul 4, 2009
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Level Design
Posted: Friday, Dec. 29, 2006 06: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 : MODSonline.com
Support Modsonline by becoming a PREFERRED MEMBER today
Have you heard the MODSonair Podcast?: www.modsonair.com
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
Slagjoeyoco
General Member
Since: Aug 1, 2006
Posts: 61
Last: Feb 8, 2008
[view latest posts]
Level 3
Category: Q4 Level Design
Posted: Friday, Dec. 29, 2006 06: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°
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 42620
Last: Jul 4, 2009
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Level Design
Posted: Saturday, Dec. 30, 2006 09:10 am
Are you setting the return to 360 or to 0?
Go ahead... You Play I Mod : MODSonline.com
Support Modsonline by becoming a PREFERRED MEMBER today
Have you heard the MODSonair Podcast?: www.modsonair.com
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
Slagjoeyoco
General Member
Since: Aug 1, 2006
Posts: 61
Last: Feb 8, 2008
[view latest posts]
Level 3
Category: Q4 Level Design
Posted: Saturday, Dec. 30, 2006 09: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...
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 42620
Last: Jul 4, 2009
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Level Design
Posted: Saturday, Dec. 30, 2006 10: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 : MODSonline.com
Support Modsonline by becoming a PREFERRED MEMBER today
Have you heard the MODSonair Podcast?: www.modsonair.com
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
Slagjoeyoco
General Member
Since: Aug 1, 2006
Posts: 61
Last: Feb 8, 2008
[view latest posts]
Level 3
Category: Q4 Level Design
Posted: Saturday, Dec. 30, 2006 02:06 pm
yes okay thanks now it works...
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Quake 4 : Q4 Level Design
All logos and trademarks and information in this site are property of MODSonline LLC © 2009.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Art of War Central
Partners
XoXide
Bash and Slash Podcast
Call of Duty Headquarters
Battle for Europe COD2
The Firing Box
CODAddicts - Call of Duty News & Downloads
CoD World Task Force
Frag Universe
modbase.be
Ask About
Advertising
Friends
The Clan Database
After Life Gaming
Canada Kicks Ass Clan
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
Next Show
The next MODSonair show will air LIVE on:
07/05/2009 12:07 EDT

Time remaining:
We Dontated to PixelEquity
Copyright © 2009 MODSonline
Tresware Content Management System Copyright © 2009 Tresware
Website Designed and Hosted   Tresware