How can I change portal linkage ids in hammer?

Avatar
Axon9000
36 Posts
Posted Mar 25, 2018
I want to be able to change the portal likage id through hammer. I was trying to acomplish this through a point_servercommand entity, however this requires sv_cheats to be enabled. Is there any way to do this without using point_servercommand?
Advertisement
Registered users don't see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Apr 19, 2018
Replied 24 days later
It is possible to change the ids in game, a map I made had fun with this concept.

FreakyChicken's Portals of Doom and Friendship prt1

I can't remember if I put decomplile protection in. But you are welcome to decompile the map and take a look.
https://developer.valvesoftware.com/wiki/Decompiling_Maps

&

Avatar
Kwinten
40 Posts
Posted Apr 19, 2018
Replied 15 hours later
Depending of what you want to do with it.. Do you want to play a coop map solo ? Or to have 4 portals in SP ?
Avoid to use point_servercommand since it has some bugs, use point_clientcommand instead, and i think this one doesn't require cheats enabled
Advertisement
Registered users don't see ads! Register now!
Avatar
Axon9000
36 Posts
Posted Apr 23, 2018
Replied 4 days later

ChickenMobile wrote:
It is possible to change the ids in game, a map I made had fun with this concept.
https://developer.valvesoftware.com/wiki/Decompiling_Maps

Ah, definitely quite a useful asset, and decompile protection is indeed off. Thanks you for this.

Kwinten06 wrote:
Depending of what you want to do with it.. Do you want to play a coop map solo ? Or to have 4 portals in SP ? Avoid to use point_servercommand since it has some bugs, use point_clientcommand instead, and i think this one doesn't require cheats enabled

I was trying to allow the player to use four portals in singleplayer, fortunately, I was able to figure this out on my own. I used a .nut file to force the player to send "sv_cheats 1" and "change_portal_linkage_id 1" to the console. Then I simply hid this chat with another command (which I can't think of right now)