View Full Version : Field of View Change
Jarek
03-31-2001, 07:42 PM
Anyone know what the field of view cvar in SS is? Been playing with cg_fov 120 in Quake for a while, and it would be nice to be able to carry this over to Serious Sam.
SeriousGrandpa
03-31-2001, 08:37 PM
Ahem, in case you haven't noticed you're using a registered icon(Caid's). Now, I'm sure Caid will de pretty pissed off when he sees you using his icon. So, back to avatar browser and find another NON REGISTERED icon or make your own and send it to Vesto.
Preach it brother. "Seriously" though be careful...I know I'd be royally pissed if someone used my icon and Vesto will warn you about it to. Don't want to get banned, do you?
Back to the original topic...try asking INTRUDER. He's the scripting guy around here.
SuperTech
03-31-2001, 09:32 PM
The command is
plr_fFOV=xxx
where xxx is the fov you want. Like the zoom script I wrote.
Button
Name: TTRS Zoom Script
Key1: None
Key2: None
Pressed: plr_fFOV=20.0;hud_bshowweapon=0; inp_fmousesensitivity=inp_fmousesensitivity/1.99;
Released: plr_fFOV=90.0; hud_bshowweapon=1; inp_fmousesensitivity=1;
This forum needs to get over this icon thing or set up a way to link to outside icons. There seems to be more posts concerning that than trying to better the game itself. =(
INTRUDER
03-31-2001, 09:41 PM
Nils I saw the post, but won't answer any questions asked by people that use other people's private avatars. Call it a matter of principals. If you like
INTRUDER
Jarek
03-31-2001, 10:17 PM
aaargh, soz guys, bit new to forums as you can probably tell... :confused: tis sorted tho, and thx for the fov answer too :cheesy:
berkhof
03-31-2001, 10:26 PM
lol
jeez
guys thats a bit mean i think
maybe if he continued to use some guys picture i would get mad
he prolly did what i did at first and just looked at the pitures as he pressed the down arrow
INTRUDER
04-01-2001, 12:04 AM
Ok heres your script, open the Controls folder, then open the System folder and then open the Common.ctl file with wordpad and add this, just as it is of course you can change Key1 to the key or button of your choice. SS supports up to 5 mouse buttons and you define them as this
Key1: Mouse Button 1
all the way to 5 and Key2 is an alternate key
Button
Name: TTRS Zoom Script
Key1: Z
Key2: None
Pressed: plr_fFOV=120.0;hud_bshowweapon=0; inp_fmousesensitivity=inp_fmousesensitivity/1.99;
Released: plr_fFOV=90.0; hud_bshowweapon=1; inp_fmousesensitivity=1;
exit saving and you should be all set.
Or to set it to only one fov open the GameStartup.ini thats in the scripts folder and add this line into it
extern FLOAT plr_fFOV=(FLOAT)120;
And to remove your weapon view from the screen add this line also
extern INDEX hud_bShowWeapon=(INDEX)0;
This is all based off Supertech's alias and Shinbos or something that.
INTRUDER;)
(Edited by INTRUDER at 6:14 am on April 1, 2001)
Hadji
04-02-2001, 03:52 AM
I'd like to have a zoom script that worked something along the lines of the way Tribes handles zooming. Say, one button cycles through fov 20, 40, 60, and then another button acitivates zoom at X fov. Even nicer if it can adjust sensitivity for you as well.
Anyone familiar enough with Sam scripting to do this?
Vesto
04-02-2001, 04:35 AM
#Moderation Mode
Moved to the Scripting forum where the expert scripters hang out.
Vesto *8)
<a href="http://dynamic.gamespy.com/~serioussam/ikonboard/topic.cgi?forum=7&topic=11" target="_self">Moved here</a>
Entroper
04-03-2001, 04:00 PM
If I recall correctly, the zoom settings in Tribes are 2x, 5x, 10x, 20x. *I'll write this for those settings and you can change it if you want.
In game_startup.ini, you'll need to declare two of your own variables:
extern INDEX my_iZoomLevel=0;
extern BOOL my_bZoomedIn=0;
Now for the script. *Fasten your seatbelts.
Button
Name: TTRS Toggle Zoom Level
Key 1: Z
Key 2: None
Pressed: my_iZoomLevel = (my_iZoomLevel + 1)%4; if (my_bZoomedIn) { if (my_iZoomLevel == 0) { plr_fFOV=45.0; inp_fMouseSensitivity=0.5; }; if (my_iZoomLevel == 1) { plr_fFOV=18.0; inp_fMouseSensitivity=0.2; }; if (my_iZoomLevel == 2) { plr_fFOV=9.0; inp_fMouseSensitivity=0.1; }; if (my_iZoomLevel == 3) { plr_fFOV=4.5; inp_fMouseSensitivity=0.05; }; };
Released:
Button
Name: TTRS Zoom In
Key 1: Mouse Button 2 (whatever you want to use)
Key 2: None
Pressed: my_bZoomedIn=1; hud_bShowWeapon=0; if (my_iZoomLevel == 0) { plr_fFOV=45.0; inp_fMouseSensitivity=0.5; }; if (my_iZoomLevel == 1) { plr_fFOV=18.0; inp_fMouseSensitivity=0.2; }; if (my_iZoomLevel == 2) { plr_fFOV=9.0; inp_fMouseSensitivity=0.1; }; if (my_iZoomLevel == 3) { plr_fFOV=4.5; inp_fMouseSensitivity=0.05; };
Released: my_bZoomedIn=0; plr_fFOV=90.0; inp_fMouseSensitivity=1.0; hud_bShowWeapon=1;
I haven't tested this, so let me know if there are errors and I will try to fix them. *The zoom button will stay zoomed as long as you hold it down, a la Tribes. *If you want it to be a toggle instead, it should be as simple as setting Pressed to "if (my_bZoomedIn == 0) {//do what Pressed says above}; if (my_bZoomedIn == 1) {//do what Released says above};" and setting Released to nothing.
Happy zooming. *:)
Entroper
(Edited by Entroper at 4:05 pm on April 3, 2001)
Entroper
04-03-2001, 04:04 PM
As a suggestion for Croteam, would it be too much trouble to implement multi-line scripts for the Pressed: and Released: fields in controls? Or is there a way you can tell it to execute a script from a file? That script I just wrote is ugly, and it would be much less ugly if I could break it up into lines and indent things and so forth. Just something to go on the "wish list", if it's not already possible. :)
Entroper
GaryP
07-06-2001, 09:12 AM
Hey INTRUDER, How'd you get started? Is there a listing of all of the commands somewhere?
Figured if you helped me with the BIG video card issue (that's gone :)), I could get a little help in the scripting dept.
Thanks for any and all help.
SuperTech
07-06-2001, 03:23 PM
Not what they do but a list of the commands and variables are found in the
PATH\Serious Sam\Scripts\PersistentSymbols.ini file
mr luc
07-09-2001, 02:46 PM
HADJI PLAYS TRIBES!!!
A fellow Tribes-playing brethren in this strange, strange land! w00t!
WTF? This topic is really old!
Grand Master Shinobi
08-17-2001, 10:27 AM
/me wonders why no one seems to care about his zoom script anymore.
SuperTech
08-17-2001, 04:41 PM
Could be because zooming is disabled in deathmatch and only good in single player.
Grand Master Shinobi
08-17-2001, 05:29 PM
then what is the point of the entire post and/or the other people posting on it?
StrandedAlien
08-22-2001, 08:46 AM
No plz NO FLAMES. Plz try to behave like cultivated creatures : Peaceful (not piss) and creative, ahem I mean
C R E A T I V E !!! PLZZZZZZZZZZZZZ. Anyway, as an alien I rather adapt, where do I have? to "register" my Icon? (ahem,
and why?)
mr luc
08-28-2001, 01:05 AM
Hehe, old? Yes, it's old.
But hoo boy, do I like using that zoom script in Single Player mode!
Grand Master Shinobi
08-29-2001, 11:33 AM
stranded you have to email vesto@3dactionplanet.com to beg his attention and then if you are found worthy of his time and he is in a good mood then he will allow you to submit your pic.
vBulletin v3.6.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.