Fortress Forever

Go Back   Fortress Forever > Editing > Mapping

Reply
 
Thread Tools Display Modes
Old 04-21-2008, 12:31 AM   #1
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
trigger_teleports

does anyone know how I can make a single trigger_teleport spawn an entity at a random info_teleport_destination?

Like would this be done in hammer or via .lua?
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-21-2008, 12:44 AM   #2
PartialSchism
Keep On Keepin' On
 
PartialSchism's Avatar
 
Join Date: Feb 2008
Location: Mississippi
Class/Position: Offense
Gametype: Fun
Affiliations: I'm bad at FF, and my customs suck
Posts Rated Helpful 0 Times
Send a message via AIM to PartialSchism
So you want the teleport destination to be random?
PartialSchism is offline   Reply With Quote


Old 04-21-2008, 12:53 AM   #3
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
Quote:
Originally Posted by PartialSchism
So you want the teleport destination to be random?
yeah...basically I want to put like 4 / 5 destinations down...so that if more then 1 guy is concing and they reset...they generally won't end up stuck in each other. I know I can do it...just not sure how.

I did find one tut about something like it, but I can't find the entity (ai_changetarget) it references anywhere.
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-21-2008, 03:09 AM   #4
Doughnut-4|4-
 
Join Date: May 2007
Posts Rated Helpful 0 Times
I'm going take a random stab at this...
Create two trigger_teleports with two info_teleport_destinations.

Example:
Pad1 sends to Point1
Pad2 sends to Point2

Next make Pad1 start disabled "no"
And make Pad2 start disabled "yes"

Whenever Pad1 is touched it can enable Pad2 while simultaneously disabling Pad1 and vis versa...
whenever Pad2 is touched it will enable Pad1 while disabling Pad2.

They can send to two distinct points and should prevent the teleporter mishaps. I haven't checked this and there maybe a better way but thought i'd take a guess.
Doughnut-4|4- is offline   Reply With Quote


Old 04-21-2008, 03:56 AM   #5
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
yeah I'm wondering if I can't do that with the OnUser1-4 outputs...
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-21-2008, 04:01 AM   #6
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
Doughnut's method is good, but I would use the tutorial you linked earlier Satan.
Jester is offline   Reply With Quote


Old 04-21-2008, 04:27 AM   #7
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
Quote:
Originally Posted by Jester
Doughnut's method is good, but I would use the tutorial you linked earlier Satan.
I want to...but I have no clue where to find the ai_changetarget entity it references...I looked under entities, textures, tried making a brush based texture and then tying that to an entity...nothing worked.

I'm probably gonna dl the test map they supply and see if I can't figure out what they are doing.
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-21-2008, 05:06 AM   #8
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
You could always try the method stino used in conc_course to change the players spawn point per jump or ask him for help.
Jester is offline   Reply With Quote


Old 04-21-2008, 05:18 AM   #9
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
Quote:
Originally Posted by Jester
You could always try the method stino used in conc_course to change the players spawn point per jump or ask him for help.
yeah...I mean I can get it with the teleports...but I don't like killing people seems odd in a concmap. Idk I'll play with shit tonight and see what I can pull up.
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-21-2008, 05:30 AM   #10
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
I don't mean you have to kill them. You can probably modify his code to work with teleports.
Jester is offline   Reply With Quote


Old 04-21-2008, 05:41 AM   #11
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
maybe...I'll have to look at it. Didn't even think of that lol
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-21-2008, 01:41 PM   #12
BumGravy
Black Cyclops
 
BumGravy's Avatar
 
Join Date: Mar 2007
Location: Scotland
Posts Rated Helpful 0 Times
Just make each triggerteleport only big enough to fit one person at a time and have the destinations floating so they fall straight out o it, then they can tget stuck.
BumGravy is offline   Reply With Quote


