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
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
Strid3r [Searc]
COLMAC [Forum]
xDsDizzity [Downl]
ROTCGuy [Tutor]

4 Members and 12 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Friday, Nov. 21st
CoD:WW Video Tutorial is up!
Friday, Nov. 21st
MODSonair Episode 154
Thursday, Nov. 20th
Call Of Duty World At War - Mod Tools
Wednesday, Nov. 19th
Half-Life 1 $0.98
Sunday, Nov. 16th
MODSonair 154 Live
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 8.46%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0.5%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 68.16%
100% definitely NOT! 18.91%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 2.49%
Games are the devil! 1.49%
Read More...
16 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
script compile error
CoD 4 Scripting.. Posts: (13) Views: (79) by ThisGuy
SKYBOX ; tut
CoD:WW Level Des.. Posts: (1) Views: (16) by [ToC]Blackjak
Running a mod with downloads from redirect
CoD:WW Scripting.. Posts: (2) Views: (12) by Tally
[WIP] SP_Paradise
CoD 4 Single Pla.. Posts: (17) Views: (532) by starkk
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, batistablr, 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: 31857
Last: Nov 22, 2008
[view latest posts]
Level 10
Admin
Forum Moderator
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 4pm GMT 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: 31857
Last: Nov 22, 2008
[view latest posts]
Level 10
Admin
Forum Moderator
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 4pm GMT 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: 31857
Last: Nov 22, 2008
[view latest posts]
Level 10
Admin
Forum Moderator
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 4pm GMT 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: 31857
Last: Nov 22, 2008
[view latest posts]
Level 10
Admin
Forum Moderator
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 4pm GMT 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 © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Art of War Central
Partners
modbase.be
Call of Duty Headquarters
Frag Universe
The Firing Box
CODAddicts - Call of Duty News & Downloads
Battle for Europe COD2
XoXide
Ask About
Advertising
Friends
After Life Gaming
Great Gamer
The Clan Database
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.
MODSonair Releases
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
Next Show
The next MODSonair show will air LIVE on:
11/23/2008 12:00 EST

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware