-
Автор темы
- #1
dodge = [1,1,1,1]
dodge_phase = 3
phase_xd = 0
_antibrute_ = false
api = {
distance: function(a, b) {
var ax = a[0]
var ay = a[1]
var az = a[2]
var bx = b[0]
var by = b[1]
var bz = b[2]
var dx = ax - bx
var dy = ay - by
var dz = az - bz
return Math.sqrt( dx * dx + dy * dy + dz * dz );
},
}
register_callback('bullet_impact', function() {
dodge = [math.random_int(0, 100),math.random_int(0, 100),math.random_int(0, 100),math.random_int(0, 100),math.random_int(0, 100)]
x = current_event.get_float("x")
y = current_event.get_float("y")
z = current_event.get_float("z")
xyz = [x,y,z]
var userid = entity.get_player_for_user_id(current_event.get_int("userid"))
var attacker = entity.get_player_for_user_id(current_event.get_int("attacker"))
var userid_info = entity.get_player_info(userid);
var attacker_info = entity.get_player_info(attacker);
lp = entity.get_local_player()
distance = api.distance(xyz,entity.get_origin(lp))
if (attacker != entity.get_local_player()) {
if (Math.round(distance) < 160){
if (phase_xd > dodge_phase){ phase_xd = 1 }
_antibrute_ = true
phase_xd = phase_xd +1
if (vars.is_bind_active("inverter")) {
vars.set_bind_active("inverter", false);
}else{
vars.set_bind_active("inverter", true);
}
}
}
});
function main() {
if (_antibrute_) {
at_t = at_t + 1
if(at_t>1000) {
at_t = 0
_antibrute_ = false
}
vars.set_int("antiaim.trigger[0].desync_amount", dodge[phase_xd])
vars.set_int("antiaim.trigger[1].desync_amount", dodge[phase_xd])
vars.set_int("antiaim.trigger[2].desync_amount", dodge[phase_xd])
vars.set_int("antiaim.trigger[3].desync_amount", dodge[phase_xd])
vars.set_int("antiaim.trigger[4].desync_amount", dodge[phase_xd])
}
}
register_callback('render', main)
dodge_phase = 3
phase_xd = 0
_antibrute_ = false
api = {
distance: function(a, b) {
var ax = a[0]
var ay = a[1]
var az = a[2]
var bx = b[0]
var by = b[1]
var bz = b[2]
var dx = ax - bx
var dy = ay - by
var dz = az - bz
return Math.sqrt( dx * dx + dy * dy + dz * dz );
},
}
register_callback('bullet_impact', function() {
dodge = [math.random_int(0, 100),math.random_int(0, 100),math.random_int(0, 100),math.random_int(0, 100),math.random_int(0, 100)]
x = current_event.get_float("x")
y = current_event.get_float("y")
z = current_event.get_float("z")
xyz = [x,y,z]
var userid = entity.get_player_for_user_id(current_event.get_int("userid"))
var attacker = entity.get_player_for_user_id(current_event.get_int("attacker"))
var userid_info = entity.get_player_info(userid);
var attacker_info = entity.get_player_info(attacker);
lp = entity.get_local_player()
distance = api.distance(xyz,entity.get_origin(lp))
if (attacker != entity.get_local_player()) {
if (Math.round(distance) < 160){
if (phase_xd > dodge_phase){ phase_xd = 1 }
_antibrute_ = true
phase_xd = phase_xd +1
if (vars.is_bind_active("inverter")) {
vars.set_bind_active("inverter", false);
}else{
vars.set_bind_active("inverter", true);
}
}
}
});
function main() {
if (_antibrute_) {
at_t = at_t + 1
if(at_t>1000) {
at_t = 0
_antibrute_ = false
}
vars.set_int("antiaim.trigger[0].desync_amount", dodge[phase_xd])
vars.set_int("antiaim.trigger[1].desync_amount", dodge[phase_xd])
vars.set_int("antiaim.trigger[2].desync_amount", dodge[phase_xd])
vars.set_int("antiaim.trigger[3].desync_amount", dodge[phase_xd])
vars.set_int("antiaim.trigger[4].desync_amount", dodge[phase_xd])
}
}
register_callback('render', main)
Последнее редактирование: