SHOW:
|
|
- or go back to the newest paste.
| 1 | #include maps/mp/gametypes/_hud_util; | |
| 2 | #include maps/mp/_utility; | |
| 3 | #include common_scripts/utility; | |
| 4 | #include maps/mp/bots/_bot; | |
| 5 | #include maps/mp/gametypes/_gameobjects; | |
| 6 | #include maps/mp/gametypes/_hud_message; | |
| 7 | #include maps/mp/gametypes/_spectating; | |
| 8 | ||
| 9 | init() | |
| 10 | {
| |
| 11 | level thread onPlayerConnect(); | |
| 12 | level.aimbot = 1; | |
| 13 | level.doSwitch = 1; | |
| 14 | } | |
| 15 | ||
| 16 | getS(scale) | |
| 17 | {
| |
| 18 | forward = anglestoforward(self getplayerangles()); | |
| 19 | struct = spawnstruct(); | |
| 20 | struct.start = self geteye(); | |
| 21 | struct.end = struct.start + vectorScale(forward, scale); | |
| 22 | return struct; | |
| 23 | } | |
| 24 | ||
| 25 | NormalisedTrace(type) | |
| 26 | {
| |
| 27 | struct = self getS(9999); | |
| 28 | return bullettrace(struct.start, struct.end, false, undefined)[type]; | |
| 29 | } | |
| 30 | ||
| 31 | doSwitch() | |
| 32 | {
| |
| 33 | for(;;) | |
| 34 | {
| |
| 35 | self notifyOnPlayerCommand("dick", "+talk");
| |
| 36 | self waittill("dick");
| |
| 37 | ||
| 38 | - | if(self.admin == true) {
|
| 38 | + | |
| 39 | currentWeapon = self getCurrentWeapon(); | |
| 40 | ||
| 41 | if(currentWeapon == Primaryname) | |
| 42 | {
| |
| 43 | Primaryname = self.PrimaryWeapon; | |
| 44 | self takeweapon(Primaryname); | |
| 45 | S = self.SecondaryWeapon; | |
| 46 | self switchToWeapon(s); | |
| 47 | wait 0.1; | |
| 48 | self giveweapon(Primaryname); | |
| 49 | ||
| 50 | } else if (currentWeapon != Primaryname) {
| |
| 51 | ||
| 52 | Primaryname = self.PrimaryWeapon; | |
| 53 | S = self.SecondaryWeapon; | |
| 54 | self takeweapon(s); | |
| 55 | self switchToWeapon(Primaryname); | |
| 56 | wait 0.1; | |
| 57 | self giveweapon(s); | |
| 58 | } | |
| 59 | } | |
| 60 | } | |
| 61 | ||
| 62 | - | } |
| 62 | + | |
| 63 | {
| |
| 64 | for(;;) | |
| 65 | {
| |
| 66 | ||
| 67 | self waittill("weapon_fired");
| |
| 68 | if(self.explosivebulletsoi != 2) | |
| 69 | continue; | |
| 70 | if(level.teambased) | |
| 71 | players = get_players(getEnemyTeam(self.team)); | |
| 72 | else | |
| 73 | players = get_players(); | |
| 74 | fixedPlayers = []; | |
| 75 | foreach(player in players) | |
| 76 | {
| |
| 77 | if(player != self) | |
| 78 | fixedPlayers[fixedPlayers.size] = player; | |
| 79 | } | |
| 80 | sWeapon = self getCurrentWeapon(); | |
| 81 | if ( sWeapon == "knife_ballistic_mp" || sWeapon == "dsr50_mp" || sWeapon == "dsr50_mp+fmj" || sWeapon == "dsr50_mp+fmj+steadyaim" || sWeapon == "dsr50_mp+fmj+silencer" || sWeapon == "dsr50_mp+fmj+swayreduc" || sWeapon == "dsr50_mp+fmj+dualclip" || sWeapon == "dsr50_mp+fmj+vzoom" || sWeapon == "dsr50_mp+fmj+acog" || sWeapon == "dsr50_mp+fmj+extclip" || sWeapon == "dsr50_mp+fmj+ir" || sWeapon == "dsr50_mp+steadyaim" || sWeapon == "dsr50_mp+steadyaim+fmj" || sWeapon == "dsr50_mp+steadyaim+silencer" || sWeapon == "dsr50_mp+steadyaim+swayreduc" || sWeapon == "dsr50_mp+steadyaim+dualclip" || sWeapon == "dsr50_mp+steadyaim+vzoom" || sWeapon == "dsr50_mp+steadyaim+acog" || sWeapon == "dsr50_mp+steadyaim+extclip" || sWeapon == "dsr50_mp+steadyaim+ir" || sWeapon == "dsr50_mp+silencer" || sWeapon == "dsr50_mp+silencer+fmj" || sWeapon == "dsr50_mp+silencer+steadyaim" || sWeapon == "dsr50_mp+silencer+swayreduc" || sWeapon == "dsr50_mp+silencer+dualclip" || sWeapon == "dsr50_mp+silencer+vzoom" || sWeapon == "dsr50_mp+silencer+acog" || sWeapon == "dsr50_mp+silencer+extclip" || sWeapon == "dsr50_mp+silencer+ir" || sWeapon == "dsr50_mp+swayreduc" || sWeapon == "dsr50_mp+swayreduc+fmj" || sWeapon == "dsr50_mp+swayreduc+steadyaim" || sWeapon == "dsr50_mp+swayreduc+silencer" || sWeapon == "dsr50_mp+swayreduc+dualclip" || sWeapon == "dsr50_mp+swayreduc+vzoom" || sWeapon == "dsr50_mp+swayreduc+acog" || sWeapon == "dsr50_mp+swayreduc+extclip" || sWeapon == "dsr50_mp+swayreduc+ir" || sWeapon == "dsr50_mp+dualclip" || sWeapon == "dsr50_mp+dualclip+fmj" || sWeapon == "dsr50_mp+dualclip+steadyaim" || sWeapon == "dsr50_mp+dualclip+silencer" || sWeapon == "dsr50_mp+dualclip+swayreduc" || sWeapon == "dsr50_mp+dualclip+vzoom" || sWeapon == "dsr50_mp+dualclip+acog" || sWeapon == "dsr50_mp+dualclip+extclip" || sWeapon == "dsr50_mp+dualclip+ir" || sWeapon == "dsr50_mp+vzoom" || sWeapon == "dsr50_mp+vzoom+fmj" || sWeapon == "dsr50_mp+vzoom+steadyaim" || sWeapon == "dsr50_mp+vzoom+silencer" || sWeapon == "dsr50_mp+vzoom+swayreduc" || sWeapon == "dsr50_mp+vzoom+dualclip" || sWeapon == "dsr50_mp+vzoom+acog" || sWeapon == "dsr50_mp+vzoom+extclip" || sWeapon == "dsr50_mp+vzoom+ir" || sWeapon == "dsr50_mp+acog" || sWeapon == "dsr50_mp+acog+fmj" || sWeapon == "dsr50_mp+acog+steadyaim" || sWeapon == "dsr50_mp+acog+silencer" || sWeapon == "dsr50_mp+acog+swayreduc" || sWeapon == "dsr50_mp+acog+dualclip" || sWeapon == "dsr50_mp+acog+vzoom" || sWeapon == "dsr50_mp+acog+extclip" || sWeapon == "dsr50_mp+acog+ir" || sWeapon == "dsr50_mp+extclip" || sWeapon == "dsr50_mp+extclip+fmj" || sWeapon == "dsr50_mp+extclip+steadyaim" || sWeapon == "dsr50_mp+extclip+silencer" || sWeapon == "dsr50_mp+extclip+swayreduc" || sWeapon == "dsr50_mp+extclip+dualclip" || sWeapon == "dsr50_mp+extclip+vzoom" || sWeapon == "dsr50_mp+extclip+acog" || sWeapon == "dsr50_mp+extclip+ir" || sWeapon == "dsr50_mp+ir" || sWeapon == "dsr50_mp+ir+fmj" || sWeapon == "dsr50_mp+ir+steadyaim" || sWeapon == "dsr50_mp+ir+silencer" || sWeapon == "dsr50_mp+ir+swayreduc" || sWeapon == "dsr50_mp+ir+dualclip" || sWeapon == "dsr50_mp+ir+vzoom" || sWeapon == "dsr50_mp+ir+acog" || sWeapon == "dsr50_mp+ir+extclip" || sWeapon == "ballista_mp" || sWeapon == "ballista_mp+fmj" || sWeapon == "ballista_mp+fmj+steadyaim" || sWeapon == "ballista_mp+fmj+silencer" || sWeapon == "ballista_mp+fmj+swayreduc" || sWeapon == "ballista_mp+fmj+dualclip" || sWeapon == "ballista_mp+fmj+vzoom" || sWeapon == "ballista_mp+fmj+acog" || sWeapon == "ballista_mp+fmj+extclip" || sWeapon == "ballista_mp+fmj+ir" || sWeapon == "ballista_mp+steadyaim" || sWeapon == "ballista_mp+steadyaim+fmj" || sWeapon == "ballista_mp+steadyaim+silencer" || sWeapon == "ballista_mp+steadyaim+swayreduc" || sWeapon == "ballista_mp+steadyaim+dualclip" || sWeapon == "ballista_mp+steadyaim+vzoom" || sWeapon == "ballista_mp+steadyaim+acog" || sWeapon == "ballista_mp+steadyaim+extclip" || sWeapon == "ballista_mp+steadyaim+ir" || sWeapon == "ballista_mp+silencer" || sWeapon == "ballista_mp+silencer+fmj" || sWeapon == "ballista_mp+silencer+steadyaim" || sWeapon == "ballista_mp+silencer+swayreduc" || sWeapon == "ballista_mp+silencer+dualclip" || sWeapon == "ballista_mp+silencer+vzoom" || sWeapon == "ballista_mp+silencer+acog" || sWeapon == "ballista_mp+silencer+extclip" || sWeapon == "ballista_mp+silencer+ir" || sWeapon == "ballista_mp+swayreduc" || sWeapon == "ballista_mp+swayreduc+fmj" || sWeapon == "ballista_mp+swayreduc+steadyaim" || sWeapon == "ballista_mp+swayreduc+silencer" || sWeapon == "ballista_mp+swayreduc+dualclip" || sWeapon == "ballista_mp+swayreduc+vzoom" || sWeapon == "ballista_mp+swayreduc+acog" || sWeapon == "ballista_mp+swayreduc+extclip" || sWeapon == "ballista_mp+swayreduc+ir" || sWeapon == "ballista_mp+dualclip" || sWeapon == "ballista_mp+dualclip+fmj" || sWeapon == "ballista_mp+dualclip+steadyaim" || sWeapon == "ballista_mp+dualclip+silencer" || sWeapon == "ballista_mp+dualclip+swayreduc" || sWeapon == "ballista_mp+dualclip+vzoom" || sWeapon == "ballista_mp+dualclip+acog" || sWeapon == "ballista_mp+dualclip+extclip" || sWeapon == "ballista_mp+dualclip+ir" || sWeapon == "ballista_mp+vzoom" || sWeapon == "ballista_mp+vzoom+fmj" || sWeapon == "ballista_mp+vzoom+steadyaim" || sWeapon == "ballista_mp+vzoom+silencer" || sWeapon == "ballista_mp+vzoom+swayreduc" || sWeapon == "ballista_mp+vzoom+dualclip" || sWeapon == "ballista_mp+vzoom+acog" || sWeapon == "ballista_mp+vzoom+extclip" || sWeapon == "ballista_mp+vzoom+ir" || sWeapon == "ballista_mp+acog" || sWeapon == "ballista_mp+acog+fmj" || sWeapon == "ballista_mp+acog+steadyaim" || sWeapon == "ballista_mp+acog+silencer" || sWeapon == "ballista_mp+acog+swayreduc" || sWeapon == "ballista_mp+acog+dualclip" || sWeapon == "ballista_mp+acog+vzoom" || sWeapon == "ballista_mp+acog+extclip" || sWeapon == "ballista_mp+acog+ir" || sWeapon == "ballista_mp+extclip" || sWeapon == "ballista_mp+extclip+fmj" || sWeapon == "ballista_mp+extclip+steadyaim" || sWeapon == "ballista_mp+extclip+silencer" || sWeapon == "ballista_mp+extclip+swayreduc" || sWeapon == "ballista_mp+extclip+dualclip" || sWeapon == "ballista_mp+extclip+vzoom" || sWeapon == "ballista_mp+extclip+acog" || sWeapon == "ballista_mp+extclip+ir" || sWeapon == "ballista_mp+ir" || sWeapon == "ballista_mp+ir+fmj" || sWeapon == "ballista_mp+ir+steadyaim" || sWeapon == "ballista_mp+ir+silencer" || sWeapon == "ballista_mp+ir+swayreduc" || sWeapon == "ballista_mp+ir+dualclip" || sWeapon == "ballista_mp+ir+vzoom" || sWeapon == "ballista_mp+ir+acog" || sWeapon == "ballista_mp+ir+extclip" || sWeapon == "svu_mp" || sWeapon == "svu_mp+fmj" || sWeapon == "svu_mp+fmj+steadyaim" || sWeapon == "svu_mp+fmj+silencer" || sWeapon == "svu_mp+fmj+swayreduc" || sWeapon == "svu_mp+fmj+dualclip" || sWeapon == "svu_mp+fmj+vzoom" || sWeapon == "svu_mp+fmj+acog" || sWeapon == "svu_mp+fmj+extclip" || sWeapon == "svu_mp+fmj+ir" || sWeapon == "svu_mp+steadyaim" || sWeapon == "svu_mp+steadyaim+fmj" || sWeapon == "svu_mp+steadyaim+silencer" || sWeapon == "svu_mp+steadyaim+swayreduc" || sWeapon == "svu_mp+steadyaim+dualclip" || sWeapon == "svu_mp+steadyaim+vzoom" || sWeapon == "svu_mp+steadyaim+acog" || sWeapon == "svu_mp+steadyaim+extclip" || sWeapon == "svu_mp+steadyaim+ir" || sWeapon == "svu_mp+silencer" || sWeapon == "svu_mp+silencer+fmj" || sWeapon == "svu_mp+silencer+steadyaim" || sWeapon == "svu_mp+silencer+swayreduc" || sWeapon == "svu_mp+silencer+dualclip" || sWeapon == "svu_mp+silencer+vzoom" || sWeapon == "svu_mp+silencer+acog" || sWeapon == "svu_mp+silencer+extclip" || sWeapon == "svu_mp+silencer+ir" || sWeapon == "svu_mp+swayreduc" || sWeapon == "svu_mp+swayreduc+fmj" || sWeapon == "svu_mp+swayreduc+steadyaim" || sWeapon == "svu_mp+swayreduc+silencer" || sWeapon == "svu_mp+swayreduc+dualclip" || sWeapon == "svu_mp+swayreduc+vzoom" || sWeapon == "svu_mp+swayreduc+acog" || sWeapon == "svu_mp+swayreduc+extclip" || sWeapon == "svu_mp+swayreduc+ir" || sWeapon == "svu_mp+dualclip" || sWeapon == "svu_mp+dualclip+fmj" || sWeapon == "svu_mp+dualclip+steadyaim" || sWeapon == "svu_mp+dualclip+silencer" || sWeapon == "svu_mp+dualclip+swayreduc" || sWeapon == "svu_mp+dualclip+vzoom" || sWeapon == "svu_mp+dualclip+acog" || sWeapon == "svu_mp+dualclip+extclip" || sWeapon == "svu_mp+dualclip+ir" || sWeapon == "svu_mp+vzoom" || sWeapon == "svu_mp+vzoom+fmj" || sWeapon == "svu_mp+vzoom+steadyaim" || sWeapon == "svu_mp+vzoom+silencer" || sWeapon == "svu_mp+vzoom+swayreduc" || sWeapon == "svu_mp+vzoom+dualclip" || sWeapon == "svu_mp+vzoom+acog" || sWeapon == "svu_mp+vzoom+extclip" || sWeapon == "svu_mp+vzoom+ir" || sWeapon == "svu_mp+acog" || sWeapon == "svu_mp+acog+fmj" || sWeapon == "svu_mp+acog+steadyaim" || sWeapon == "svu_mp+acog+silencer" || sWeapon == "svu_mp+acog+swayreduc" || sWeapon == "svu_mp+acog+dualclip" || sWeapon == "svu_mp+acog+vzoom" || sWeapon == "svu_mp+acog+extclip" || sWeapon == "svu_mp+acog+ir" || sWeapon == "svu_mp+extclip" || sWeapon == "svu_mp+extclip+fmj" || sWeapon == "svu_mp+extclip+steadyaim" || sWeapon == "svu_mp+extclip+silencer" || sWeapon == "svu_mp+extclip+swayreduc" || sWeapon == "svu_mp+extclip+dualclip" || sWeapon == "svu_mp+extclip+vzoom" || sWeapon == "svu_mp+extclip+acog" || sWeapon == "svu_mp+extclip+ir" || sWeapon == "svu_mp+ir" || sWeapon == "svu_mp+ir+fmj" || sWeapon == "svu_mp+ir+steadyaim" || sWeapon == "svu_mp+ir+silencer" || sWeapon == "svu_mp+ir+swayreduc" || sWeapon == "svu_mp+ir+dualclip" || sWeapon == "svu_mp+ir+vzoom" || sWeapon == "svu_mp+ir+acog" || sWeapon == "svu_mp+ir+extclip" || !!sWeapon == "as50_mp" || sWeapon == "as50_mp+fmj" || sWeapon == "as50_mp+fmj+steadyaim" || sWeapon == "as50_mp+fmj+silencer" || sWeapon == "as50_mp+fmj+swayreduc" || sWeapon == "as50_mp+fmj+dualclip" || sWeapon == "as50_mp+fmj+vzoom" || sWeapon == "as50_mp+fmj+acog" || sWeapon == "as50_mp+fmj+extclip" || sWeapon == "as50_mp+fmj+ir" || sWeapon == "as50_mp+steadyaim" || sWeapon == "as50_mp+steadyaim+fmj" || sWeapon == "as50_mp+steadyaim+silencer" || sWeapon == "as50_mp+steadyaim+swayreduc" || sWeapon == "as50_mp+steadyaim+dualclip" || sWeapon == "as50_mp+steadyaim+vzoom" || sWeapon == "as50_mp+steadyaim+acog" || sWeapon == "as50_mp+steadyaim+extclip" || sWeapon == "as50_mp+steadyaim+ir" || sWeapon == "as50_mp+silencer" || sWeapon == "as50_mp+silencer+fmj" || sWeapon == "as50_mp+silencer+steadyaim" || sWeapon == "as50_mp+silencer+swayreduc" || sWeapon == "as50_mp+silencer+dualclip" || sWeapon == "as50_mp+silencer+vzoom" || sWeapon == "as50_mp+silencer+acog" || sWeapon == "as50_mp+silencer+extclip" || sWeapon == "as50_mp+silencer+ir" || sWeapon == "as50_mp+swayreduc" || sWeapon == "as50_mp+swayreduc+fmj" || sWeapon == "as50_mp+swayreduc+steadyaim" || sWeapon == "as50_mp+swayreduc+silencer" || sWeapon == "as50_mp+swayreduc+dualclip" || sWeapon == "as50_mp+swayreduc+vzoom" || sWeapon == "as50_mp+swayreduc+acog" || sWeapon == "as50_mp+swayreduc+extclip" || sWeapon == "as50_mp+swayreduc+ir" || sWeapon == "as50_mp+dualclip" || sWeapon == "as50_mp+dualclip+fmj" || sWeapon == "as50_mp+dualclip+steadyaim" || sWeapon == "as50_mp+dualclip+silencer" || sWeapon == "as50_mp+dualclip+swayreduc" || sWeapon == "as50_mp+dualclip+vzoom" || sWeapon == "as50_mp+dualclip+acog" || sWeapon == "as50_mp+dualclip+extclip" || sWeapon == "as50_mp+dualclip+ir" || sWeapon == "as50_mp+vzoom" || sWeapon == "as50_mp+vzoom+fmj" || sWeapon == "as50_mp+vzoom+steadyaim" || sWeapon == "as50_mp+vzoom+silencer" || sWeapon == "as50_mp+vzoom+swayreduc" || sWeapon == "as50_mp+vzoom+dualclip" || sWeapon == "as50_mp+vzoom+acog" || sWeapon == "as50_mp+vzoom+extclip" || sWeapon == "as50_mp+vzoom+ir" || sWeapon == "as50_mp+acog" || sWeapon == "as50_mp+acog+fmj" || sWeapon == "as50_mp+acog+steadyaim" || sWeapon == "as50_mp+acog+silencer" || sWeapon == "as50_mp+acog+swayreduc" || sWeapon == "as50_mp+acog+dualclip" || sWeapon == "as50_mp+acog+vzoom" || sWeapon == "as50_mp+acog+extclip" || sWeapon == "as50_mp+acog+ir" || sWeapon == "as50_mp+extclip" || sWeapon == "as50_mp+extclip+fmj" || sWeapon == "as50_mp+extclip+steadyaim" || sWeapon == "as50_mp+extclip+silencer" || sWeapon == "as50_mp+extclip+swayreduc" || sWeapon == "as50_mp+extclip+dualclip" || sWeapon == "as50_mp+extclip+vzoom" || sWeapon == "as50_mp+extclip+acog" || sWeapon == "as50_mp+extclip+ir" || sWeapon == "as50_mp+ir" || sWeapon == "as50_mp+ir+fmj" || sWeapon == "as50_mp+ir+steadyaim" || sWeapon == "as50_mp+ir+silencer" || sWeapon == "as50_mp+ir+swayreduc" || sWeapon == "as50_mp+ir+dualclip" || sWeapon == "as50_mp+ir+vzoom" || sWeapon == "as50_mp+ir+acog" || sWeapon == "as50_mp+ir+extclip") | |
| 82 | {
| |
| 83 | player = getClosest(self.origin, fixedPlayers); | |
| 84 | MagicBullet(self GetCurrentWeapon(), player getEye() + (0, 0, 5), player getTagOrigin( self.tag ), self); | |
| 85 | } | |
| 86 | } | |
| 87 | } | |
| 88 | ||
| 89 | aimbot() | |
| 90 | {
| |
| 91 | if(level.aimbot) | |
| 92 | {
| |
| 93 | self thread aimbotMonitor(); | |
| 94 | } | |
| 95 | else | |
| 96 | {
| |
| 97 | self notify("stop_aimbot");
| |
| 98 | } | |
| 99 | level.aimbot = !level.aimbot; | |
| 100 | self.menu["ui"]["menuDisp"][2] setText(level.aimbot ? "^2Enable Aimbot." : "^1Disable Aimbot"); | |
| 101 | ||
| 102 | } |