Please or Register to create posts and topics.

2 Problems with Linkages

Hi, I have 2 problems I've been trying to resolve, but no luck.

1st of all, my map uses portal linkages as a testing element. So, the user has access to 2 sets of portals... sort of like co-op alone. A few minor differences though.

First problem: I need to make it so portals can overwrite other portals, just like in co-op. For example, if you shot a portal from 1 linkage on a wall, and shot another portal on that same wall from the other linkage, it would overwrite the portal. This doesn't work with linkages, the portal you shoot will just spark. I tried switching all used linkages to linkage ID 1 and 2 (The co-op portal linkages) but still, you cannot overwrite portals. Not sure how to fix this.

Second problem: To switch linkages, there is a command. This command needs cheats to be activated. So, whenever you switch, it turns cheats on quickly. Is there anyway to make it so the yellow text, saying that cheats has been changed to 1 or 0, does not appear on the screen? Valve turned cheats on in the map where you destroy the neurotoxin (If I remember correctly, its sp_a2_bts4), but I can't figure out how they didn't make the yellow text appear. I can't decompile maps at the moment, so if someone could get to the bottom of this, that'd be great.

Thanks in advance.

My Hammer Maps
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal

What if you just turned cheats on once at the start, so the yellow text only showed up once? I mean, its better than having it come up every time you shoot a portal.

And actually, that allow mobile portals command doesn't require cheats (and I don't think that change portal linkage ID does either)

Alexander Bell wrote:
What if you just turned cheats on once at the start, so the yellow text only showed up once? I mean, its better than having it come up every time you shoot a portal.

And actually, that allow mobile portals command doesn't require cheats (and I don't think that change portal linkage ID does either)

Leaving cheats on the whole time? Not a good idea, really.
And yes, both of them do require cheats.

My Hammer Maps
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal
UsCobra11 wrote:
Alexander Bell wrote:
What if you just turned cheats on once at the start, so the yellow text only showed up once? I mean, its better than having it come up every time you shoot a portal.

And actually, that allow mobile portals command doesn't require cheats (and I don't think that change portal linkage ID does either)

Leaving cheats on the whole time? Not a good idea, really.
And yes, both of them do require cheats.

I'm pretty sure that the map where valve enables mobile portals uses an "enable-cheats-esque" command instead of sv_cheats 1. So whatever they did... doesn't show a text overlay on your screen. I can post the .vmf for that level if you want, but it'll be a few hours. Otherwise, you can find it yourself.

My Maps:
[spoiler][SP] Alternate[/spoiler]
Vordwann wrote:
I'm pretty sure that the map where valve enables mobile portals uses an "enable-cheats-esque" command instead of sv_cheats 1. So whatever they did... doesn't show a text overlay on your screen. I can post the .vmf for that level if you want, but it'll be a few hours. Otherwise, you can find it yourself.

That'd be great if you could post it, thanks.

My Hammer Maps
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal

I have been looking at that map myself, and I can't find anything related to cheats.
It may be the case that the mobile portal commands work without cheat mode ONLY if the map name is "sp_a2_bts4". (Or "sp_a2_bts5", not sure.)

Anyway, there is another variable called "hud_saytext_time", that you can set to 0 to suppress the yellow text. You have to do this about 0.1 seconds before issuing "sv_cheats 1".

Sendificate series: Sendificate | A Beam Too Far | Airtime | 302
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
HMW wrote:
I have been looking at that map myself, and I can't find anything related to cheats.
It may be the case that the mobile portal commands work without cheat mode ONLY if the map name is "sp_a2_bts4". (Or "sp_a2_bts5", not sure.)

Anyway, there is another variable called "hud_saytext_time", that you can set to 0 to suppress the yellow text. You have to do this about 0.1 seconds before issuing "sv_cheats 1".

Yep, I did some testing a while back.

The mobile portal thing seems to be hard coded around the map name being sp_a2_bts4 :(

My Portal2 Map: Trapped

My Travel Blog:
Image
HMW wrote:
I have been looking at that map myself, and I can't find anything related to cheats.
It may be the case that the mobile portal commands work without cheat mode ONLY if the map name is "sp_a2_bts4". (Or "sp_a2_bts5", not sure.)

Anyway, there is another variable called "hud_saytext_time", that you can set to 0 to suppress the yellow text. You have to do this about 0.1 seconds before issuing "sv_cheats 1".

Thanks, sounds good. I'll try it out later today.

My Hammer Maps
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal