View difference between Paste ID: 3TefjUuh and NS1g81sy
SHOW: | | - or go back to the newest paste.
1
function printPos() {
2
  local = Entity.GetLocalPlayer();
3
  flags = Entity.GetProp(local, "CBasePlayer", "m_fFlags");
4
  isDucking = false;
5
  isFakeDucking = false;
6
  isHoldingE = false;
7-
  isOverriding = false;
7+
8
  if(Input.IsKeyPressed(0x45)) {
9
    isHoldingE = true;
10
  }
11
12
  if(UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
13
    isFakeDucking = true;
14
  }
15
16
  if(flags & (1<<2) && !isFakeDucking) {
17
    isDucking = true;
18
  }
19
  stance = "";
20
    stance += isFakeDucking ? stance += "Fake duck " : isDucking ? "Crouch " : "Stand ";
21-
  if(UI.IsHotkeyActive("Rage", "GENERAL", "Accuracy", "Minimum damage (on key)")) {
21+
22-
    isOverriding = true;
22+
23
24
  string = "[ " + "\"location\", \"" + stance + "\", " + DAMAGE_INT + ", [" + Entity.GetHitboxPosition(local, 0) + "], [" + Local.GetViewAngles() + " ], \"Wallbang/Oneway\" ]\n";
25
26
  Cheat.Print(string);
27
}
28
29
UI.AddHotkey("Location Dev Tool");
30-
  dmg = isOverriding;
30+
31-
  string = "[ " + "\"location\", \"" + stance + "\", " + dmg + ", [" + Entity.GetHitboxPosition(local, 0) + "], [" + Local.GetViewAngles() + " ], \"Wallbang/Oneway\" ]\n";
31+
32
  if(UI.IsHotkeyActive("Script items", "Location Dev Tool"))
33
    printPos();
34
}
35
36
Cheat.RegisterCallback("Draw", "check_key");