Raised This Month: $51 Target: $400
 12% 

[HL] Entity with studiomdl as playermodel


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 03-05-2024 , 23:07   [HL] Entity with studiomdl as playermodel
Reply With Quote #1

In Half-Life, each player can set their desired player model (for example: model "zombie"). In doing so, they can specify any string for the model (model "abc"), and only those players who have that particular model ("models/player/abc/abc.mdl") present in their game client will see it. All others will see the default "gordon" model.

My question:
Can I add an entity on the map with studiomdl with the same logic?
Phant is offline
Send a message via ICQ to Phant
bibu
Veteran Member
Join Date: Sep 2010
Old 03-06-2024 , 08:04   Re: [HL] Entity with studiomdl as playermodel
Reply With Quote #2

Should be possible. Just check if the file exists on the client, if so precache the model using fakemeta natives (it's during gametime possible) and set the model as usual. For non-exisiting clients use a default model which the same mentioned method.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 03-06-2024 , 16:46   Re: [HL] Entity with studiomdl as playermodel
Reply With Quote #3

Quote:
Originally Posted by bibu View Post
Just check if the file exists on the client
How it's possible?
I know about file_exists() function, but it's server-side?

Quote:
Originally Posted by bibu View Post
precache the model using fakemeta natives (it's during gametime possible)
And again, EngFunc_PrecacheModel is server-side?

Last edited by Phant; 03-06-2024 at 16:52.
Phant is offline
Send a message via ICQ to Phant
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-06-2024 , 22:53   Re: [HL] Entity with studiomdl as playermodel
Reply With Quote #4

I don't think its quiet possible because its not possible whether to know if the client have the file or not, its clientside code, you can give it a try...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-06-2024 at 22:54.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-09-2024 , 00:02   Re: [HL] Entity with studiomdl as playermodel
Reply With Quote #5

If it's a bona fide 'player' model, use res file or precache. There is no need to see if they have the file already. The same fallback logic is applied.
__________________
DJEarthQuake is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode