2 Problems with Linkages

Avatar
UsCobra11
272 Posts
Posted Aug 12, 2012
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.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Alexander Bell
306 Posts
Posted Aug 12, 2012
Replied 25 minutes later
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)

Avatar
UsCobra11
272 Posts
Posted Aug 12, 2012
Replied 35 minutes later

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.

Avatar
Vordwann
767 Posts
Posted Aug 12, 2012
Replied 15 minutes later

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.

Avatar
UsCobra11
272 Posts
Posted Aug 12, 2012
Replied 8 minutes later

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.

Avatar
HMW
806 Posts
Posted Aug 17, 2012
Replied 4 days later
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".

Avatar
Robdon
204 Posts
Posted Aug 17, 2012
Replied 45 minutes later

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 :sad:

Advertisement
Registered users don’t see ads! Register now!
Avatar
UsCobra11
272 Posts
Posted Aug 17, 2012
Replied 20 minutes later

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.