Hi guys.
I needed a zoom for ironsight and found it on the internet:
after that I pasted this code in my aaweapon.uc, when I change weapon in game, FOV changes.. where is my mistake?Code:simulated function StartZoom(UTPlayerController PC) { PC.StartZoom(10, ZoomedRate); } simulated function EndZoom(UTPlayerController PC) { PC.StartZoom(90, ZoomedRate); } exec function SetZoom() { local UTPlayerController PC; PC = UTPlayerController(Instigator.Controller); ConsoleCommand("onScope"); StartZoom(PC); } exec function ResetZoom() { local UTPlayerController PC; PC = UTPlayerController(Instigator.Controller); ConsoleCommand("offScope"); EndZoom(PC); } defaultproperties { ZoomedRate=90.000000 }
DefaultFOV is 90, it changes to approx 60...



Reply With Quote
) but next thing to fix is, when I switch from one weapon to another, FOV changes for a second..


Bookmarks