Axis-only doors

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Robse
Private
Posts: 7
Joined: Tue Jun 10, 2003 8:20 pm
Location: Karlsruhe, Germany

Axis-only doors

Post by Robse »

Is it possible to make certain doors where only members of axis
(or only allies) can go through? Doesn't have to be doors, any other
means would be fine. Also if possible only in one direction?

If this is possible at all, can anyone give me some pointers on where to start
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I think what you might do is make a player clip brush and then make it a script object . I have done this in my scripts before so I know that it works . Then use a trigger multiple to control it . Something like this .

main:
....
....
thread team_gate
....
end

team_gate:
$mytrigger waittill trigger
local.guy = parm.other // guy who triggers trigger

if(local.guy.dmteam == "axis")

$myscript_object moveup 256
$myscript_object speed 10
$myscript_object move

while(local.guy istouching $mytrigger)
waitframe

$myscript_object movedown 256
$myscript_object move
goto team_gate
end

Just make your trigger big enough to cover both sides of the door so only axis players can pass
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

easy

Post by tltrude »

An easy way to stop spawnkillers is to use a barrier of crates, rubble, or clip brushes that can only be climbed form one side. Anything over 64 units tall can not be jumped over. However, one player can jump on another player to get over, so you may need to make it higher. If there is water at the bottom, the team players will be less likely to be hurt when they jump down off the barrier.
Tom Trude,

Image
Robse
Private
Posts: 7
Joined: Tue Jun 10, 2003 8:20 pm
Location: Karlsruhe, Germany

10q

Post by Robse »

Okay thanks guys!
Post Reply