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

Members Online

»
0 Active | 11 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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 : Call of Duty 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Lift for mp_Map
Robert1983
General Member
Since: May 27, 2005
Posts: 42
Last: Oct 15, 2006
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Thursday, May. 4, 2006 09:30 pm
Hi@all [wave]

!. Sorry for my englisch [crazy] ( i'm german [biggrin] )

Ok my Problem -> I want to have some lift's in my map ...
-> ok np I often make lifts in cod\uo
-> script-brushmodel-> trigger_use..bla bla.. no prob
use the script from uo

Quote:
main() {
level.elevatorDown = true; // elevator starts at bottom: true/false
level.elevatorMoving = false; // elevator is not currently moving
thread elevator_start();
}

elevator_start() {
elevator = getentarray ("liftswitch","targetname");
if ( isdefined(elevator) )
for (i = 0; i < elevator.size; i++)
elevator thread elevator_think();
}

elevator_think() {
while (1) {
self waittill ("trigger");
if (!level.elevatorMoving)
thread elevator_move();
}
}

elevator_move() {
elevatormodel = getent ("lift", "targetname");
level.elevatorMoving = true;
speed = 10;
height = -1080;
wait (1);
if (level.elevatorDown) { // moves to top
elevatormodel playsound ("elevator1");
wait (1);
elevatormodel moveZ (height, speed);
elevatormodel waittill ("movedone");
level.elevatorDown = false;
}
else { // moves to bottom
elevatormodel playsound ("elevator1");
wait (1);
elevatormodel moveZ (height - (height * 2), speed);
elevatormodel waittill ("movedone");
level.elevatorDown = true;
}
level.elevatorMoving = false;
}


I start my map .. nice the lift work..but !! the Player are " shaken " like a Milkshake [crazy] loool

so i used a other script :

Quote:
main()
{
brswitch = getent ("liftswitch","targetname");
brswitch.open = false;
brswitch thread lift();
}

lift()
{
br = getent ("lift","targetname");

while (1)
{
self waittill ("trigger");

if (!self.open)
{
br moveto((0,0,448),4,1,1);
br playsound ("elevator1");
wait (3);
self.open = true;
}
else
{
br moveto((0,0,448),4,1,1);
br playsound ("elevator1");
wait (3);
self.open = false;
}

}
}


It work, but same thing as the other script .....harrrr

Can someone help !????
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Thursday, May. 4, 2006 11:01 pm
The shaking happens because the player is "blocking" the elevator brush to go up.
Share |
strontkever
General Member
Since: Mar 29, 2005
Posts: 36
Last: May 4, 2006
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Thursday, May. 4, 2006 11:12 pm
i havent read ur 2nd script but try moving the lift a little like this : / or \ instead of |

in coduo u had this problem with 2 or more players in a lift (shaking) but when u make it go diagonally, it worked with morep players
Share |
Robert1983
General Member
Since: May 27, 2005
Posts: 42
Last: Oct 15, 2006
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Friday, May. 5, 2006 06:54 am
Ok thank you for answer!

But it doesn't work [sad]

I moved the lift like \ and _ and \ but nothing work
........................\..... .. _ ......\
........................\......... . _......\

without " shaking " [cry]
a other Idea ???

edited on May. 5, 2006 02:57 am by Robert1983
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Friday, May. 5, 2006 07:08 pm
The_Caretaker writes...
Quote:
The shaking happens because the player is "blocking" the elevator brush to go up.


Make the elevator bigger, maybe that will help.
Share |
Robert1983
General Member
Since: May 27, 2005
Posts: 42
Last: Oct 15, 2006
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Saturday, May. 6, 2006 09:47 am

Quote:
Make the elevator bigger, maybe that will help.


Harrr...no effect ...still shaking ..[banghead]
Share |
privategrob
General Member
Since: May 19, 2004
Posts: 54
Last: Dec 2, 2008
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Sunday, May. 28, 2006 04:09 pm
Robert1983 writes...
Quote:

Quote:
Make the elevator bigger, maybe that will help.


Harrr...no effect ...still shaking ..[banghead]


Same problem for me..... It shake if a player inside the elevator. Can“t understand this, in my Map Buhlert there ist the same script for a cableway..... [sad]

Greetings
Private Grob
(Micka)
Share |
Robert1983
General Member
Since: May 27, 2005
Posts: 42
Last: Oct 15, 2006
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Tuesday, May. 30, 2006 06:32 pm
@Private Grob

( sobald die map auf unserem Server leuft Ruckelt der Aufzug kaum bis garnicht mehr !! einfach ma testen [wink] )

SORRY for german ! I'm drunk ![biggrin][crazy]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»