mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 02:15:42 +00:00
aimoffset
This commit is contained in:
parent
3aa3ea10bb
commit
c13f0b3e24
@ -519,6 +519,8 @@ target()
|
|||||||
obj.didlook = false;
|
obj.didlook = false;
|
||||||
obj.isplay = isPlayer(ent);
|
obj.isplay = isPlayer(ent);
|
||||||
obj.offset = self.bot.script_target_offset;
|
obj.offset = self.bot.script_target_offset;
|
||||||
|
obj.bone = undefined;
|
||||||
|
obj.aim_offset = undefined;
|
||||||
|
|
||||||
self.bot.targets[key] = obj;
|
self.bot.targets[key] = obj;
|
||||||
}
|
}
|
||||||
@ -583,6 +585,8 @@ target()
|
|||||||
obj.didlook = false;
|
obj.didlook = false;
|
||||||
obj.isplay = isPlayer(player);
|
obj.isplay = isPlayer(player);
|
||||||
obj.offset = undefined;
|
obj.offset = undefined;
|
||||||
|
obj.bone = undefined;
|
||||||
|
obj.aim_offset = undefined;
|
||||||
|
|
||||||
self.bot.targets[key] = obj;
|
self.bot.targets[key] = obj;
|
||||||
}
|
}
|
||||||
@ -646,6 +650,8 @@ target()
|
|||||||
obj.didlook = false;
|
obj.didlook = false;
|
||||||
obj.isplay = isPlayer(player);
|
obj.isplay = isPlayer(player);
|
||||||
obj.offset = undefined;
|
obj.offset = undefined;
|
||||||
|
obj.bone = undefined;
|
||||||
|
obj.aim_offset = undefined;
|
||||||
|
|
||||||
self.bot.targets[key] = obj;
|
self.bot.targets[key] = obj;
|
||||||
}
|
}
|
||||||
@ -880,6 +886,10 @@ aim()
|
|||||||
if (!isDefined(offset))
|
if (!isDefined(offset))
|
||||||
offset = (0, 0, 0);
|
offset = (0, 0, 0);
|
||||||
|
|
||||||
|
aimoffset = self.bot.target.aim_offset;
|
||||||
|
if (!isDefined(aimoffset))
|
||||||
|
aimoffset = (0, 0, 0);
|
||||||
|
|
||||||
dist = self.bot.target.dist;
|
dist = self.bot.target.dist;
|
||||||
rand = self.bot.target.rand;
|
rand = self.bot.target.rand;
|
||||||
no_trace_ads_time = self.pers["bots"]["skill"]["no_trace_ads_time"];
|
no_trace_ads_time = self.pers["bots"]["skill"]["no_trace_ads_time"];
|
||||||
@ -933,6 +943,7 @@ aim()
|
|||||||
{
|
{
|
||||||
aimpos = target getTagOrigin( bone );
|
aimpos = target getTagOrigin( bone );
|
||||||
aimpos += offset;
|
aimpos += offset;
|
||||||
|
aimpos += aimoffset;
|
||||||
aimpos += (0, 0, nadeAimOffset);
|
aimpos += (0, 0, nadeAimOffset);
|
||||||
|
|
||||||
conedot = getConeDot(aimpos, eyePos, angles);
|
conedot = getConeDot(aimpos, eyePos, angles);
|
||||||
@ -946,6 +957,7 @@ aim()
|
|||||||
{
|
{
|
||||||
aimpos = target.origin;
|
aimpos = target.origin;
|
||||||
aimpos += offset;
|
aimpos += offset;
|
||||||
|
aimpos += aimoffset;
|
||||||
aimpos += (0, 0, nadeAimOffset);
|
aimpos += (0, 0, nadeAimOffset);
|
||||||
|
|
||||||
conedot = getConeDot(aimpos, eyePos, angles);
|
conedot = getConeDot(aimpos, eyePos, angles);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user