AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to display v_ model body index ? (https://forums.alliedmods.net/showthread.php?t=185442)

Bos93 05-17-2012 14:24

How to display v_ model body index ?
 

I am using

PHP Code:

SendWeaponAnim( const Player, const Sequence )
{

    
set_pev(Playerpev_weaponanimSequence)

    
message_begin(MSG_ONESVC_WEAPONANIM, .player Player )
    
write_byteSequence )
    
write_byte(1)
    
message_end( )



But female hands do not appear all the time, sometimes they reset to the male hands(bodygroup 0)



Models : http://rghost.ru/38139468

csoldjb 05-17-2012 20:21

Re: How to display v_ model body index ?
 
Like CSO-NST . Because the anim always send after fire(Fire anim is processd at client-side,so you can't hook it).So you must overwrite fire anim after every fire.Because of the delay or other circumstance. It may has some bugs.The best way is do this at client-side.

<VeCo> 05-18-2012 04:45

Re: How to display v_ model body index ?
 
Make 2 models, It's stupid to make submodels to a weapon view model.

Bos93 05-18-2012 05:35

Re: How to display v_ model body index ?
 
Make 2 models - It's stupid

ConnorMcLeod 05-18-2012 05:57

Re: How to display v_ model body index ?
 
Quote:

Originally Posted by Bos93 (Post 1711204)
Make 2 models - It's stupid

But that gonna fix your problem, and you won't need to make code in plugin, so what is stupid eh ?

Bos93 05-18-2012 06:14

Re: How to display v_ model body index ?
 
Precache Limit 512, I should make one model.

ConnorMcLeod 05-18-2012 06:23

Re: How to display v_ model body index ?
 
Look, even if you hook the default SendWeaponAnim (Ham_CS_Weapon_SendWeaponAnim with hamsandwich updated version), there will still be client prediction and you will still see default hands during a short time.
My feeling is either you make 2 models, either you forget about this feature ;)

Hyper Nova 05-18-2012 07:45

Re: How to display v_ model body index ?
 
Quote:

Originally Posted by Bos93 (Post 1711204)
Make 2 models - It's stupid

Anyway, big thanks for showing me how to set view body. ( thats what i needed right now )
I think if you set model body every 0.2 sec it will solve your problem.

ConnorMcLeod 05-18-2012 10:21

Re: How to display v_ model body index ?
 
Quote:

Originally Posted by Hyper Nova (Post 1711266)
I think if you set model body every 0.2 sec it will solve your problem.

That's completely stupid.

Bos93 05-18-2012 10:22

Re: How to display v_ model body index ?
 
Quote:

I think if you set model body every 0.2 sec it will solve your problem.
female hands do not appear all the time


All times are GMT -4. The time now is 00:30.

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