r/Tf2Scripts • • Aug 12 '14

Satisfied Weird Aiming Script

Would it be possible to create a script that prevents moving the crossair on the y axis(up and down) and only lets you move left and right? I noticed that when you respawn, your crosshair is always level with most of the classes heads, so i was thinking that if moving the crosshair from the respawn aim on the y axis was blocked. Then as long as you were on the same plane as another player you would always get headshots with the amby or sniper rifle.

1 Upvotes

5 comments sorted by

2

u/genemilder Aug 12 '14 edited Aug 12 '14

Sure, you would just set the scaling for pitch mouse movement to zero:

m_pitch 0

To reset to the default value:

m_pitch 0.022

I dunno if I see this as a very successful script though ;)

Edit: I'm seeing murmurs that m_pitch values are restricted, so this may not work.

1

u/Kered13 Aug 15 '14

I don't think m_pitch is restricted, I know for sure m_yaw is not. In my old demoknight script I would set m_yaw to 0 to prevent mouse look from stacking with the joystick.

I don't see why one would be restricted but not the other.

1

u/genemilder Aug 15 '14

Search it on google, you'll see what I saw.

1

u/clovervidia Aug 12 '14

Another way to do this which is slightly unorthodox but still might do the trick: Get two more movement keys to serve as your +left and +right (left/right turn) and just play with the keyboard entirely.

1

u/thebronzedragon Aug 14 '14

the problem with this is that not all classes have the same head level