mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
ok
This commit is contained in:
parent
04d6dc13c5
commit
2b123797ea
@ -1234,11 +1234,31 @@ killCampAfterTime(time)
|
||||
self notify("kill_camp_bot");
|
||||
}
|
||||
|
||||
killCampAfterEntGone(ent)
|
||||
{
|
||||
self endon("death");
|
||||
self endon("disconnect");
|
||||
self endon("kill_camp_bot");
|
||||
|
||||
for (;;)
|
||||
{
|
||||
wait 0.05;
|
||||
|
||||
if (!isDefined(ent))
|
||||
break;
|
||||
}
|
||||
|
||||
self ClearScriptGoal();
|
||||
self ClearScriptAimPos();
|
||||
|
||||
self notify("kill_camp_bot");
|
||||
}
|
||||
|
||||
CampAtSpot(origin, angles)
|
||||
{
|
||||
self endon("kill_camp_bot");
|
||||
|
||||
self SetScriptGoal(origin, 16);
|
||||
self SetScriptGoal(origin, 64);
|
||||
if (isDefined(angles))
|
||||
{
|
||||
self SetScriptAimPos(origin + AnglesToForward(angles) * 2048);
|
||||
|
Loading…
x
Reference in New Issue
Block a user