mirror of
				https://github.com/ineedbots/iw3_bot_warfare.git
				synced 2025-10-31 00:16:58 +00:00 
			
		
		
		
	Docs
This commit is contained in:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user