MODSonline Subscriptions
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
The next MODSonair show will air LIVE on:
03/14/2010 12:03 EST

Time remaining:
We Dontated to PixelEquity
"Mods can significantly outshine and/or continue the success of the original game even when it is dated." 1
 
Site News   |   Aggregated News   |   Forums   |   Tutorials   |   Downloads   |   Projects   |   Weblinks
Latest Forum Threads 
CoD4 Scripting.. Posts: (7) Views: (57) by Cnopicilin
CoD4 General.. Posts: (20) Views: (120) by Cnopicilin
CoD4 MP Mapping.. Posts: (2) Views: (12) by vT-Ownage
News Around the .. Posts: (5) Views: (46) by vT-Ownage
CoD4 MP Mapping.. Posts: (2) Views: (48) by Vistrum
L4D2 Mapping.. Posts: (14) Views: (180) by Vistrum
CoD4 MP Mapping.. Posts: (7) Views: (96) by Vistrum
CoD4 MP Mapping.. Posts: (1) Views: (6) by Pokeloca
CoD4 MP Mapping.. Posts: (4) Views: (34) by {UST}Hogan
CoD2 Scripting.. Posts: (6) Views: (154) by inanbayram
Back to Home Page
MODSCON 2010 L4D2 Contest
Dr. Nano Free for the iPhone and iPod Touch
 
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 Mapping
Quake 4 mapping and level design.
Moderators: foyleman, Foxhound, StrYdeR, techno2sl, batistablr, Welshy, supersword, batistablr
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 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: 55046
Last: Mar 12, 2010
[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 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 : 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
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 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: 55046
Last: Mar 12, 2010
[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 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 : 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
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 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: 55046
Last: Mar 12, 2010
[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 09: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
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 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: 55046
Last: Mar 12, 2010
[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 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 : 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
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 02:06 pm
yes okay thanks now it works...
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Quake 4 : Q4 Mapping