Jump to content

Home

cam mod


dumbledore

Recommended Posts

i recently ported my cam mod to work with movie battles 2 mod, was going to post it on their forums but my account needs activation by a moderator so i thought i'd share it here. :)

 

http://files.filefront.com/MBII_CAMS_with_pngzip/;6278390;;/fileinfo.html

http://files.filefront.com/MBII_CAMS_no_pngzip/;6278379;;/fileinfo.html

 

the one with png support requires the libpng dll to be in your system path; some people couldn't get it to work even with the dll in place, so i made another version with the png support removed.

Link to comment
Share on other sites

to create paths with the improved interface, use these commands (most are self explanatory):

removecam - delete a cam node

removeallcams - reset the cam node tree

savecamcfg - save the current node setup to a cfg file you can execute during demo playback. be aware that this command APPENDS the commands, so you can't overwrite old files unless you delete them first. this can be worked around by changing the filename each time - savecamcfg cam1.cfg, savecamcfg cam2.cfg, and so on.

showcam - display cam data in console and change the green bubble to white to hilight the node visually. if no argument is passed, it lists all the cams in console.

addloc - append a node from the player's current position to the end of the node tree

insloc - insert a node from the player's current position into the given point in the node tree

replloc - replace the entered node with the player's current location

rotatecam360 / rotatecam-360 - make a cam node rotate forward or backward 360 degrees (to stop the spinning that sometimes happens) use /showcam to figure out which ones need rotating

 

the entire spline path is now shown visually in the map, with the green bubbles representing nodes and a line showing the path the cam will take.

 

use the console command /previewcam to run through the entire path and see how the movement + angles will look like.

 

other pugmod cvars:

 

pug_demos_cameramode - anywhere from 0 to 7, toggles different camera modes. 0 is default view, 1 is "spectator" mode (removes camera and allows the player to navigate around with normal movement binds), 2 and 3 freely rotate around the player in first or third person, 4 and up are used for playback of camera spline paths: 4 keeps the angles set by the path, 5 forces the camera to center the current player, 6 and 7 center on only 2 out of 3 axes.

 

pug_demospec - change the player who you're currently watching in the demo. somewhat bugged and can cause crashes, but in general it works ok. can be used in conjuction with pug_demos_cameramode 5 to chase different players.

 

clientserverstatus - shows player names and id numbers, usually used to find the right player id to put into pug_demospec

 

cam_autorecord - once camera playback begins, automatically set cl_avidemo to the value thiscvar is set to

 

to play back a camera in a demo, simply load the demo then /exec the cfg file in console. note that no change will be seen until you enter pug_demos_cameramode 4 or greater, and even then no change will occur until the start of the cam has been reached in the demo.

 

demopos - this command will navigate quickly to a point forward in time in demo playback. be careful to respect the format that it requires - a typo can send you flying ahead far futher than you may have intended. the format is MM:SS.SSS (fractions of seconds are optional, as well as seconds for that matter - demopos 2 will navigate to 2 minutes in, demopos 2:30 will go to 2 minutes and 30 seconds in). this is based off the game timer, so if multiple games are recorded in a demo then you may have to use it more than once.

 

ui_noscope - remove the zoom effect and the scope from being drawn. this way you can take normal thirdperson shots of snipers without going to first when they go to scope mode. use overrideTP 1 in conjunction with this to get footage of snipers

 

overrideTP (MBII version only) - always force player model to be drawn, no matter what (even in first person view, during sniper scope, etc)

 

ui_fragsonly - remove all 2d text and graphics except the "you killed ..." line. identical to cg_draw2d 0 except for the fragged by line.

 

------ PNG VERSION ONLY -------

mme_* - cvars which define how to save the screenshots.

 

mme_blurframes will take multiple shots and blur them together before saving them, creating a crisp and clean motion blur effect (seen in many modern q3-style vids).

 

use the included jamp_png.exe and use cl_avidemo as usual to enable capturing to png. to save a single screenshot as png use the command screenshot_png.

 

mme_workmegs sets the amount of memory the png saving system should use (for blurring, etc).

 

 

legal mumbo jumbo:

 

Copyright © 2006, teh / dumbledore

All rights reserved.

 

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

 

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of PUGMod nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

:twogun:
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...