But doesn't that assume you set the model yourself with the "SET_MODEL"
command, and precache it?

What I'm trying to avoid is precaching ALL of our player models, which
would mean:
1) Only server-defined player models could be used. This isn't an issue
because I restrict the models client-side anyway through model
encryption.
2) It would take up 40+Mb of memory for models that it never use.

Right now my code does:

char *szModel = "paladin"; // For instance...
SET_MODEL( ENT(pev), "models/player.mdl" );
g_engfuncs.pfnSetClientKeyValue( entindex(),
g_engfuncs.pfnGetInfoKeyBuffer( edict() ), "model", szModel );

...but what does that have to do with "developer 0"?

For the record, I set a breakpoint inside the client-side rendering code
and, sure enough, "model/player.mdl" is the entity being rendered. Is
this some safety feature in Half-Life?

Tnx & Rgds...
David Flor
Lead Programmer, "The Opera" - http://opera.redeemedsoft.com/

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Georges
Giroux
Sent: Friday, May 17, 2002 9:10 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlcoders] Third person player / Developer mode


Hey there,

On Gladiator the camera is always in third person, but I always had
trouble with the gordon model being displayed rather than my own. I
found out you have to clear out the model key like this:

// Have to do this or else ingame model switching does not work for some
reason g_engfuncs.pfnSetClientKeyValue( entindex(),
g_engfuncs.pfnGetInfoKeyBuffer( edict() ), "model", "" );

That fixed my problem.

--------------
Project Lead/Coder
Gladiator mod
[EMAIL PROTECTED]
ICQ: 11425443
http://gladiator.lan-gaming.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Flor
Sent: Friday, May 17, 2002 8:51 PM
To: [EMAIL PROTECTED]
Subject: [hlcoders] Third person player / Developer mode


Something weird...

"The Opera" has a third person mode that I emulate, so to speak. I am
planning of releasing a patch in the coming days, but I noticed
something rather odd.

When I ran in third person, I noticed that the player model always
appears as the "player.mdl" reference model, irrespective of the model
selected. BUT it only did that when "developer 0" is set. If I set
"developer 1", I see the correct model.

Is this normal? Is there something deep in my code that might be causing
this, or is this a native Half-Life thing?

Tnx & Rgds...
David "Nighthawk" Flor ( [EMAIL PROTECTED] )
Lead Programmer, "The Opera" - http://opera.redeemedsoft.com/

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to