Skip to content

Commit

Permalink
update jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAFile committed Jul 25, 2018
1 parent 5ec2f51 commit f054046
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
16 changes: 4 additions & 12 deletions piqueserver/scripts/aimbot2.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
KILLS_IN_TIME = WARN_ADMIN
MULTIPLE_BULLETS = WARN_ADMIN

DETECT_DAMAGE_HACK = True

# Minimum amount of time that must pass between admin warnings that are
# triggered by the same detection method. Time is in seconds.
WARN_INTERVAL_MINIMUM = 300
Expand Down Expand Up @@ -381,18 +379,12 @@ def on_hit(self, hit_amount, hit_player, hit_type, grenade):
self.multiple_bullets_eject()
return False
elif self.weapon == SMG_WEAPON:
if not (hit_amount in SMG_DAMAGE) and DETECT_DAMAGE_HACK:
self.smg_hits += 1
if self.multiple_bullets_count >= SMG_MULTIPLE_BULLETS_MAX:
self.multiple_bullets_eject()
return False
else:
self.smg_hits += 1
if self.multiple_bullets_count >= SMG_MULTIPLE_BULLETS_MAX:
self.multiple_bullets_eject()
return False
elif self.weapon == SHOTGUN_WEAPON:
if not (hit_amount in SHOTGUN_DAMAGE) and DETECT_DAMAGE_HACK:
return False
elif shotgun_use:
self.shotgun_hits += 1
self.shotgun_hits += 1

return connection.on_hit(
self, hit_amount, hit_player, hit_type, grenade)
Expand Down
2 changes: 1 addition & 1 deletion piqueserver/web/templates/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>{{server.name}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
Expand Down

0 comments on commit f054046

Please sign in to comment.