Instant zoom out

Making or wanting help making your own asset? Check in here
Post Reply
mft004
Posts: 33
Joined: 2017-12-14 17:37

Instant zoom out

Post by mft004 »

Hi guys,

What is the variable that determines how fast you can zoom out of ironsights/scopes after firing? I'm making changes to some bolt-action rifles but when I'm in game I notice that, after firing a shot, my right-click to instantly zoom out of scope/sight does not register for a good 2 seconds. Is there a particular variable in the weapon's file that would fix that?

Thanks in advance for any comments on this,
Mark
Rabbit
Posts: 7818
Joined: 2006-12-17 15:14

Re: Instant zoom out

Post by Rabbit »

iirc

Code: Select all

rem ---BeginComp :D efaultZoomComp ---
ObjectTemplate.createComponent DefaultZoomComp
ObjectTemplate.zoom.zoomDelay 0.4
tweak file for the gun
Image

AfSoccer "I just don't see the natural talent."
Image
mft004
Posts: 33
Joined: 2017-12-14 17:37

Re: Instant zoom out

Post by mft004 »

Thanks Rabbit, changing that zoomDelay factor does make a difference for the weapons I have where zoomOutAfterFire is set to 1; for the ones where that's set to 0, there's still a freeze time after firing before I can right-click to manually zoom out, but I'm thinking maybe that's something hard-coded, perhaps to prevent clashes with the bolt-action reload animation.
Fastjack
PR:BF2 Contributor
Posts: 525
Joined: 2011-09-04 19:47

Re: Instant zoom out

Post by Fastjack »

Press fire Button and hold it. Aslong you keep holding it down you will not zoomout till you release the fire button sofar i know.
mft004
Posts: 33
Joined: 2017-12-14 17:37

Re: Instant zoom out

Post by mft004 »

Yes Fastjack I've tried your method and it does work in order to keep zoomed in.
Post Reply

Return to “PR:BF2 Community Modding”