Page MenuHomeFeedback Tracker

Add script commands to get/set weapon zeroing and get/set current weapon scope mode
Acknowledged, WishlistPublic

Description

For now it is impossible to get and set weapon zeroing and get/set weapon scope mode.

Details

Legacy ID
3224353197
Severity
None
Resolution
Open
Reproducibility
Always
Category
Feature Request

Event Timeline

ruPaladin set Category to Feature Request.Nov 6 2015, 9:19 AM
ruPaladin set Reproducibility to Always.
ruPaladin set Severity to None.
ruPaladin set Resolution to Open.
ruPaladin set Legacy ID to 3224353197.May 8 2016, 1:03 PM
commy2 added a subscriber: commy2.May 8 2016, 1:03 PM
commy2 added a comment.Nov 6 2015, 2:24 PM

There is a get-command for the zeroing.

https://community.bistudio.com/wiki/currentZeroing

There is no set-command though.

It should correspond with these config entries:

discreteDistance[] = {100,200,300,400,500,600};
discreteDistanceInitIndex = 1;

zeroingIndex player;
-> 1

player setZeroingIndex 5;

The commands for the scope mode could be following the configs too. Example ARCO:

class OpticsModes {
class ARCO2collimator {...};
class ARCO2scope: ARCO2collimator {...};
};

getOpticsMode player;
-> "ARCO2collimator"

player setOpticsMode "ARCO2scope";

Also it will be good to do that for different muzzles (for weapons with GLs).

UPD: Have justed checked currentZeroing and found that it returns value not index. Probably, we will need currentZeroingIndex command or setZeroing (value not index).