Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Thu May 23, 2013 11:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: modifying funtions like _zoom..
PostPosted: Sat Mar 07, 2009 1:25 pm 
Offline
picked up a pistol

Joined: Wed Dec 10, 2008 3:23 pm
Posts: 65
Hey guys, just wondering if somebody know how to edit functions like _zoom.
Well i couldn't find it ! :P
I just want to change some values, like how far it zooms ect. :)
Any suggestion is welcome :idea:


Top
 Profile E-mail  
 
 Post subject: Re: modifying funtions like _zoom..
PostPosted: Sat Mar 07, 2009 2:52 pm 
Offline
Addict.
User avatar

Joined: Tue Nov 22, 2005 1:42 am
Posts: 2165
Location: France, 59
search for _ZOOM in the sdk, you should find it quickly!

_________________
idTech 4 still amaze me.

Doom III High Quality Mainmenu Pack.
Doom III Boss Contest: Alpha Lab Zero.
idTech4 Extended [Alpha].


Top
 Profile E-mail  
 
 Post subject: Re: modifying funtions like _zoom..
PostPosted: Sat Mar 07, 2009 2:54 pm 
Offline
picked up a pistol

Joined: Wed Dec 10, 2008 3:23 pm
Posts: 65
I tried that, but failed :P
Didn't find it anywhere oddly enough.. ignore my noobnishnish :D


Top
 Profile E-mail  
 
 Post subject: Re: modifying funtions like _zoom..
PostPosted: Sat Mar 07, 2009 3:04 pm 
Offline
Addict.
User avatar

Joined: Tue Nov 22, 2005 1:42 am
Posts: 2165
Location: France, 59
BUTTON_ZOOM is exactly what you're looking for, it's called in idPlayer::Think (player.cpp) :D

_________________
idTech 4 still amaze me.

Doom III High Quality Mainmenu Pack.
Doom III Boss Contest: Alpha Lab Zero.
idTech4 Extended [Alpha].


Top
 Profile E-mail  
 
 Post subject: Re: modifying funtions like _zoom..
PostPosted: Sat Mar 07, 2009 3:07 pm 
Offline
picked up a pistol

Joined: Wed Dec 10, 2008 3:23 pm
Posts: 65
thanks i found it :D
Hmm, now i'm gonna try modifying:D


Top
 Profile E-mail  
 
 Post subject: Re: modifying funtions like _zoom..
PostPosted: Sat Mar 07, 2009 3:10 pm 
Offline
picked up a pistol

Joined: Wed Dec 10, 2008 3:23 pm
Posts: 65
any idea how to make the zoom button switch to pm_thirdperson 0? :mrgreen:


Top
 Profile E-mail  
 
 Post subject: Re: modifying funtions like _zoom..
PostPosted: Sun Mar 08, 2009 12:57 pm 
Offline
fired 300 rounds

Joined: Tue Oct 19, 2004 8:04 am
Posts: 356
baseliner wrote:
any idea how to make the zoom button switch to pm_thirdperson 0? :mrgreen:


Change idPlayer::CalculateRenderView() to test the zoom flag in addition to pm_thirdperson, like so:

Code:
      } else if ( pm_thirdPerson.GetBool() && !(usercmd.buttons & BUTTON_ZOOM) ) {


There may be a couple of other pm_thirdPerson checks you'll want to change too - search for pm_thirdperson. The only one I can think of right now is the one that disables the hud in 3rd person.


Top
 Profile  
 
 Post subject: Re: modifying funtions like _zoom..
PostPosted: Wed Mar 25, 2009 5:58 pm 
Offline
fired 300 rounds
User avatar

Joined: Thu Nov 30, 2006 6:40 pm
Posts: 328
Location: Salt (Girona) Spain
Antispam measure: What is larger? The Sun or the Galaxy?: sun
You can change the zoom for every weapon in Doom 3 by editing the defs/weapon_xxx.def and adding a line like this...:

"zoomFov" "50" // dfm

That zoomFov variable sets the maximum value for the zoom, i don't know if there are more variable for zoom on Doom 3, maybe you can look into Q4 or Prey to see if you can use the variables that are used on Q4 for example, i know Q4 has more of this kind. :)

_________________
http://doom3.filefront.com/developer/Dafama2K7;23734


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group