News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Mods > WoD Mod Pod > Ask a Coder

Reply
 
Thread Tools Display Modes
Old 11th Nov 2001, 03:07 PM   #1
kingzingo
Registered User
 
Join Date: Nov. 3rd, 2001
Location: Thailand
Posts: 3
Question Zoom Level altering

Kinda Newbie question coming, but that's what I am

How should I write a multi-level zoom ability into a version of a sniper rifle?

I've gone through a copy of the Sniper script and follow what it is doing, but as it uses the PlayerPawn's built-in ToggleZoom function I can't figure out how or where to alter the DesiredFOV correctly. Whatever I try seems to yield the same original zoom level each time...

Anyone got some pointers for me??
__________________
With a Coffee in my Hand, I have the World at my Feet.
kingzingo is offline   Reply With Quote
Old 11th Nov 2001, 04:37 PM   #2
Postal
I apear to have lost my pin.
 
Postal's Avatar
 
Join Date: Nov. 14th, 1999
Posts: 1,388
function AltFire( float Value )
{
if (Pawn(Owner).IsA('Bot'))
{
Fire(Value);
return;
}
PlayOwnedSound(Sound'UMenu.LittleSelect',, Pawn(Owner).SoundDampening);
switch (Pawn(Owner).FOVAngle)
{
case 15:
PlayerPawn(Owner).DesiredFOV = 5;
break;
case 5:
PlayerPawn(Owner).DesiredFOV = 90;
break;
case 45:
PlayerPawn(Owner).DesiredFOV = 15;
break;
case 90:
default:
PlayerPawn(Owner).DesiredFOV = 15;
break;
}
}

There the code I use, change the numbers to suit you
__________________

Peace through superior firepower.
Postal is offline   Reply With Quote
Old 13th Nov 2001, 02:51 PM   #3
kingzingo
Registered User
 
Join Date: Nov. 3rd, 2001
Location: Thailand
Posts: 3
Thumbs up

Major Thumbs up to you sir!

Thanks muchly etc.

I'm now gonna bugger off and have a play.
__________________
With a Coffee in my Hand, I have the World at my Feet.
kingzingo is offline   Reply With Quote
Old 13th Nov 2001, 03:02 PM   #4
Postal
I apear to have lost my pin.
 
Postal's Avatar
 
Join Date: Nov. 14th, 1999
Posts: 1,388
No need to thank me, the bill is in the mail.

Answer = 000000.10
My time = 100000.00
--------------------------
Total = 100000.10

Perfered payment in gold bars, but I will take Euros.
__________________

Peace through superior firepower.
Postal is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer