Teleport weird behavior

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Teleport weird behavior

Post by Stratocaster »

Hi guys :wink:

As a secret nazi experiment I have a teleport cabin in my map. It sure does work fine, but there is something strange. The trigger teleport is INSIDE a cabin like a phone booth, totally surrounded by walls and a door to get inside. But as I tested the map I suddenly got teleported as I was walking very close to that walls. In fact I trespass the walls as if those would not exist... Is there a way to avoid that? I first thought my trigger was thouching the walls, but it is not, it is clearly inside them.
The player is supposed to be teleported as he enters the cabin, and in fact he is, but he also get teleported as he walks to the trigger, even trespassing walls!!
Well I hope you can help me with that :D
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

it's probably overlapping or reading a bit too far out. you can make it a small 1 cm cube and if the player touches it it'll trigger, maybe make it a bit smaller inside the booth :wink:
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

triggers

Post by tltrude »

Are there two triggers with the same targetname?
Tom Trude,

Image
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

yes like lizard sed i would simply smallen the trigger.
"We must become the change we want to see in the world" (Mahatma Gandhi)
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

Thank you for your replies.

As far as I know there is only one trigger with such targetname. I will check again all the map just in case, but... I don't think so.
The trigger_teleport brush is quite small but one thing I can do is just make it extremely small inside the booth. like 4 x 4 x 4 or even smaller.
I will tell you the results :wink:
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

Still going crazy...
well now I have the problem in only one wall so it's getting better...LOL
I am gonna try redo the whole thing again. If it doesn't work, I will avoid access to that wall by placing some crate or whatever. :wink:
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

ideas

Post by tltrude »

If you are looking for new ideas, I once made a teleporter that was in a vertical pipe. The player would jump down into the pipe and be teleported to another pipe that he would fall out of. Players could also throw granades down the pipe and have them explode across the map at the exit.

So, you could add a pit in the bottom of your cabinet.
Tom Trude,

Image
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

Well that's not a bad idea at all!!!! 8-)

If the trigger is inside the pit, the player need to jump through to activate it, so I don't have to worry about the walls surrounding the booth.
By the way I also made the trigger suitable for grenades and even bazookas projectiles travelling through it :wink:
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Another trick is not to use a Teleport trigger at all... you can just insert a trigger_use and set the origin of the triggerer to another value. Simplicity! :)
Admin .MAP Forums
Image
Head above heels.
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

Well that's a cool idea too!

As soon as the compiling is done I will check if my teleport is fine. As I compiled with full vis (leafgroups being tested), I will see the results in 5 or 6 hours, damn! :?
In case it's gone weird again I can try that trigger_use.
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

another

Post by tltrude »

A trigger_multiple with a setthread would also work. The lines in the script would look something like this,

local.player = parm.other
local.player tele $my_dest

It would be the same with Bjarne BZR's trigger use, but the player would have to hit his use key. Also, he is saying to use a line like this.

local.player = parm.other
local.player.origin = $my_dest.origin

"my_dest" can be a script_origin, but it would not kick the player off the spot like a func teleport destination does.

We are just thowing out options, you don't have to test them all.
Tom Trude,

Image
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

I'm gonna try deal with that to solve the problem. I also thought of surrounding the booth with thin clip brushes might work also :roll:
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
Shuriken1
Corporal
Posts: 28
Joined: Thu Sep 02, 2004 3:05 pm
Contact:

Post by Shuriken1 »

To expand on trude's previous post (as impressive as always 8-) ) could you add:

local.offset = 48 + randomint(64)
local.a = local.player.origin
if((randomint(100)) < 50)
local.a[0] = local.a[0] + local.offset
else
local.a[0] = local.a[0] - local.offset
if((randomint(100)) < 50)
local.a[1] = local.a[1] + local.offset
else
local.a[1] = local.a[1] - local.offset

I use something similar to that to make a shell's impact point variable, I'm sure you could use that to move the player a random distance from the landing point to get them out of the way too. Just an idea :)
Shuriken1
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

Thank you guys I solved the problem!!! :wink:
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
Post Reply