Raised This Month: $ Target: $400
 0% 

How to display v_ model body index ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bos93
Veteran Member
Join Date: Jul 2010
Old 05-17-2012 , 14:24   How to display v_ model body index ?
Reply With Quote #1


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
__________________

Last edited by Bos93; 05-28-2012 at 09:05.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
csoldjb
Member
Join Date: Dec 2010
Old 05-17-2012 , 20:21   Re: How to display v_ model body index ?
Reply With Quote #2

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.
csoldjb is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-18-2012 , 04:45   Re: How to display v_ model body index ?
Reply With Quote #3

Make 2 models, It's stupid to make submodels to a weapon view model.
__________________
<VeCo> is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 05-18-2012 , 05:35   Re: How to display v_ model body index ?
Reply With Quote #4

Make 2 models - It's stupid
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-18-2012 , 05:57   Re: How to display v_ model body index ?
Reply With Quote #5

Quote:
Originally Posted by Bos93 View Post
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 ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Hyper Nova
BANNED
Join Date: May 2012
Old 05-18-2012 , 07:45   Re: How to display v_ model body index ?
Reply With Quote #6

Quote:
Originally Posted by Bos93 View Post
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.
Hyper Nova is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-18-2012 , 10:21   Re: How to display v_ model body index ?
Reply With Quote #7

Quote:
Originally Posted by Hyper Nova View Post
I think if you set model body every 0.2 sec it will solve your problem.
That's completely stupid.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Hyper Nova
BANNED
Join Date: May 2012
Old 05-18-2012 , 10:40   Re: How to display v_ model body index ?
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
That's completely stupid.
I know I'm a terrible person...
Hyper Nova is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-18-2012 , 12:25   Re: How to display v_ model body index ?
Reply With Quote #9

Quote:
Originally Posted by Bos93 View Post
doesn't work

Code:
public SendWeaponAnim( Entity, iAnim, skiplocal, body)
{
	new iPlayer = pev( Entity, pev_owner)

	if ( !is_user_connected( iPlayer )  ) return HAM_IGNORED

	SendWeaponAnim( iPlayer, iAnim )
		
	return HAM_SUPERCEDE
}
You are not hooking the right one, the one i said is CS specific and has only 3 args, also you can just change args values instead of supercede, but the function you hooked is never called on cs.

Quote:
Originally Posted by Hyper Nova View Post
I know I'm a terrible person...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 05-18-2012 , 06:14   Re: How to display v_ model body index ?
Reply With Quote #10

Precache Limit 512, I should make one model.
__________________

Last edited by Bos93; 05-18-2012 at 06:16.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
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 00:30.


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