Instazoom sniper scope script

Discuss our favorite gametype.

Instazoom sniper scope script

Postby Duo on Fri Feb 12, 2016 7:19 pm

Some of you have already used the zoom script, +use toggle script, and perfect wallrun script on my mods page. Here's a new one for you:

When you tap right-click with disruptor, the game instantly changes your FOV to 50. If you continue holding down right-click, the game slowly continues to decrease your FOV below 50 (zooming in).

However, if you already had your cg_fov below 50 before zooming, the game doesn't raise your FOV suddenly to 50. It allows you to keep your existing FOV. Therefore, you can write a script to instazoom the sniper scope to a level you want, without having to hold down right-click and wait for it to gradually zoom in.

This template assumes you normally play with cg_fov 120. If you don't, change the 120 to whatever you use.

bind x "cg_fov 10; wait; +altattack; wait; -altattack; wait; cg_fov 120"

You can change the 10 to alter the zoom amount. Use a lower number to be more zoomed-in; use a higher number to be less zoomed-in.
Image
User avatar
Duo
 
Topic author
Posts: 1070
Joined: Mon May 25, 2009 3:36 pm
Location: Chile
Local time: Sun Sep 27, 2020 8:54 am
Karma: -25

Re: Instazoom sniper scope script

Postby LORD on Fri Feb 12, 2016 10:27 pm

It's cool thing gj.
GhouL WanT MeaT !!!
User avatar
LORD
 
Posts: 271
Joined: Fri May 29, 2009 3:26 pm
Local time: Sun Sep 27, 2020 6:54 pm
Karma: -15

Re: Instazoom sniper scope script

Postby Laser on Sat Feb 13, 2016 5:16 am

I've always been a bit iffy over zoom scripting, but I can let it go. Scripting a perfect wall run is cheating, though.

Inb4 comparisons with chew
Less QQ more Pew Pew
Image
Image
Image
Image
Image
User avatar
Laser
Kopite
 
Posts: 2326
Joined: Sat Jun 13, 2009 4:15 am
Highscores: 1
Local time: Sun Sep 27, 2020 5:54 pm
Karma: -9

Re: Instazoom sniper scope script

Postby LORD on Sat Feb 13, 2016 7:07 am

Laser wrote:Scripting a perfect wall run is cheating, though.

Believe me, ppl are using worse things in pugs than this...
Perfect wall run is not much important to gameplay, its easy to do manually.
Zoomscripting is more like cheat, especially with rupting.
GhouL WanT MeaT !!!
User avatar
LORD
 
Posts: 271
Joined: Fri May 29, 2009 3:26 pm
Local time: Sun Sep 27, 2020 6:54 pm
Karma: -15

Re: Instazoom sniper scope script

Postby Laser on Sat Feb 13, 2016 7:51 am

LORD wrote:
Laser wrote:Scripting a perfect wall run is cheating, though.

Believe me, ppl are using worse things in pugs than this...
Perfect wall run is not much important to gameplay, its easy to do manually.
Zoomscripting is more like cheat, especially with rupting.


Yeah, I agree with what you're saying. I'm fairly confident that a couple of the guys yews wall hack as well so zoom scripts are nothing for them.
Less QQ more Pew Pew
Image
Image
Image
Image
Image
User avatar
Laser
Kopite
 
Posts: 2326
Joined: Sat Jun 13, 2009 4:15 am
Highscores: 1
Local time: Sun Sep 27, 2020 5:54 pm
Karma: -9

Re: Instazoom sniper scope script

Postby Magyk on Sat Feb 13, 2016 8:22 am

LORD wrote:
Laser wrote:Scripting a perfect wall run is cheating, though.

Believe me, ppl are using worse things in pugs than this...
Perfect wall run is not much important to gameplay, its easy to do manually.
Zoomscripting is more like cheat, especially with rupting.



It's only easy to do in traditional locations. Glhf doing it manually at codes.
Image
User avatar
Magyk
Graphics Guru
 
Posts: 4127
Joined: Mon May 25, 2009 4:39 pm
Location: East Coast, USA
Highscores: 3
Local time: Sun Sep 27, 2020 12:54 pm
Karma: -87

Re: Instazoom sniper scope script

Postby Blackout on Sat Feb 13, 2016 10:38 am

