Author Topic: view zoom  (Read 3150 times)

0 Members and 1 Guest are viewing this topic.

Offline phreak

  • Gun Phreak
  • 211
  • -1
i know there is a movement to get the zoom changed to make ships seem bigger.  i found something in freespace.cpp (line 857) that changes it. i've tried changing it around and it doesn't seem all that right. maybe i'm used to the way it has been

Code: [Select]

#define VIEWER_ZOOM_DEFAULT 0.75f


changing it to .5 would zoom in on everything but your fov is limited

changing it to 1 would give a "fisheye" effect (good if your character is a vasudan?)

i'm not touching this. period.
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Solatar

  • 211

 

Offline Bri_Dog

  • 28
Quote
Originally posted by Solatar
Sniper zoom?;7


That would be cool for a rail gun. If you used the rail gun to snipe turrets off a ship at long range.
Sig

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
what about changeing it to
float   VIEWER_ZOOM_DEFAULT = 0.75f;
and setting up a comand line option
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
actualy better than that in the debug key prosesing(process_debug_keys() in keycontrol.cpp) add this
Code: [Select]

case KEY_DEBUGGED + KEY_ALTED + KEY_EQUAL:
case KEY_DEBUGGED1 + KEY_ALTED + KEY_EQUAL:
{
Viewer_zoom += 0.1f;
g3_set_view_matrix(&Eye_position, &Eye_matrix, Viewer_zoom);
HUD_sourced_printf(HUD_SOURCE_HIDDEN, "viewer zoom raised to %0.2f" , Viewer_zoom);
}
break;

case KEY_DEBUGGED + KEY_ALTED + KEY_MINUS:
case KEY_DEBUGGED1 + KEY_ALTED + KEY_MINUS:
{
Viewer_zoom -= 0.1f;
g3_set_view_matrix(&Eye_position, &Eye_matrix, Viewer_zoom);
HUD_sourced_printf(HUD_SOURCE_HIDDEN, "viewer zoom lowered to %0.2f" , Viewer_zoom);
}
break;


remember to add these declairations before the function def or it won't know what to do
extern float Viewer_zoom;
extern vector Eye_position;
extern matrix Eye_matrix;
extern void g3_set_view_matrix(vector *view_pos,matrix *view_matrix,float zoom);

this will alow you to change the zoom in and out at will with the debug console ('~' + 'alt' + ('+' || '-')), I think .35-.25 looks the best

I think I can adapt this to have a sniper scope effect realy easy
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 
why not have it as a tbl'ed value based off the species of the player? :nervous:

Bob
Hippie. n. a long-haired unconventionally dressed young person

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
well I'm implementing sniper zoomthere will be three new table entries (min_zoom max_zoom zoom_time) three new controle bindings (zoom_in zoom_out reset_zoom) and posably new HUD art (later, for now you'll be lucky to get a printfed value) and sounds.
I am going to set it up so that you can zoom with only one weapon selected at a time (so you can't use one sniper weapon to cheat with another weapon)
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Bri_Dog

  • 28
Why not add a 'snipe' flag to to the weapons tbl? Make it so that only weapons with that flag can use the zoom feature?
Sig

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
well lets say to have some super powerfull weapon with a huge range (like the maxum) in one bank and a sniper weapon in the other, also let us say that the sniper weapon is no were near as good at tearing hull and subsystems as the maxum and yet you are able to use the sniper weapon to aim the maxum from a great distance to quickly and easily snip all the turrets of a destroyer without getting into weapons range. now yes you  could still swich between them but you will need to re-zoom and and swich and that will make it less of a cheat, I am planing on makeing a "snipe" flag but it will be used mostly for AI
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 
is this already implemented, or is it still a WIP?
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
I don't like the zoom; I've experimented before, same as Phreak, and the results were very unpalatable.  I don't think this would be a good idea.

 

Offline Alan Bolte

  • 28
  • Deneb III
    • @Compellor
Well, honestly, why would it be connected with a particular weapon? Doesn't really make sense. I would think the in-universe idea here would be that your HUD magnifies the view. Now, I've played the demo for Homeplanet, which has a button which gradually increases the zoom to a certain max, and found it to occasionally be helpful, even with just standard guns. Needless to say, the difference in physics might make it useless in FS2, but I don't know as I haven't experimented with it.
Anything worth doing is worth analyzing to death -Iranon

 

Offline Flaser

  • 210
  • man/fish warsie
Adding a cone of fire would fit nice with this idea.
Most weapons shouldn't always hit the reticle perfectly.
"I was going to become a speed dealer. If one stupid fairytale turns out to be total nonsense, what does the young man do? If you answered, “Wake up and face reality,” you don’t remember what it was like being a young man. You just go to the next entry in the catalogue of lies you can use to destroy your life." - John Dolan

 

Offline Krom

  • 25
It only makes sense that if you are zooming in the ship should be made a lot less sensitive, meaning it should turn much slower (easy way to stamp a warning "DONT DO THIS IN A DOGFIGHT!").  This would make player beams much more intersting, if you could zoom in and fire one off at a great distance accurately.

Just my 2 cents.
-Krom

 

Offline pyro-manic

  • Flambé
  • 210
Anybody played Echelon? That's got a zoom function on the HUD. It's really good for blasting tanks at long range with a heavy plasma cannon ( ;7 ), but it's useless for hitting other fighters. It would probably only be good for taking out capship systems, because fighters move about too much to lead accurately.

Echelon is pretty cool, by the way - I'd recommend it if you haven't already played it. You can get it for five quid from Game, and the sequel is being released soon (the demo is out already).
Any fool can pull a trigger...

 

Offline KARMA

  • Darth Hutt
  • 211
    • http://members.fortunecity.com/aranbanjo
actually i'd like it for the swmod, since sw ships are ridicously  far smaller than those in fs2verse
i haven't understood if your problem is simply that you see the ships different than what you are used to (this will not be a prob with completely new ships obviously), or it simply gives visual problems,
btw a command line in the next release to at least test it would be really REALLY very appreciated from the swmod, thanks