Post tutorial Report RSS Third Person Camera System - No Code!

Works for games on the Quake or Half-Life series of engines. Simply create a ThirdPerson.cfg and make sure you put it where configs go for that game. You can also put your configs in a folder. So, Counter-Strike Source / CStrike / cfg / xCFG / xDefault / xView / tpvconfig.cfg In your console type: "exec xCFG / xDefault / xView / tpvconfig.cfg" *Without the spaces though

Posted by on - Basic Other

// /* *** *** ***                 *** *** *** */ //
// /* *** *** *** Elements of War *** *** *** */ //
// /* *** *** ***                 *** *** *** */ //

sv_cheats "1" // Required for Third Person

// Makes the player look straight, as though they never looked up/down.
// Set before switching to certain views, like Top Down View.
centerview
force_centerview



// Mouse/JOY - Can it pitch/yaw? Useful for say, Side Views...
// M = .022 / Joy = -1.5p 1.0y
// m_pitch "0.022"
// m_yaw "0.022"
// joy_pitchsensitivity "-1.5"
// joy_yawsensitivity "1.0"
exec xMouse.cfg // This will replace that :P

cl_leveloverview "0"
// Set First Person or Third Person
// cam_command "1" // 0 FP / 1 TP / Sometimes 2 = Whatever or FP
firstperson "1"
// thirdperson "1"
// thirdpersonshoulder "0" // THIS IS NOT A BOOL YET



// Toon looks around, but camera view won't.
// thirdperson_mayamode "0"	// THIS IS NOT A BOOL YET
thirdperson_platformer "0"	// Toon will aim in the direction they move
thirdperson_screenspace "0"	// Movement will be relative to the camera



// Collision - TP, if camera touches a wall, it zooms in
cam_collision "0"

cam_idealdelta "0" // "4.0"	// Speed at which the camera will change
cam_ideallag "0" //"4.0"	// Amount of lag used when matching offset
//				// to ideal angles in TP view

// cam_contain "0" // Unknown



// *** Source // Gold Source *** //
// Set the camera location
cam_idealdist "0"
cam_idealpitch "0"
cam_idealyaw "0"

cam_idealdistup "0"
cam_idealdistright "0"



// *** Gold Source // Quake *** //
chase_active "0"
chase_back "0"
chase_right "0"
chase_up "0"



// *** Quake III *** //
cg_thirdperson "0"
cg_thirdpersonAngle "0"
cg_thirdpersonRange "0"



// *** Quake IV *** //
pm_thirdperson "0"
// pm_thirdpersondeath "0" // tpv when player dies
pm_thirdpersonangle "0" // 180 = Looks at toon
pm_thirdpersonheight "0"
pm_thirdpersonrange "0" // 80 Default
// pm_maxviewpitch "99"
// pm_minviewpitch "-99"



// What the camera is allowed to do
c_mindistance "-9999"
c_maxdistance "9999"

c_minpitch "-9999"
c_maxpitch "9999"

c_minyaw "-9999"
c_maxyaw "9999"



// Shows what angles the cam has
// cam_showangles "1"



// camortho "0" // THIS IS NOT A BOOL YET
// c_orthoheight "100"
// c_orthowidth "100"
Post comment Comments
IceIYIaN Author
IceIYIaN - - 278 comments

Made the code really ugly... I'm not editing that :P

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: