Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Basic Usage
You want to record your basic movement first. You can walk, noclip, etc. A gamepad is preferred for noclipping as you'll have better control.
Recording
Go to where you want your camera to start. When you're ready, press Attack2 (Melee), this will start the recording, move through your scene until you reach where you want, then press Attack2 again to stop recording.
Playback
Press Attack1 (Fire) to start playback. You'll likely have a path that's a bit choppy. You'll want to smooth it at least once. Chat !smooth. This will smooth the vertices of the path, and the angles. Play it back again via Attack1 to see if it's smooth enough. You can chat !smooth repeatedly, though repeated smoothings will soften corners. If you only want to smooth angles, chat !smootha (angles only). You can also only smooth vertices, chat !smootho If you encounter errors from smoothing, it's taken too long for the path, try setting the sampling rate lower (ex: chat !smooth 5) and using repeated smoothings.
Editing Angles (Pitch, Yaw, Roll)
While playing the animation, you can edit it. Forward/Back, will modify the pitch, Left/Right, the Yaw. Roll is controlled by +lookspin/+use. You'll have to bind +lookspin to something. I would recommend Q> as +use is normally bound to E
Editing Position (X,Y,Z)
While playing the animation, if you hold +WALK, the same controls for angles will let you modify XZ. X is controlled by Left/Right (relative to the camera view), and Z is controlled by Up/Down.
After you edit the path, you'll likely want to smooth it again. NOTE! Smoothing only works on the path selection. By default, the entire path is selected, but you can select parts of a path with !start and !end
Saving and Using
When you're happy with your animation, you'll want to save it. Before you do that, you should give it a unique name. chat !name yourmodelname to set the name. Now chat !save to save it. A directory will be created under ems\vscriptcam with the name yourmodelname.mdl. A few files will be generated in the directory.
A QC file (yourmodelname.qc)
A VMF (yourmodelname.vmf)file with the prop_dyanmic in the correct position to include in your map.
An SMD file with the animation. Default name is "yourmodelname_anim,smd"
A generated.nut file, This can later be copied to scripts/vscripts and run with script_execute to continue editing in a later game session.
Compiling and Usage
Now you'll need to compile the model to use it. TODO
To include the model in your map, add a func_instance to your map at the origin (0,0,0) and select the generated VMF. BE SURE TO SET Fixup Nested Instances to "No".
Chat Commands
General Options
!help - display this page
!undo - When you press Play (Attack1) or chat !play, the path gets cloned. Entering !undo will revert to this. Smooth and other operators DO NOT create an undo!
!dumpcam filename - This creates a file called filename.nut, which can be copied to scripts/vscripts and executed to restore the camera to this point.
!play - Plays the current record (if you want to use chatbinds)
!record - Starts recording (if you want to use chatbinds)
!stop - Stops the current record (if you want to use chatbinds)
!draw - draws the camera path (NOTE)
!name - Sets the model name. Files will be saved under ems/name.mdl, qc will create model at models/v2cam/name.mdl. DO NOT include .mdl
!seq string - The name for the generated sequence. Defaults to intro
!save - saves the current selection to smd, writes qc, writes vmf. Also dumps the camera to generated.nut. You can copy this file to a location under scripts/vscripts and execute it later to continue editing in a later session.
!cameraoff - disables cam, when you hit play, you will be locked in position, but watch/control during playback
!cameraon - enables camera
Recording
!eyes - Will record from the player's eye position (default)
!feet - Will record from the player's feet (handy for cars and other things on ground)
!zlock - Will use the intial Z of the player for the entire record. Handy for cars, boats and other paths that travel on planes, Especially with noclipping.
!zunlock - Disable zlocking (default)
!pitchlock - Uses the intial pitch of the player for the entire record. Handy for recording helicopters. Set your angle level with setang to level it, when you start recording, pitch will be locked, you can then look up and level off and the whole record will be level. You can add the heli pitch on playback.
!pitchunlock - Disable pitch locking.
Playback/Editing
!samples integer - Sets the number of frames to use when smoothing. The value entered will be doubled. ie: N = 10 (frame is smoothed with prev 10, next 10). Defaults to 10
!smooth - smooth the selection (vertices and angles)
!smootho - smooth only the path vertices
!smootha - smooth only the path angles
!loopon - When Playing, selection repeats after 1 second
!loopoff - Will stop after Playback has finished
!speed integer - slows down playback, for editing fast sequences 2 = 0.5, 3 = 0.33
!start (optional framenum) - If no frame specified, will use the currently played back frame as the start of selection
!end (optional framenum) - If no frame specified, will use the currently played back frame as the end of selection
!selectall - Selects the entire path (ie start = 0, end = last frame)
!pitchinc number - how much to modify (+/-) the pitch angle when pressing Up/Down
!yawinc number - how much to modify (+/-) the yaw angle when pressing Left/Right
!rollinc number - how much to modify (+/-) the roll angle when pressing +lookspin/use
!xinc number - how much to translate (+/-) on the X axis when pressing +walk + Left/Right
!zinc number - how much to translate (+/-) on the Z axis when pressing +walk + Up/Down
Misc
!pspeed float - Set's the player's speed (via adrenaline), defualt is 260
!gravity float - Set's the player's gravity as impulse. (Using ladders undo this)
!friction float - Set's the player's friction as impulse. (Using ladders undo this)
Vehicles
!alpha int - If you've spawned a vehicle, this will set it's alpha (32-255)
!vehicles - List all vehicle spawn commands. A lot more will be added as this goes, so check with this,
!dvan - Spawn Deliver Van
!dvana - Spawn Armored Deliver Van
!sedan69 - Spawn the '69 Sedan
!sedan84 - Spawn the '84 Sedan
!sedan95 - Spawn the '95 Sedan
!jet - Spawn the F18
!heli - Spawn black heli
!rescueheli - Spawn rescue heli
A Note on Vehicles, spawning a vehicle will replace the existing one (if any), it will be named @vehicle, in case you need to send it inputs.
USAGE HINTS
TODO