Half-Life 2: Deathmatch

Half-Life 2: Deathmatch

How to show player spawnpoints in map?
How do you make the player spawnpoints visible in game? The one that displays the green low-poly Gordon model. I only need to know how to show the dm spawnpoints (not team spawnpoints). I scoured tons of dev forums but couldn't find anything.
< >
Mostrando 1-9 de 9 comentarios
feedays 5 AGO a las 19:12 
are you mapping? or just hosting maps on a/your server?
Publicado originalmente por feedays:
are you mapping? or just hosting maps on a/your server?
Neither. I'm just really confused about dm_resistance. Whenever I play it on any Fastpath server sooner or later I get spawned stuck in the displacements outside. When I try to replicate it by hosting the map myself it never happens so I just want to know if Fastpath adds spawnpoints or not.
Try sv_cheats 1 then map_showspawnpoints
It works in dods, not sure about others, I use it for waypointing in dods... https://www.dodbits.com/dods/index.php/dods/rcbot2-for-dod-s/rcbot2-waypointing-tips#spawnpoints

Edit: sorry I missed this.... "I only need to know how to show the dm spawnpoints (not team spawnpoints). "

So that's not what you want I guess.
Última edición por INsane [dodbits]; 6 AGO a las 6:57
Publicado originalmente por tofuwithrice:
Publicado originalmente por feedays:
are you mapping? or just hosting maps on a/your server?
Neither. I'm just really confused about dm_resistance. Whenever I play it on any Fastpath server sooner or later I get spawned stuck in the displacements outside. When I try to replicate it by hosting the map myself it never happens so I just want to know if Fastpath adds spawnpoints or not.

That's interesting.

Try and find out where you spawn when that happens... is it at the map origin?
That Linux server uses bots, we noted in dod:s, bots (RCBot2 bots not players after the 19th Feb Update) were randomly moving to the map origin... but only on a Linux dedicated server.

On some maps the map origin is under the map and even outside the map, so it possible this is a glitch may be related to what we see in dods/RCBot2 (after the last update).
Publicado originalmente por INsane dodbits:
Publicado originalmente por tofuwithrice:
Neither. I'm just really confused about dm_resistance. Whenever I play it on any Fastpath server sooner or later I get spawned stuck in the displacements outside. When I try to replicate it by hosting the map myself it never happens so I just want to know if Fastpath adds spawnpoints or not.

That's interesting.

Try and find out where you spawn when that happens... is it at the map origin?
That Linux server uses bots, we noted in dod:s, bots (RCBot2 bots not players after the 19th Feb Update) were randomly moving to the map origin... but only on a Linux dedicated server.

On some maps the map origin is under the map and even outside the map, so it possible this is a glitch may be related to what we see in dods/RCBot2 (after the last update).

It cannot be map origin since it's multiple spots where you clearly get stuck in the displacement (at least I think, I'm pretty sure there is a single set of coordinates for origin in each map)
Publicado originalmente por {EXILE}™GuitarSlayer:
To visualize deathmatch (DM) spawnpoints in Half-Life 2: Deathmatch (HL2DM), you're specifically looking for entities of type info_player_deathmatch. These are the spawnpoints used in free-for-all deathmatch mode, unlike info_player_teamspawn which is used for team-based modes.

Here’s how you can show or highlight them:

🛠️ Method 1: Use Hammer Editor
If you're working with the map source file (.vmf):

Open the map in Hammer Editor.

Use the Entity Report (Alt + R) and filter by info_player_deathmatch.

You’ll see a list of all DM spawnpoints and can click to highlight them in the 3D view.

You can also place temporary markers or overlays near them for visibility.

🧩 Method 2: Use a Server Plugin or Script
If you're working in-game or on a live server:

Option A: SourceMod + Custom Plugin
You can write a simple SourceMod plugin to draw debug overlays at each DM spawnpoint:

cpp
public void OnMapStart()
{
int entity = -1;
while ((entity = FindEntityByClassname(entity, "info_player_deathmatch")) != -1)
{
float pos[3];
GetEntPropVector(entity, Prop_Send, "m_vecOrigin", pos);
TE_SetupBeamRingPoint(pos, 10.0, 50.0, g_BeamSprite, g_HaloSprite, 0, 15, 2.0, 5.0, {255, 0, 0, 255}, 0, 0);
TE_SendToAll();
}
}
This draws a red ring at each spawnpoint when the map starts. You can customize the effect or use DebugDrawBox for a more static overlay.

Option B: SDKHooks + DebugDraw
If you prefer SDKHooks:

cpp
DebugDrawBox(pos, Float:{-10.0, -10.0, 0.0}, Float:{10.0, 10.0, 40.0}, 255, 0, 0, 255, 10.0);
This draws a red box at each spawnpoint for 10 seconds.

🧪 Method 3: Console Commands (Limited)
If you don’t want to use plugins, you can try:

ent_dump info_player_deathmatch — Lists entity info in console.

ent_fire info_player_deathmatch addoutput "color 255 0 0" — Attempts to change color (may not be visible).

sv_cheats 1 + cl_drawhud 0 + r_drawentities 1 — Shows raw entities, but this is very rough and not ideal.

I have never played on Fastpath, So it could also not be map, could be server, ive ended up in spots where i should not on my own server and it was not the maps, it was mods that did it, but im also not a map maker. hope some of this helps.

Thanks for all the options. None of the console commands gave me the result I was hoping for and I'll look into the other stuff later. Regarding mods: I looked into the game files and didn't find anything regarding this issue. Nontheless I uninstalled all modifications from other modes (zombie escape, co-op etc.) including maps and tried to play on fastpath servers again and the same issue occured (subsequently looking into the files also showed no changes).

My last theory is that the spawnpoints exist in the map but were disabled in the 20th anniversary update. I think this *might* be the case because:

1) before the update you would never get stuck in dm_resistance at those same spots

2) entity report says there are 20 deathmatch spawnpoints in that map but I was only able to spawn in 17 of them

So I think it could be that the Fastpath server has these spawnpoint enabled. From what I know changing values in entities doesn't require a change to the .vmf file.
Sorry i could not help ya.
Publicado originalmente por tofuwithrice:
Publicado originalmente por feedays:
are you mapping? or just hosting maps on a/your server?
Neither. I'm just really confused about dm_resistance. Whenever I play it on any Fastpath server sooner or later I get spawned stuck in the displacements outside. When I try to replicate it by hosting the map myself it never happens so I just want to know if Fastpath adds spawnpoints or not.
Because FastPath adds additional spawn points. They do it for all the maps. None of the original level designed spawn points have this issue.
Publicado originalmente por Peter Brev:
Publicado originalmente por tofuwithrice:
Neither. I'm just really confused about dm_resistance. Whenever I play it on any Fastpath server sooner or later I get spawned stuck in the displacements outside. When I try to replicate it by hosting the map myself it never happens so I just want to know if Fastpath adds spawnpoints or not.
Because FastPath adds additional spawn points. They do it for all the maps. None of the original level designed spawn points have this issue.

THANK YOU. I suspected this to be the case. I'm not sure how they do it without needing the players to download a seperate .vmf file but that's a mystery I feel comfortable not knowing the answer to.
< >
Mostrando 1-9 de 9 comentarios
Por página: 1530 50