# AHK Problems with sv\_alternateticks

**URL:** <https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227>\
**Category:** ⚙ Technical Support\
**Created:** [August 6, 2013, 2:46am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227 "2013-08-06T02:46:38Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 6, 2013, 2:46am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/1 "2013-08-06T02:46:38Z")

</div>

For some reason every time I try to use my Bhop/ABH script in Half-Life 2 games,(base, Episode 1, Episode 2 etc.) It NEVER works. Don’t know why or how this is caused(It may be the fact that I move in slo-mo unless I set sv\_alternateticks to 0). Its not a problem with the script, cause it works with Portal, Portal 2 and everything else. I have scoured the internet for fixes and have not been successful.

Worst case scenario: no fixes so are there any alias/autoexecs I could use in AHK’s stead?

---

<div class="post-metadata">

**Author:** ![execut4ble](https://b-cdn.sourceruns.org/user_avatar/forums.sourceruns.org/execut4ble/32/14_2.png) [@execut4ble](https://forums.sourceruns.org/u/execut4ble)\
**Post date:** [August 6, 2013, 9:32am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/2 "2013-08-06T09:32:00Z")

</div>

[http://wiki.sourceruns.org/wiki/AutoHotkey/Scripts](http://wiki.sourceruns.org/wiki/AutoHotkey/Scripts) - this page might help you to set up properly.

---

<div class="post-metadata">

**Author:** ![Kaito\_Kid](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/k/35a633/32.png) [@Kaito\_Kid](https://forums.sourceruns.org/u/Kaito_Kid)\
**Post date:** [August 6, 2013, 3:16pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/3 "2013-08-06T15:16:45Z")

</div>

the script doesn’t work at all or it works but too slowly to use it properly?  
if it doesn’t work at all, try the game chat (or console) to see if you spam spaces in there, if not try to alt-tab and test the script somwhere else while hl2 is running, that will help identify the problem

---

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 6, 2013, 3:31pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/4 "2013-08-06T15:31:47Z")

</div>

It looks like the problem is with the script. I have it activated, and its doing nothing. I copied the lines of code straight from the sourceruns wiki.

EDIT: Nope its definitely Half-Life 2. Cause its working now.

---

<div class="post-metadata">

**Author:** ![execut4ble](https://b-cdn.sourceruns.org/user_avatar/forums.sourceruns.org/execut4ble/32/14_2.png) [@execut4ble](https://forums.sourceruns.org/u/execut4ble)\
**Post date:** [August 6, 2013, 7:42pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/5 "2013-08-06T19:42:49Z")

</div>

See if you have any #IfWinActive tags and remove them.

---

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 6, 2013, 7:45pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/6 "2013-08-06T19:45:51Z")

</div>

I have no clue what #IfWinActive tags are and have no idea how to remove them.

---

<div class="post-metadata">

**Author:** ![S11](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@S11](https://forums.sourceruns.org/u/S11)\
**Post date:** [August 6, 2013, 11:02pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/7 "2013-08-06T23:02:22Z")

</div>

Is your game running at a low framerate?

---

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 6, 2013, 11:58pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/8 "2013-08-06T23:58:21Z")

</div>

No, it runs at a constant 60 frames.

---

<div class="post-metadata">

**Author:** ![Myaah](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@Myaah](https://forums.sourceruns.org/u/Myaah)\
**Post date:** [August 7, 2013, 1:18am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/9 "2013-08-07T01:18:40Z")

</div>

Do you use host\_timescale?

---

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 7, 2013, 1:33am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/10 "2013-08-07T01:33:32Z")

</div>

Since I have no clue what that does, assume no. The only console commands I use tend to be the following:

```auto
sv_cheats 1
noclip
god
impulse 101
sv_gravity
sv_alternateticks 1
cl_first_person_uses_world_model 1

```

---

<div class="post-metadata">

**Author:** ![S11](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@S11](https://forums.sourceruns.org/u/S11)\
**Post date:** [August 7, 2013, 1:46am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/11 "2013-08-07T01:46:37Z")

</div>

dafuq does sv\_alternateticks do

---

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 7, 2013, 2:14am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/12 "2013-08-07T02:14:39Z")

</div>

sv\_alternateticks is the command i use to fix a slow-motion bug i have in Half-Life 2, unless i set its value to 0 I will run, walk, jump, in slow-motion. The weird part is that ALL other NPCs move at normal speed. So i use it to stop the slow-motion.

---

<div class="post-metadata">

**Author:** ![z1mb0bw4y](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/z/6de8d8/32.png) [@z1mb0bw4y](https://forums.sourceruns.org/u/z1mb0bw4y)\
**Post date:** [August 11, 2013, 6:46am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/13 "2013-08-11T06:46:35Z")

</div>

> [@S.](#):
>
> dafuq does sv\_alternateticks do

Updates the server only on alternating ticks. It’s the reason why portal 2 demos always have odd numbered ticks. (or is it even numbered? idk, fuck it).

That said I’d be willing to bet that something is wrong with your HL2 game files. If you’re using a legitimate steam copy, then wipe your install, clear your cloud data, and reinstall the game. I’d wipe the source SDK files too, since HL2 depends partially on those.

Also check your cl\_tickrate, before you do any of that stuff. If alternating ticks is fixing a slowdown, I’d be willing to bet there’s a mismatch of the tickrate between the sv and the cl and it’s trying to fix it.

---

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 12, 2013, 3:43am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/14 "2013-08-12T03:43:17Z")

</div>

how does one check cl\_tickrate? Cause when i put cl\_tickrate into console, it says it doesn’t know what it is either.

P.S. I barely know any commands outside of the cheats  
P.S.S Yes I said it, deal with it

---

<div class="post-metadata">

**Author:** ![z1mb0bw4y](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/z/6de8d8/32.png) [@z1mb0bw4y](https://forums.sourceruns.org/u/z1mb0bw4y)\
**Post date:** [August 12, 2013, 10:36am UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/15 "2013-08-12T10:36:32Z")

</div>

Maybe that’s just a multiplayer game thing… idk, I’d suggest doing a clean reinstall of the game, because having to force alternating ticks isn’t really a very good solution, especially not for any kind of speedrunning

---

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 12, 2013, 5:10pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/16 "2013-08-12T17:10:01Z")

</div>

Having problems deleting the stuff in the steam cloud, Everytime I follow this guide  
[http://forums.steampowered.com/forums/showthread.php?t=2470784](http://forums.steampowered.com/forums/showthread.php?t=2470784)  
It works all the way until the VERY end when i go to check if it worked, and it looks as though I hadn’t done the process at ALL. Wish there was an easier way to delete cloud saves.

---

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 14, 2013, 7:19pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/17 "2013-08-14T19:19:09Z")

</div>

[http://steamcommunity.com/games/220/announcements/detail/2110220177509243681](http://steamcommunity.com/games/220/announcements/detail/2110220177509243681) - Well this may fix it if you say the ticks are the problem.

EDIT: AHK still doesn’t work with HL2, but I don’t have to change sv\_alternatingticks anymore. 🙂

---

<div class="post-metadata">

**Author:** ![execut4ble](https://b-cdn.sourceruns.org/user_avatar/forums.sourceruns.org/execut4ble/32/14_2.png) [@execut4ble](https://forums.sourceruns.org/u/execut4ble)\
**Post date:** [August 14, 2013, 8:55pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/18 "2013-08-14T20:55:56Z")

</div>

They’re destroying everything with their Beta versions. First Half-Life, now Half-Life 2 ☹

---

<div class="post-metadata">

**Author:** ![Burgmond](https://b-cdn.sourceruns.org/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@Burgmond](https://forums.sourceruns.org/u/Burgmond)\
**Post date:** [August 23, 2013, 1:08pm UTC](https://forums.sourceruns.org/t/ahk-problems-with-sv-alternateticks/2227/19 "2013-08-23T13:08:05Z")

</div>

Just downloaded Source Unpack, works fine on that. Guess I’ll just use that instead.
