This commit is contained in:
INeedBots 2020-10-31 14:37:51 -06:00
parent 2219b684f1
commit 474c48e7d3

View File

@ -463,6 +463,9 @@ reload_thread()
self thread reload(); self thread reload();
} }
/*
Updates the bot's target bone
*/
updateBones() updateBones()
{ {
self endon("disconnect"); self endon("disconnect");
@ -479,6 +482,9 @@ updateBones()
} }
} }
/*
Creates the base target obj
*/
createTargetObj(ent, theTime) createTargetObj(ent, theTime)
{ {
obj = spawnStruct(); obj = spawnStruct();
@ -499,10 +505,16 @@ createTargetObj(ent, theTime)
return obj; return obj;
} }
/*
Updates the target object's difficulty missing aim, inaccurate shots
*/
updateAimOffset(obj) updateAimOffset(obj)
{ {
} }
/*
Updates the target object to be traced Has LOS
*/
targetObjUpdateTraced(obj, daDist, ent, theTime) targetObjUpdateTraced(obj, daDist, ent, theTime)
{ {
obj.no_trace_time = 0; obj.no_trace_time = 0;
@ -514,6 +526,9 @@ targetObjUpdateTraced(obj, daDist, ent, theTime)
updateAimOffset(obj); updateAimOffset(obj);
} }
/*
Updates the target object to be not traced No LOS
*/
targetObjUpdateNoTrace(obj) targetObjUpdateNoTrace(obj)
{ {
obj.no_trace_time += 50; obj.no_trace_time += 50;