mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
doc
This commit is contained in:
parent
d6ea6e0d35
commit
b76ceb73d3
@ -1602,6 +1602,9 @@ reload_thread()
|
|||||||
self thread reload();
|
self thread reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Updates the bot's target bone
|
||||||
|
*/
|
||||||
updateBones()
|
updateBones()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -1621,6 +1624,9 @@ updateBones()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Creates the base target obj
|
||||||
|
*/
|
||||||
createTargetObj(ent, theTime)
|
createTargetObj(ent, theTime)
|
||||||
{
|
{
|
||||||
obj = spawnStruct();
|
obj = spawnStruct();
|
||||||
@ -1641,10 +1647,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;
|
||||||
@ -1656,6 +1668,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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user