Skip to content

Commit

Permalink
Change back to SetAbsOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikusch committed Feb 21, 2025
1 parent eb96a2f commit bd6d1f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/sourcemod/scripting/mitm/dhooks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,7 @@ static MRESReturn DHookCallback_CTFBotSpawner_Spawn_Pre(CTFBotSpawner spawner, D
spawner.GetName(name, sizeof(name), "TFBot");
newBot.SetInvaderName(name, mitm_rename_robots.BoolValue);

SetEntPropVector(g_internalSpawnPoint, Prop_Data, "m_vecAbsOrigin", here);
// CBaseEntity(g_internalSpawnPoint).SetAbsOrigin(here); // FIXME this causes crashes after the latest update, add it back later
CBaseEntity(g_internalSpawnPoint).SetAbsOrigin(here);
CBaseEntity(g_internalSpawnPoint).SetLocalAngles(ZERO_VECTOR);
newBot.SetSpawnPoint(g_internalSpawnPoint);

Expand Down

0 comments on commit bd6d1f4

Please sign in to comment.