wierd m6l3a problem

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

wierd m6l3a problem

Post by ViPER »

I am converting m6l3a to mp and wanted to connect the outside to the inside. This is the intro to the gas facility that starts with the train depot, sniper tower scene.

there are a series of heavy doors that you open once you get inside, in sp they close behind you disconnecting the path so you can move forward. I found that opening heavydoor 1 and 2 at the same time causes the textures to dissapear in the connecting path when you look from either side.

I set the script so that doors 1 and 2 would alternate open and close in a loop creating a connection to both areas without causing a leak. And it worked!!!

Problem is the doors stop openning when a second player enters the battle. :{

What causes this ? i have never run into this before where the script is not functioning with multiple players.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

looks like a double-command, telling the doors to open twice may cause them to stop functioning to avoid conflict in commands/overflow due to errors.

Lock down your server for a few seconds until the doors open, or just remove the doors. if it's just a LAN game jsut tell the other guy to wait.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

the doors alternate open and closed so to keep the two areas connected without leak issues. I am told that $player is used in sp scripting and is causing the door loop to stop functioning as soon as a second person joins the game. If i remove $player it doesnt work at all. Any ideas wht to replace it with?


doorloop1:
$scene3_heavydoor1 open $player
wait 3
$scene3_heavydoor1 close $player
wait 3
$scene3_heavydoor2 open $player
wait 3
$scene3_heavydoor2 close $player
wait 3
goto doorloop1
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

i think this will work

$scene3_heavydoor1 open $scene3_heavydoor1_entity
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

$door open

or $player[local.i] open $door
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Code: Select all

$door open parm.other
Guaranteed to work as I've already converted this map to MP.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply