Skip to content

Commit

Permalink
Nothing special
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikusch committed Feb 26, 2025
1 parent 32f2b90 commit f86a4e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/sourcemod/scripting/mitm/behavior/tf_bot_behavior.sp
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@ static int Update(CTFBotMainAction action, int actor, float interval)
{
LogMessage("\"%L\" underground (position \"%3.2f %3.2f %3.2f\")", actor, origin[0], origin[1], origin[2]);

// teleport bot to a reasonable place
float center[3];
myArea.GetCenter(center);
TeleportEntity(actor, center);

// teleport bot to a reasonable place
CBaseEntity(actor).SetAbsOrigin(center);
}
}
else
Expand Down Expand Up @@ -228,6 +229,7 @@ static int OnInjured(CTFBotMainAction action, CBaseCombatCharacter actor, CBaseE
{
if (damagecustom == TF_CUSTOM_BACKSTAB)
{
// backstabs that don't kill me make me mad
CTFPlayer(actor).DelayedThreatNotice(inflictor, 0.5, "Invader_DelayedThreatNotice_Spy");
}
}
Expand Down

0 comments on commit f86a4e9

Please sign in to comment.