aimbot
Who the bots aim at, per-player overrides, bot state, and shots of your own.
Functions
aimbot.target
aimbot.target([bot]) -> Entity, hitbox, point, bot| Name | Type | Description |
|---|---|---|
| botoptional | string | "rage" or "legit"; omitted tries rage first. |
Current target, hitbox index and aim point.
Returns nil when there is no target
- It's the last command's pick, so inside on_create_move it's one command old.
- A bot that stopped (off, knife out) reports nothing after 250 ms.
aimbot.state
aimbot.state([bot]) -> table| Name | Type | Description |
|---|---|---|
| botoptional | string | "rage" or "legit". Default rage when active, else legit. |
What a bot is doing right now.
Returns {bot, active, phase, weapon_config, fov, smooth, hitchance, min_damage}
- phase: "idle", "scanning", "waiting" or "shooting", from the last command.
- weapon_config is the config section, like "ak47"; nil without a gun.
- smooth and hitchance are legit only.
aimbot.set_override
aimbot.set_override(player, opts)| Name | Type | Description |
|---|---|---|
| player | Entity | integer | |
| opts.ignoreoptional | boolean | Never shoot this player. |
| opts.force_bodyoptional | boolean | Stomach and chest only. |
| opts.priorityoptional | integer | Added to the on_aim_target priority. |
| opts.hitchanceoptional | integer | 0..100, trigger only. |
| opts.min_damageoptional | integer | Least damage to shoot. |
Change how the bots treat one player.
- nil instead of opts clears it. Fields left out use the menu value.
- Each script keeps its own; they go away with the script. At most 256.
aimbot.get_override
aimbot.get_override(player) -> table| Name | Type |
|---|---|
| player | Entity | integer |
This script's override for the player.
Returns nil when none
aimbot.clear_override
aimbot.clear_override([player])| Name | Type | Description |
|---|---|---|
| playeroptional | Entity | integer | Default all. |
Clear one player's override, or all of this script's.
aimbot.shoot
aimbot.shoot(target [, opts]) -> boolean| Name | Type | Description |
|---|---|---|
| target | Vector | Angle | World point, or the angle to send. |
| opts.modeoptional | string | "psilent": only the shot carries the aim. "silent": every command does, view stays. "visible": view turns. Default "psilent". |
| opts.fireoptional | boolean | false aims only; you shoot. Default true. |
| opts.compensateoptional | boolean | Remove recoil and spread on the shot. Default true. |
| opts.playeroptional | Entity | integer | Player aimed at, so on_aim_hit / on_aim_miss report it. |
| opts.hitboxoptional | integer | Hitbox reported with the shot. |
Aim this command at a point or angle and shoot when the weapon is ready.
Returns true when the weapon can fire this command
- Call it from on_create_move, every command you want to aim.
- Skipped on a command the rage bot aims on, and in Safe Mode.
- Anti-aim, freecam and freelook leave the command alone.