• Proof of concept - First person body view (Need help too)
    41 replies, posted
Yeah modeling is no issue for me. It's hitting SetModel( "models/Humans/Group01/Male_04.mdl" ); in c_baseplayer.cpp so it should be setting it. However it still shows up as the player.mdl. Time to go search a bit. Also it seems to start in Thirdperson. I have to set view_fba 1 and firstperson before it shows up. Seems kinda odd.
[QUOTE=Lord Ned;16761362]Yeah modeling is no issue for me. It's hitting SetModel( "models/Humans/Group01/Male_04.mdl" ); in c_baseplayer.cpp so it should be setting it. However it still shows up as the player.mdl. Time to go search a bit. Also it seems to start in Thirdperson. I have to set view_fba 1 and firstperson before it shows up. Seems kinda odd.[/QUOTE]starts in thirdperson? that's weird. Just change view_fba's default to 1 and that should be fine
Odd... Searched through the entire codebase for models/player.mdl, and c_baseplayer is the only place it's defined. :/
[QUOTE=Lord Ned;16761714]Odd... Searched through the entire codebase for models/player.mdl, and c_baseplayer is the only place it's defined. :/[/QUOTE] It's assigned in the actual engine code IIRC.
No. I know you can change it. Mods have done it. Fedora obviously did it.
[QUOTE=Lord Ned;16762153]No. I know you can change it. Mods have done it. Fedora obviously did it.[/QUOTE] I mean it's setting to player.mdl in the code, obviously you can override it, and apparently for whatever reason your code isn't overriding the normal code, which means it's either getting run at the wrong time or it's not running at all.
[QUOTE=Lord Ned;16760791]I don't think you read the thread at all PJ... The whole idea was to blend into the right spot so that it DOESN'T look odd.[/QUOTE] Well then why do this in the map? It's like wanting to shoot yourself in the foot. If you want to add new functionality, you're going to need more than copy paste. I'm not being a dick, it's just the truth. There is a reason why a lot of stuff is not done with map entities. Besides I didn't even miss the point, want to know how to make it look great?, don't do it with the map.
How much $$ will you give me and Jimmy if we do it all map-based and it looks fine?
By the way setting the player model in the same file won't work, it's overridden again by the player entity (I don't have the source code with my right now so I can't tell you where that is) but searching the source folder for "player.mdl" should turn it up
I did. It's only defined in that file. The rest are just pre-caches. I replaced it in every file, clientside and server side and it's still good old player.mdl. :/
oh wait, It's either a ConVar, or you can replace player.mdl
I'm inclinded to go with replacing player.mdl :v:
Sorry, you need to Log In to post a reply to this thread.