mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 13:55:43 +00:00
doc string
This commit is contained in:
parent
91eeac0fdd
commit
fdbd5c1e17
@ -86,6 +86,9 @@ onDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
onGiveLoadout()
|
onGiveLoadout()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -97,6 +100,9 @@ onGiveLoadout()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
onGameEnded()
|
onGameEnded()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -105,6 +111,9 @@ onGameEnded()
|
|||||||
self botsDeleteFakeAnim();
|
self botsDeleteFakeAnim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
onDisconnected()
|
onDisconnected()
|
||||||
{
|
{
|
||||||
self waittill("disconnect");
|
self waittill("disconnect");
|
||||||
@ -213,6 +222,9 @@ onPlayerSpawned()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
ti_fix()
|
ti_fix()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -229,6 +241,9 @@ ti_fix()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
jav_loc_watch()
|
jav_loc_watch()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -258,6 +273,9 @@ jav_loc_watch()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchJavLock()
|
watchJavLock()
|
||||||
{
|
{
|
||||||
self endon("bot_kill_lockon_jav");
|
self endon("bot_kill_lockon_jav");
|
||||||
@ -281,6 +299,9 @@ watchJavLock()
|
|||||||
self notify("bot_kill_lockon_jav");
|
self notify("bot_kill_lockon_jav");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchJavLockHas()
|
watchJavLockHas()
|
||||||
{
|
{
|
||||||
self endon("bot_kill_lockon_jav");
|
self endon("bot_kill_lockon_jav");
|
||||||
@ -296,6 +317,9 @@ watchJavLockHas()
|
|||||||
self notify("bot_kill_lockon_jav");
|
self notify("bot_kill_lockon_jav");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchJavLockEvents()
|
watchJavLockEvents()
|
||||||
{
|
{
|
||||||
self endon("bot_kill_lockon_jav");
|
self endon("bot_kill_lockon_jav");
|
||||||
@ -308,6 +332,9 @@ watchJavLockEvents()
|
|||||||
self notify("bot_kill_lockon_jav");
|
self notify("bot_kill_lockon_jav");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
lockon_watch()
|
lockon_watch()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -342,6 +369,9 @@ lockon_watch()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
doLockon()
|
doLockon()
|
||||||
{
|
{
|
||||||
self endon("bot_kill_lockon");
|
self endon("bot_kill_lockon");
|
||||||
@ -382,6 +412,9 @@ doLockon()
|
|||||||
self notify("bot_kill_lockon");
|
self notify("bot_kill_lockon");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchBotLockonTrace()
|
watchBotLockonTrace()
|
||||||
{
|
{
|
||||||
self endon("death");
|
self endon("death");
|
||||||
@ -394,6 +427,9 @@ watchBotLockonTrace()
|
|||||||
self notify("bot_kill_lockon");
|
self notify("bot_kill_lockon");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchBotLockonEvents()
|
watchBotLockonEvents()
|
||||||
{
|
{
|
||||||
self endon("death");
|
self endon("death");
|
||||||
@ -405,6 +441,9 @@ watchBotLockonEvents()
|
|||||||
self notify("bot_kill_lockon");
|
self notify("bot_kill_lockon");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
doRocketLockingSound()
|
doRocketLockingSound()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -430,6 +469,9 @@ doRocketLockingSound()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
doRocketLockedSound()
|
doRocketLockedSound()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -454,6 +496,9 @@ doRocketLockedSound()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
UseRunThink()
|
UseRunThink()
|
||||||
{
|
{
|
||||||
self endon("death");
|
self endon("death");
|
||||||
@ -490,6 +535,9 @@ UseRunThink()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
doRunDelay()
|
doRunDelay()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -505,6 +553,9 @@ doRunDelay()
|
|||||||
self.bot.runningafter = false;
|
self.bot.runningafter = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
stanceHack()
|
stanceHack()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -528,6 +579,9 @@ stanceHack()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
grenade_watch()
|
grenade_watch()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -546,6 +600,9 @@ grenade_watch()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
doFragAfterThread()
|
doFragAfterThread()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -556,6 +613,9 @@ doFragAfterThread()
|
|||||||
self.bot.isfraggingafter = false;
|
self.bot.isfraggingafter = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
emptyClipShoot()
|
emptyClipShoot()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -577,6 +637,9 @@ emptyClipShoot()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
checkShouldHideAnim(shouldHideAnim)
|
checkShouldHideAnim(shouldHideAnim)
|
||||||
{
|
{
|
||||||
isHidden = self isFakeAnimHidden();
|
isHidden = self isFakeAnimHidden();
|
||||||
@ -593,6 +656,9 @@ checkShouldHideAnim(shouldHideAnim)
|
|||||||
self hideFakeAnim();
|
self hideFakeAnim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
moveHack()
|
moveHack()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -881,6 +947,9 @@ moveHack()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
fireHack()
|
fireHack()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -924,6 +993,9 @@ fireHack()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
adsHack()
|
adsHack()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -1008,6 +1080,9 @@ onWeaponChange()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
doNoneSwitch()
|
doNoneSwitch()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -1029,6 +1104,9 @@ doNoneSwitch()
|
|||||||
self SetSpawnWeapon(weap);
|
self SetSpawnWeapon(weap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
doSwitch(newWeapon)
|
doSwitch(newWeapon)
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -1070,6 +1148,9 @@ reload_watch()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
onLastStand()
|
onLastStand()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -1103,6 +1184,9 @@ onLastStand()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchUsingRemote()
|
watchUsingRemote()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -1143,6 +1227,9 @@ watchUsingRemote()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchUsingMinigun()
|
watchUsingMinigun()
|
||||||
{
|
{
|
||||||
self endon("heliPlayer_removed");
|
self endon("heliPlayer_removed");
|
||||||
@ -1161,6 +1248,9 @@ watchUsingMinigun()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchAc130Weapon()
|
watchAc130Weapon()
|
||||||
{
|
{
|
||||||
self endon("ac130player_removed");
|
self endon("ac130player_removed");
|
||||||
@ -1181,6 +1271,9 @@ watchAc130Weapon()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchUsingAc130()
|
watchUsingAc130()
|
||||||
{
|
{
|
||||||
self endon("ac130player_removed");
|
self endon("ac130player_removed");
|
||||||
@ -1220,6 +1313,9 @@ spawned()
|
|||||||
self notify("bot_spawned");
|
self notify("bot_spawned");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
grenade_danager()
|
grenade_danager()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -1288,6 +1384,9 @@ grenade_danager()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
watchThrowback(frag)
|
watchThrowback(frag)
|
||||||
{
|
{
|
||||||
self endon("bot_kill_throwback");
|
self endon("bot_kill_throwback");
|
||||||
@ -2047,6 +2146,9 @@ isInRange(dist, curweap)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
killWalkCauseNoWaypoints()
|
killWalkCauseNoWaypoints()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
@ -2567,6 +2669,9 @@ reload()
|
|||||||
// the script should reload for us.
|
// the script should reload for us.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
botThrowGrenade(grenName, grenTime)
|
botThrowGrenade(grenName, grenTime)
|
||||||
{
|
{
|
||||||
self endon("death");
|
self endon("death");
|
||||||
@ -2622,6 +2727,9 @@ botThrowGrenade(grenName, grenTime)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
pressAds(time)
|
pressAds(time)
|
||||||
{
|
{
|
||||||
self endon("death");
|
self endon("death");
|
||||||
@ -2640,11 +2748,17 @@ pressAds(time)
|
|||||||
self ads(false);
|
self ads(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
ads(what)
|
ads(what)
|
||||||
{
|
{
|
||||||
self.bot.ads_pressed = what;
|
self.bot.ads_pressed = what;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
pressFire(time)
|
pressFire(time)
|
||||||
{
|
{
|
||||||
self endon("death");
|
self endon("death");
|
||||||
@ -2663,6 +2777,9 @@ pressFire(time)
|
|||||||
self fire(false);
|
self fire(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
fire(what)
|
fire(what)
|
||||||
{
|
{
|
||||||
self.bot.fire_pressed = what;
|
self.bot.fire_pressed = what;
|
||||||
@ -2740,11 +2857,17 @@ prone()
|
|||||||
self.bot.stance = "prone";
|
self.bot.stance = "prone";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
botMoveTo(to)
|
botMoveTo(to)
|
||||||
{
|
{
|
||||||
self.bot.moveTo = to;
|
self.bot.moveTo = to;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
sprint()
|
sprint()
|
||||||
{
|
{
|
||||||
if (self.bot.run_time < 2.0)
|
if (self.bot.run_time < 2.0)
|
||||||
@ -2754,6 +2877,9 @@ sprint()
|
|||||||
self.bot.runningafter = true;
|
self.bot.runningafter = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
bot_lookat(pos, time)
|
bot_lookat(pos, time)
|
||||||
{
|
{
|
||||||
self notify("bots_aim_overlap");
|
self notify("bots_aim_overlap");
|
||||||
@ -2799,6 +2925,9 @@ bot_lookat(pos, time)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
isInActiveAnim()
|
isInActiveAnim()
|
||||||
{
|
{
|
||||||
if (!isDefined(self.bot_anim))
|
if (!isDefined(self.bot_anim))
|
||||||
@ -2807,6 +2936,9 @@ isInActiveAnim()
|
|||||||
return (self.bot_anim.inActiveAnim);
|
return (self.bot_anim.inActiveAnim);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
botDoingAnim(animName)
|
botDoingAnim(animName)
|
||||||
{
|
{
|
||||||
if (!isDefined(self.bot_anim))
|
if (!isDefined(self.bot_anim))
|
||||||
@ -2815,6 +2947,9 @@ botDoingAnim(animName)
|
|||||||
return (self.bot_anim.animation == animName);
|
return (self.bot_anim.animation == animName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
botDoAnim(animName, time, isActiveAnim)
|
botDoAnim(animName, time, isActiveAnim)
|
||||||
{
|
{
|
||||||
self endon("death");
|
self endon("death");
|
||||||
@ -2841,6 +2976,9 @@ botDoAnim(animName, time, isActiveAnim)
|
|||||||
self.bot_anim.inActiveAnim = false;
|
self.bot_anim.inActiveAnim = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
makeFakeAnim()
|
makeFakeAnim()
|
||||||
{
|
{
|
||||||
if(isDefined(self.bot_anim))
|
if(isDefined(self.bot_anim))
|
||||||
@ -2863,6 +3001,9 @@ makeFakeAnim()
|
|||||||
self showFakeAnim();
|
self showFakeAnim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
botsDeleteFakeAnim()
|
botsDeleteFakeAnim()
|
||||||
{
|
{
|
||||||
if(!isDefined(self.bot_anim))
|
if(!isDefined(self.bot_anim))
|
||||||
@ -2878,6 +3019,9 @@ botsDeleteFakeAnim()
|
|||||||
self.bot_anim = undefined;
|
self.bot_anim = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
isFakeAnimHidden()
|
isFakeAnimHidden()
|
||||||
{
|
{
|
||||||
if (!isDefined(self.bot_anim))
|
if (!isDefined(self.bot_anim))
|
||||||
@ -2886,6 +3030,9 @@ isFakeAnimHidden()
|
|||||||
return (self.bot_anim.hidden);
|
return (self.bot_anim.hidden);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
showFakeAnim()
|
showFakeAnim()
|
||||||
{
|
{
|
||||||
if(isDefined(self))
|
if(isDefined(self))
|
||||||
@ -2902,6 +3049,9 @@ showFakeAnim()
|
|||||||
self.bot_anim.headmodel show();
|
self.bot_anim.headmodel show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
hideFakeAnim()
|
hideFakeAnim()
|
||||||
{
|
{
|
||||||
if(isDefined(self))
|
if(isDefined(self))
|
||||||
@ -2918,6 +3068,9 @@ hideFakeAnim()
|
|||||||
self.bot_anim.headmodel hide();
|
self.bot_anim.headmodel hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
botHideParts()
|
botHideParts()
|
||||||
{
|
{
|
||||||
//hideallparts
|
//hideallparts
|
||||||
@ -2929,6 +3082,9 @@ botHideParts()
|
|||||||
self hidepart("j_clavicle_le");
|
self hidepart("j_clavicle_le");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
botShowParts()
|
botShowParts()
|
||||||
{
|
{
|
||||||
self showpart("j_ankle_le");
|
self showpart("j_ankle_le");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user