Talk:Third-person camera: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 20: Line 20:
:I can't help you with this, but to help those who can, you might need to say what you've tried and what method you use to change the player model. &mdash;'''[[User:Maven|Maven]]''' <sup>([[User talk:Maven|talk]])</sup> 17:08, 29 Nov 2005 (PST)
:I can't help you with this, but to help those who can, you might need to say what you've tried and what method you use to change the player model. &mdash;'''[[User:Maven|Maven]]''' <sup>([[User talk:Maven|talk]])</sup> 17:08, 29 Nov 2005 (PST)


::Since I'm rather new to the Source engine I haven't tried much to get the animations working, since I really don't know how to start. To change the model I get a pointer to the local player (with UTIL_GetLocalPlayer()) and use the SetModel function. Since the model needs to be precached, the model has to already be somewhere in the map. --[[User:.freelancer|.freelancer]] 01:31, 30 Nov 2005 (PST)
::Since I'm rather new to the Source engine I haven't tried much to get the animations working, I really don't know how to start. To change the model I get a pointer to the local player (with UTIL_GetLocalPlayer()) and use the SetModel function. Since the model needs to be precached, the model has to already be somewhere in the map. --[[User:.freelancer|.freelancer]] 01:31, 30 Nov 2005 (PST)

Revision as of 03:38, 30 November 2005

Just found the problem with the camera being placed to the right of the player. It seems that the mentioned fix doesn't work if you have already run your mod before. This is because the 90 degree value for cam_idealyaw gets saved to a config file. The config file can be found in Steam\SteamApps\SourceMods\MY_MOD_DIR\cfg\config.fcg. You can open it up and change

cam_idealpitch "90"

to this

cam_idealpitch "0"

Or if you're realy lazy and don't mind loosing your key-bindings and other configurations, just delete it so it gets regenerated.

--Sunblaze 18:53, 19 Jul 2005 (PDT)

Yah, I forgot to mention that. I added it in. --SubKamran 20:32, 19 Jul 2005 (PDT)

Player animations

Probably not the right place for this, but I couldn't find any other suitable page.. I've successfully implemented third-person camera, and constructed an entity that can change the player model on the fly. But the player model won't do any animations, it just floats which is really annoying. Does anyone know how to make the player do some animations? --.freelancer 13:23, 29 Nov 2005 (PST)

I can't help you with this, but to help those who can, you might need to say what you've tried and what method you use to change the player model. —Maven (talk) 17:08, 29 Nov 2005 (PST)
Since I'm rather new to the Source engine I haven't tried much to get the animations working, I really don't know how to start. To change the model I get a pointer to the local player (with UTIL_GetLocalPlayer()) and use the SetModel function. Since the model needs to be precached, the model has to already be somewhere in the map. --.freelancer 01:31, 30 Nov 2005 (PST)