AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Changing Sub-Model of v_ model (https://forums.alliedmods.net/showthread.php?t=250946)

datyin 11-02-2014 12:25

Changing Sub-Model of v_ model
 
Hi guys... i'm wondering whats the best method to change sub-model of an v_*.mdl

For example CSO model has male and female hands. I want to use female hands so what method should i use?

http://i.imgur.com/9zhhy5r.png

This method is kinda buggy sometimes:
Code:

message_begin(MSG_ONE, SVC_WEAPONANIM, {0, 0, 0}, player)
write_byte(iAnim)
write_byte(iHands) // id of hands
message_end()


meTaLiCroSS 11-02-2014 18:29

Re: Changing Sub-Model of v_ model
 
Quote:

Originally Posted by datyin (Post 2219293)
Hi guys... i'm wondering whats the best method to change sub-model of an v_*.mdl

For example CSO model has male and female hands. I want to use female hands so what method should i use?

http://i.imgur.com/9zhhy5r.png

This method is kinda buggy sometimes:
Code:

message_begin(MSG_ONE, SVC_WEAPONANIM, {0, 0, 0}, player)
write_byte(iAnim)
write_byte(iHands) // id of hands
message_end()


That must be done on all animations. And server doesn't handle 100% all animations. That why you should send them everytime because client-prediction.

Which weapon do you want to change it's hands?

mapper07 11-03-2014 09:19

Re: Changing Sub-Model of v_ model
 
This might be a little off topic but does anyone know or know where I can go to create a model with submodels or a model with different textures/skins like the AFM football player ones? If not ignore this. Thanks.

datyin 11-03-2014 09:31

Re: Changing Sub-Model of v_ model
 
Quote:

Originally Posted by meTaLiCroSS (Post 2219374)
That must be done on all animations. And server doesn't handle 100% all animations. That why you should send them everytime because client-prediction.

Which weapon do you want to change it's hands?

All weapons except knife

RateX 11-03-2014 10:44

Re: Changing Sub-Model of v_ model
 
Quote:

Originally Posted by mapper07 (Post 2219591)
This might be a little off topic but does anyone know or know where I can go to create a model with submodels or a model with different textures/skins like the AFM football player ones? If not ignore this. Thanks.

For the submodel, search for paintball mod's models or halflife's hgrunt model and decompile them.
For the subskin, decompile cs hostage model.

NiHiLaNTh 11-03-2014 16:11

Re: Changing Sub-Model of v_ model
 
Quote:

Originally Posted by datyin (Post 2219598)
All weapons except knife

Thats the point. Most of the weapons have some animations done client-side (probably all, except knife,grenades and C4). So for that you would need to hook primary attack and send your own animation, but that's pretty poor way though.
Another way is to use separate male/female v_ models, but that will hit 512 resources limit pretty fast (unless you run clean server).

datyin 11-04-2014 13:48

Re: Changing Sub-Model of v_ model
 
Quote:

Originally Posted by NiHiLaNTh (Post 2219777)
Another way is to use separate male/female v_ models, but that will hit 512 resources limit pretty fast (unless you run clean server).

I'm using this method now... since there is no other way to hook without animation bug :3

Fr33m@n 11-04-2014 16:30

Re: Changing Sub-Model of v_ model
 
mmm can you upload your model ? i want to try something on it.

datyin 11-04-2014 16:51

Re: Changing Sub-Model of v_ model
 
1 Attachment(s)
Here it is...

Fr33m@n 11-06-2014 13:45

Re: Changing Sub-Model of v_ model
 
1 Attachment(s)
alternative way, a different model for women.


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

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