controller aimbot
This commit is contained in:
@@ -182,9 +182,24 @@
|
|||||||
var Behaviour = new PlayerBehaviour()
|
var Behaviour = new PlayerBehaviour()
|
||||||
var loop = Behaviour.secs()
|
var loop = Behaviour.secs()
|
||||||
|
|
||||||
|
function isUsingController() {
|
||||||
|
return !mp.game.controls.isInputDisabled(0);
|
||||||
|
}
|
||||||
|
|
||||||
mp.events.add("render", () => {
|
mp.events.add("render", () => {
|
||||||
mp.game.player.setHealthRechargeMultiplier(0);
|
mp.game.player.setHealthRechargeMultiplier(0);
|
||||||
|
|
||||||
|
if (isUsingController()) {
|
||||||
|
mp.game.controls.disableControlAction(32, 24, true);
|
||||||
|
mp.game.controls.disableControlAction(32, 25, true);
|
||||||
|
|
||||||
|
mp.game.controls.disableControlAction(32, 91, true);
|
||||||
|
mp.game.controls.disableControlAction(32, 92, true);
|
||||||
|
|
||||||
|
mp.game.controls.disableControlAction(32, 69, true);
|
||||||
|
mp.game.controls.disableControlAction(32, 70, true);
|
||||||
|
}
|
||||||
|
|
||||||
Behaviour.health = Number(mp.players.local.getHealth()) + Number(mp.players.local.getArmour())
|
Behaviour.health = Number(mp.players.local.getHealth()) + Number(mp.players.local.getArmour())
|
||||||
if (loop < Behaviour.secs()) {
|
if (loop < Behaviour.secs()) {
|
||||||
if (Behaviour.active) {
|
if (Behaviour.active) {
|
||||||
|
|||||||
Reference in New Issue
Block a user