diff --git a/raw/scripts/bots_test.gsc b/raw/scripts/bots_test.gsc index 629f4cb..b5dbacc 100644 --- a/raw/scripts/bots_test.gsc +++ b/raw/scripts/bots_test.gsc @@ -20,7 +20,7 @@ onframe() { 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() { self endon("disconnect"); self endon("death"); wait 0.5; + + //self giveAllKillstreaks(); } test()