mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-26 07:34:50 +00:00
Merge branch 'ineedbots:master' into master
This commit is contained in:
commit
ee457c4595
@ -20,7 +20,7 @@ onframe()
|
|||||||
{
|
{
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
|
|
||||||
if(getDvarInt("developer")) print("time:" + getTime() + " child0:" + getVarUsage(0) + " child1:" + getVarUsage(1) + " notifycount:" + getVarUsage(2));
|
if(getDvarInt("developer")) print("time:" + getTime() + " child0:" + getVarUsage(0) + " child1:" + getVarUsage(1) + " notifycount:" + getVarUsage(2) + " sound:" + getVarUsage(3, 2140) + " fx:" + getVarUsage(3, 2780) + " vol:" + getVarUsage(3, 3036) + " anim:" + getVarUsage(3, 3681) + " veh:" + getVarUsage(3, 2108) + " localstr:" + getVarUsage(3, 469) + " mat:" + getVarUsage(3, 3084) + " 3340:" + getVarUsage(3, 3340) + " 2524:" + getVarUsage(3, 2524));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,12 +47,37 @@ onSpawn()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
giveAllKillstreaks()
|
||||||
|
{
|
||||||
|
killstreaks = maps\mp\bots\_bot_script::getKillstreaks();
|
||||||
|
|
||||||
|
for ( i = 0; i < killstreaks.size; i++ )
|
||||||
|
{
|
||||||
|
j = randomInt(killstreaks.size);
|
||||||
|
ks = killstreaks[i];
|
||||||
|
killstreaks[i] = killstreaks[j];
|
||||||
|
killstreaks[j] = ks;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i = 0; i < killstreaks.size; i++)
|
||||||
|
{
|
||||||
|
ks = killstreaks[i];
|
||||||
|
|
||||||
|
if (isSubstr(ks, "specialty_"))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
self maps\mp\killstreaks\_killstreaks::giveKillstreak(ks);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
spawned()
|
spawned()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
self endon("death");
|
self endon("death");
|
||||||
|
|
||||||
wait 0.5;
|
wait 0.5;
|
||||||
|
|
||||||
|
//self giveAllKillstreaks();
|
||||||
}
|
}
|
||||||
|
|
||||||
test()
|
test()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user