Exploiting commands that give you a huge advantage such as fov for zoomscripting is cheating really. These commands should be locked but they aren't so I guess changing them is fine, but the whole scripting thing I don't like why not write an auto aim script while you're at it? Although, I see people wall hacking practically every game so I'm hardly going to call for a ban on zoomscripts.

On a slightly different note, creating maps and having a different .bsp file with bolt markers on which other people can't do isn't right either it's exploiting being a map maker, if these allegations were correct anyway.

To further the point against cheating, we have very small numbers of active players so we can hardly ban people, however, we should be able to rely on people not to cheat, especially WH/aimbot and whatever else people yews; a level playing field makes for more enjoyable games.
Image
User avatar
Blackout
 
Posts: 274
Joined: Sun Aug 14, 2011 8:21 am
Local time: Sun Sep 27, 2020 4:54 pm
Karma: 0

Re: Instazoom sniper scope script

Postby Duo on Sat Feb 13, 2016 1:58 pm

Scripts have been part of Q3 games since 1999; the wait command was designed specifically to allow people to make their own custom commands.

There's even an example script in the JA source code that tells you how to write your own dank rocket script:
Code: Select all
Cmd_Wait_f

Causes execution of the remainder of the command buffer to be delayed until
next frame.  This allows commands like:
bind g "cmd rocket ; +attack ; wait ; -attack ; cmd blaster"


The Quake 3 FOV code was significantly overhauled in JA -- barely any of the original Quake 3 FOV code remains. In Quake 3, the lower limit was 1 and the upper limit was 160. In JA, they reduced the upper limit to 97, but maintained the lower cap of 1. Smod didn't magically uncap the lower FOV limit; it was always 1. Even when Raven completely rewrote the FOV code, they once again specifically typed in the number "1" as the lower limit. Even without scripts, you can simply do "bind x cg_fov 10" to accomplish the same thing; the scripts just make it easier.

Q3 as well as most Q3-based games have a +zoom/-zoom command. It goes on mouse2 -- Q3 doesn't have +altattack; weapons only have primary fire mode. In JK they needed to make room for the new +altattack, so they simply made +altattack for disruptor emulate the old +zoom command, and threw in some shitty scope assets to go along with it. Then to avoid overly confusing mouse2 bindings, they removed +zoom from the console command registry, although all of the code for it is still present.

Regarding instazoom, the disruptor zoom code specifically checks to ensure that your FOV is > 50 before lowering it to 50. Code isn't written on accident. Raven was accounting for players who yews cg_fov < 50 (which, as noted above, has always been allowed, even after Raven's code rewrite).

In summary:
  • Scripts are encouraged; there are literally instructions on how to write your own dank rocket scripts in the JA source code.
  • Raven completely rewrote the FOV code from Q3, and they still typed in "1" as the lower limit.
  • +zoom was only removed from Q3 to avoid confusing mouse2 binds, because JK introduced +altattack.
  • Raven wrote a check in the disruptor zoom code to account for players who yews cg_fov < 50.

Any argument against "cheat" or "exploit" scripts is therefore solely based on subjective perception of moral superiority.
Image
User avatar
Duo
 
Topic author
Posts: 1070
Joined: Mon May 25, 2009 3:36 pm
Location: Chile
Local time: Sun Sep 27, 2020 8:54 am
Karma: -25

Re: Instazoom sniper scope script

Postby Darth_Wayne on Sat Feb 13, 2016 5:30 pm

Zoomscripts are for faggots.
Image
Darth_Wayne
kera and sfail's fiend
 
Posts: 898
Joined: Wed May 27, 2009 5:11 pm
Location: In the projects with Puff, the Magic Dragon
Local time: Sun Sep 27, 2020 11:54 am
Karma: -73

Re: Instazoom sniper scope script

Postby Magyk on Sat Feb 13, 2016 5:36 pm

Tbh, I find aiming with a zoomed fov very difficult. I rarely ever zoom, and it's usually only when I'm teaching the atst from the bunkers.
Image
User avatar
Magyk
Graphics Guru
 
Posts: 4127
Joined: Mon May 25, 2009 4:39 pm
Location: East Coast, USA
Highscores: 3
Local time: Sun Sep 27, 2020 12:54 pm
Karma: -87

Next

Return to JKA Siege

Who is online

Users browsing this forum: No registered users and 1 guest

cron