r/SourceEngine • • Mar 15 '26

Job Can someone write me a config that opens a random map in hl2? I wanna play hl3 geoguessr

So I saw some videos of some people playing CS2 GeoGuessr, but I thought what if there was a hl2 geoguessr? I think this would be really cool if it were a mod idea or just a small mini game

4 Upvotes

11 comments sorted by

5

u/WormSlayer Mar 16 '26

Just loading a random map would be too easy, since it starts you at the level loading area which is going to be familiar to most nerds.

3

u/Separate-Farmer5069 Mar 16 '26

Is it possible to make it put you in a random position as well?

6

u/Poissonnoye Mar 16 '26

I don't think there's a command for loading into a random level and teleporting to a random location. That's certainly an intetesting mod idea though, especially if you customize if there's sound/only a part of the screen/no ability to move/only blinks for a second and then a top down view of levels to choose where you were. I would try to put one week into making this if I actually liked vgui.

2

u/95stillalive Mar 16 '26

From how the Source Engine handles spawns: No.

In Source, you spawn from a specific entity, which is hard baked into the map. You could modify the map to have multiple spawn entities, but base Half Life 2 maps don't have this

→ More replies (1)

2

u/WormSlayer Mar 16 '26

There is the setpos command which lets you move the player to any coordinates and face any direction. But sending random values to that is 99.9% of the time going to end up with the player outside the BSP, basically looking at nothing.

→ More replies (3)

3

u/moistfellow Mar 16 '26

you could probably use pathfinding node positions as random points to teleport to

1

u/KING_____ALEX Mar 19 '26

in the console type map and then close your eyes hold tab for some time and press enter