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

Having a player model (with no animations) what uses other player model's animation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-22-2015 , 11:22   Having a player model (with no animations) what uses other player model's animation
Reply With Quote #1

Hello everyone, long time no see ...
Anyways.

So i took one costom player model, its skeleton is same as default one's.
It also had same animations as default models.
I removed all animations from that player model.

Usually player models with animations are 1-3mb
but one without them is 100-300kb

Now in order to use that model without animation and forcing model to use
one of the default model's animation would be:
-creating new entity
-giving it that new model
-set_pev pev_aim_ent so model would follow the player and its animation, angle and everything
-make the default player's entity invisible

this way is terrible because:
1. i would be using one extra entity for each player
2. it will use alot more cpu/gpu even when old model is invisible
it still acts like it renders 2 entities even tho one is invisible.

Is there any other way to do what i want?
A way without creating an extra entity.
Thank you!
.Dare Devil. is offline
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 05-22-2015 , 11:52   Re: Having a player model (with no animations) what uses other player model's animati
Reply With Quote #2

Just a small question, why do you need to remove the animation of the models? To save some hard disk memory?
Btw I don't think your way could work properly.
__________________
Shiina.Mashiro is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 05-22-2015 , 12:03   Re: Having a player model (with no animations) what uses other player model's animati
Reply With Quote #3

i dont know exactly what you mean.. but maybe this will help you, https://forums.alliedmods.net/showthread.php?t=91860

Last edited by Depresie; 05-22-2015 at 12:07.
Depresie is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-22-2015 , 20:10   Re: Having a player model (with no animations) what uses other player model's animati
Reply With Quote #4

Quote:
Originally Posted by Shiina.Mashiro View Post
Just a small question, why do you need to remove the animation of the models? To save some hard disk memory?
Btw I don't think your way could work properly.
1. Have you ever been into a server what downloads player models like forever?
2. My way works ... it just works, its not a good solution yet it works.

Quote:
Originally Posted by Depresie View Post
i dont know exactly what you mean.. but maybe this will help you, https://forums.alliedmods.net/showthread.php?t=91860
Yea ... i kinda understand that you don't know what i meant.


To everyone else who is reading this:
Am i really that bad at explaining things?
Are they only ones who doesn't understand, is it me or ... ?
yea ... let me know please.

Last edited by .Dare Devil.; 05-22-2015 at 20:11.
.Dare Devil. is offline
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 05-22-2015 , 21:27   Re: Having a player model (with no animations) what uses other player model's animati
Reply With Quote #5

Quote:
Originally Posted by .Dare Devil. View Post
1. Have you ever been into a server what downloads player models like forever?
2. My way works ... it just works, its not a good solution yet it works.
With a Fast-DL server that isn't a big problem.
Btw can you give me the non-animation model? I wanna try it out.
__________________
Shiina.Mashiro is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 05-24-2015 , 09:07   Re: Having a player model (with no animations) what uses other player model's animati
Reply With Quote #6

so, you want players to not wait much at downloading resources?
Depresie is offline
frk_14
Senior Member
Join Date: Jan 2009
Location: Argentina
Old 05-25-2015 , 19:02   Re: Having a player model (with no animations) what uses other player model's animati
Reply With Quote #7

create a default model (animations) w/o mesh , and replace the pmodel ent model.
problem :now you dont have more weapons :p ; perfect for zombies
__________________
frk_14 is offline
Send a message via MSN to frk_14 Send a message via Skype™ to frk_14
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-26-2015 , 10:13   Re: Having a player model (with no animations) what uses other player model's animati
Reply With Quote #8

Quote:
Originally Posted by frk_14 View Post
create a default model (animations) w/o mesh , and replace the pmodel ent model.
problem :now you dont have more weapons :p ; perfect for zombies
thats genius xD
All tho you can't see player holding weapon ... thats the down side of this.

I guess im going to create model with default animation and with no mesh ( still there has to be some polys for each joint, other ways compiler would not let me ) then going to add this model to player
and create an entity for real model what would follow the animations.

I could use this extra entity's p_model for hats or stuff like these.
.Dare Devil. 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 19:20.


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