Old 04-21-2008, 10:57 PM   #13
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
Quote:
Originally Posted by BumGravy
Just make each triggerteleport only big enough to fit one person at a time and have the destinations floating so they fall straight out o it, then they can tget stuck.
that is actually ingenious...like seriously I never even though of making the destination float but that's prefect. Thank you!
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-22-2008, 03:09 AM   #14
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
Only making the destination float won't fix anything, you'll just have players stuck together... in the air. You need to combine it with something like gravy said. Also with how the engine works if you teleport and the destination is above ground, you will keep your momentum and possibly just keep going over and over.
Jester is offline   Reply With Quote


Old 04-22-2008, 04:54 AM   #15
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
yeah was I thought about it I pretty much came to the same conclusion. I'll figure something out I'm sure.
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-22-2008, 02:11 PM   #16
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
You could build a player clip box the size of the destination so that when people teleport into it they wont fly anywhere, they will just drop down to the ground. But still you should stay away from it because players can still get stuck in each other if they teleport quickly.
Jester is offline   Reply With Quote


Old 04-22-2008, 02:16 PM   #17
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
Yeah and they might hit it on accident and wonder why...this map is really designed to be for complete newbs to concing so I don't want to confuse them...the less they see in terms of this the better.

This weekend I have been focusing on finishing my last 3 jumps (2 out of 3 are done) and fixing up the lighting...once I have that all done then I'll really start looking at how this might work, so probably tomorrow if I have time to work on the map tonight. I'll update this if / when I find a solution, but if anyone finds something first definitely post your idea so I can test it out.
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


Old 04-22-2008, 02:33 PM   #18
BumGravy
Black Cyclops
 
BumGravy's Avatar
 
Join Date: Mar 2007
Location: Scotland
Posts Rated Helpful 0 Times
Dude just put a pane of glass or a wall in front of the tele destinations so players slam into them if they hit the teleport with enough inertia, presumably the teleporters are in a low place being a conc map, so players will almost always be hitting it with a lot of inertia. Just make sure theres no ledges or any way to hang around inside the teleport destination.

Another way would be to parent the destination to a moving brush, so it is always in motion people cant get teleported to the same place at the exact same time. Just make a func_movelinear and get it to go backwards and forwards, and if the destination is above player height, they will fall out and cant hang around in the destinaiton.
BumGravy is offline   Reply With Quote


Old 04-22-2008, 02:42 PM   #19
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
As long as there is a single destination there is always a chance of being stuck, even if it's moving. What we need is some anti-stuck code like HL1 could do with AMX or noblock plugin like CSS has where players can walk through eachother.
Jester is offline   Reply With Quote


Old 04-22-2008, 03:28 PM   #20
BumGravy
Black Cyclops
 
BumGravy's Avatar
 
Join Date: Mar 2007
Location: Scotland
Posts Rated Helpful 0 Times
Yes with teleports there is inevitably a chance that people will find a way to get stuck, the key is minimising the chance so it is negligible. If you use the method i describe above, there is a chance that two players will use the teleport at exactly the same time and be teleported into each other. This is a small chance because they would have to use it at exactly the same time.

Now, if you split your concmaps floor into multiple teleporters instead of one big one, and they each lead to seperate exits, then the only way for a player to get stuck is to fall into exactly the same place at exactly the same time. This mean sthere is still a slight possibility of players getting stuck.

Now, if you make each teleporter small enough so only one person can get through at a time, you greatly increase the amount of triggers you need to use, but make it impossible for 2 players to use the same teleporter at exactly the same time.

If the destination is high up or moving so they cant hang around inside it, they cant block it from other players teleporting, and so you make it almost impossible to get stuck. The only way remaining for a player to get stuck, is to actually conc or rocket jump through a destination - which is invisible and moving - at exactly the same time a player enters the teleport. If this remaining loophole is too much for you to bear and you can no longer get to sleep at night thinking about the possibility, then you can use trigger_push entitys to make access to the floating invisible moving teleport destinations one way only - ie if you try and get back into the area after a telporter throws you out of it, the push entity pushes you back and blocks you.

It is all about how much you care about the tiniest chance of players getting stuck against how much effort and resources it takes to make it impossible. usually a balance of both is satisfactory.

Last edited by BumGravy; 04-22-2008 at 03:41 PM.
BumGravy is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:52 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.