2 Problems with Linkages
Quote from UsCobra11 on August 12, 2012, 2:15 pmHi, 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.
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.
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal
Quote from Alexander Bell on August 12, 2012, 2:41 pmWhat 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)
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)
Quote from UsCobra11 on August 12, 2012, 3:17 pmAlexander 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.
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.
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal
Quote from Vordwann on August 12, 2012, 3:33 pmUsCobra11 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.
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.
[spoiler][SP] Alternate[/spoiler]
Quote from UsCobra11 on August 12, 2012, 3:41 pmVordwann 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.
That'd be great if you could post it, thanks.
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal
Quote from HMW on August 17, 2012, 7:41 amI 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".
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".
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
Quote from Robdon on August 17, 2012, 8:26 amHMW 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
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
Quote from UsCobra11 on August 17, 2012, 8:47 amHMW 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.
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.
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal