Notices

Alternative path for payload  Thread Tools Reply
Old 05-05-2012, 11:40 AM   #1
ics
L3: Junior Member
 
ics is offline
Posts: 165
Thanks: 44
Thanked: 34

Default Alternative path for payload


So i've been considering slight change on the payload map i am working on and i couldn't find much reference over internet about this issue. I'll explain what i want would like to do and what seems to happen if i do it.

I have path_track path_69, in which i have next stop target as path_70_alt_1 and branch path path_70. So basically the alt-way is enabled on the go and once the cart would read certain point on the track, i would trigger EnableAlternatePath so the track would change it's way to path_70 but problem is that the map crashes as soon as i join team (because the payload goal system cannot reach to the end and create visual path gui)

If i keep the original path from path_69 to path_70 and branch as path_70_alt_1 and switch for example on point capture with EnableAlternatePath, game crashes again. Anyone got such idea working like how switch from next stop target to branch path?

__________________
http://www.ics-base.net/
 
Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 05-05-2012, 12:45 PM   #2
yyler
Guest
 

Posts: n/a

Default Alternative path for payload


I think that the branching path logic on path_tracks is broken, and to my knowledge people that make branching payloads use I/Os to enable a path at random (starting with both disabled).

I wouldn't advise you do this. Firstly you are limited by the HUD--both paths need to be the same length or it completely breaks and becomes unusable. Secondly it's very difficult to balance. I believe the only "finished" map to do this is pl_Dyanamite (yes, capitalized) and it's not only really imbalanced but also quite a terribly done map in the first place. The maps that never got finished that used branching paths might be more balanced but again the strain of such an idea is so much that no one really finishes. I think nik was making one, if I remember right, and it never left alpha.
 
Reply With Quote
Old 05-05-2012, 01:25 PM   #3
ics
L3: Junior Member
 
ics is offline
Posts: 165
Thanks: 44
Thanked: 34

Default Alternative path for payload


Yeah i suspected that it could be broken as the hud won't adjust on the fly and trying to do so will cause game crash. But the main idea was that lets say if other team reaches fairly quick to CP1 and is onward on CP2, they have to take the longer route. When teams switch, if the other team nearly manages to CP1 and is onward to CP2, they would have the shorter route in their use. So i would disable the alternative way completely if there is little time left.

This is actually a quite far thought idea, as both teams will have the longer route (if they are both good) but would the player understand that, it is another case. I would hate to rely on random route picking as it completely breaks the idea.

I guess what i am trying to do is not possible atm.

__________________
http://www.ics-base.net/
 
Reply With Quote
Old 05-05-2012, 10:21 PM   #4
yyler
Guest
 

Posts: n/a

Default Alternative path for payload


It's not.
 
Reply With Quote
Old 05-05-2012, 10:46 PM   #5
fubarFX
Demopan extraordinaire
 
fubarFX's Avatar
 
fubarFX is offline
Posts: 918
Thanks: 343
Thanked: 643

Default Alternative path for payload


Quote:
Originally Posted by yyler View Post
It's not.
YES IT IS! everything is possible.
have you considered using the teleportToPathTrack input on func_tracktrain? that way you can get the cart on any path you want (crash free!) but I'm not sure the hud is going to work. There might be a way to fix the hud depending on your track layout but hey, one thing at a time.

__________________
| koth_occult | cp_vanguard | plr_dogbread | cp_omen | artpass_fubar | ctf_cesspool |
 
Reply With Quote
Old 05-06-2012, 03:39 AM   #6
ics
L3: Junior Member
 
ics is offline
Posts: 165
Thanks: 44
Thanked: 34

Default Alternative path for payload


I considered teleporting but it would make it jump from spot to another, thus, looking very stupid. It's used only on multiple stage payloads.

**EDIT**

Though.. if i make it teleport on same spot as it starts teleport from, just changing the path_track, it could work unless it's disappearing and appearing with delay. Interesting, I'll try that. Thanks.

__________________
http://www.ics-base.net/
 
Last edited by ics; 05-06-2012 at 03:48 AM. Reason: added edit
Reply With Quote
Old 05-06-2012, 07:52 AM   #7
nelli2
L1: Registered
 
nelli2 is offline
Posts: 42
Thanks: 7
Thanked: 0

Default alernat paths


just make sure paths are equal lenghts, make sure rollbacks etc. occur in the same are. here is a link to on of my maps that might help. http://forums.tf2maps.net/downloads.php?do=file&id=4870 also pl_clastic_heights has an alternate route example. just decomplie it. it is on the contest entry page for dynamic payload. it is my map. actually anyone can do the same if they want to.
nelli2
 
Reply With Quote
Old 05-06-2012, 12:58 PM   #8
ics
L3: Junior Member
 
ics is offline
Posts: 165
Thanks: 44
Thanked: 34

Default Alternative path for payload


Things will fail on the HUD, which makes my idea impossible to use. The idea was to extend other teams route on the track if they advance too fast (aka they are steamrolling the other team).

__________________
http://www.ics-base.net/
 
Reply With Quote
Old 05-07-2012, 05:13 PM   #9
nelli2
L1: Registered
 
nelli2 is offline
Posts: 42
Thanks: 7
Thanked: 0

Default Alternative path for payload


dude,
i got a vmf file at this link http://forums.tf2maps.net/downloads.php?do=file&id=4870 for you to look at plus a working map. feel free to use it! i think this is what your looking for. and the hud is just fine.
 
Reply With Quote
Old 05-07-2012, 05:52 PM   #10
Draco18s
When the &*%$ did I become a Veteran Member?
 
Draco18s is offline
Posts: 622
Thanks: 12
Thanked: 136

Default Alternative path for payload


Having actually fucked around with this...

It is very much possible to use alternate routes.

Here's the caveat:
The HUD does not update properly after setup is complete.

I'm failing to remember the exact conditions, but I believe the path would only properly update the HUD if the route moved from no roll zones to one with roll zones, and back. Things also get wonky if the route changes in length.

What I did for my Dynamic Payload contest entry is a bit of a hack. Simply, I set the default route to be path_start to path_end, then have the alternate on path_start to be the true next path, then I can do whatever modifications to the route I want to, then on setup end do the following (IIRC):

1) disable the team train watcher entity
2) switch path_start to it's alternate route (the true route)
3) re-enable the team train watcher
4) profit

If you'd like the uncompiled map to dissect, I'd be happy to supply that.
 
Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply  

Previous Thread Next Thread
Thread Tools

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



All times are GMT -5. The time now is 06:26 PM.