From 474c48e7d3d0ae5f005b9bf72f62d504b62e7629 Mon Sep 17 00:00:00 2001 From: INeedBots Date: Sat, 31 Oct 2020 14:37:51 -0600 Subject: [PATCH] Docs --- main_shared/maps/mp/bots/_bot_internal.gsc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/main_shared/maps/mp/bots/_bot_internal.gsc b/main_shared/maps/mp/bots/_bot_internal.gsc index 4036940..160265b 100644 --- a/main_shared/maps/mp/bots/_bot_internal.gsc +++ b/main_shared/maps/mp/bots/_bot_internal.gsc @@ -463,6 +463,9 @@ reload_thread() self thread reload(); } +/* + Updates the bot's target bone +*/ updateBones() { self endon("disconnect"); @@ -479,6 +482,9 @@ updateBones() } } +/* + Creates the base target obj +*/ createTargetObj(ent, theTime) { obj = spawnStruct(); @@ -499,10 +505,16 @@ createTargetObj(ent, theTime) return obj; } +/* + Updates the target object's difficulty missing aim, inaccurate shots +*/ updateAimOffset(obj) { } +/* + Updates the target object to be traced Has LOS +*/ targetObjUpdateTraced(obj, daDist, ent, theTime) { obj.no_trace_time = 0; @@ -514,6 +526,9 @@ targetObjUpdateTraced(obj, daDist, ent, theTime) updateAimOffset(obj); } +/* + Updates the target object to be not traced No LOS +*/ targetObjUpdateNoTrace(obj) { obj.no_trace_time += 50;