Raised This Month: $ Target: $400
 0% 

Model skin count


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-27-2013 , 21:06   Model skin count
Reply With Quote #1

How to get total skin count inside of model?
Thanks!
.Dare Devil. is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-28-2013 , 00:39   Re: Model skin count
Reply With Quote #2

Open the model and take a look at the bodies and skins. So you need to pre-define them in your sma file manually.

Default body/skin for your used model is 0.
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-28-2013 , 04:18   Re: Model skin count
Reply With Quote #3

Quote:
Originally Posted by Leon M. View Post
Open the model and take a look at the bodies and skins. So you need to pre-define them in your sma file manually.

Default body/skin for your used model is 0.
I like to get this in plugin ( plugin_precache ) it will make life much easier.
.Dare Devil. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-28-2013 , 05:04   Re: Model skin count
Reply With Quote #4

Code:
getSkinCount( const model[] ) {     new skinCount;         new f = fopen( model, "rb" );         if( f )     {         const studioHeader_NumSkin = 196;         fseek( f, studioHeader_NumSkin, SEEK_SET );         fread( f, skinCount, BLOCK_INT );                 fclose( f );     }         return skinCount; }
__________________
Arkshine is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-28-2013 , 05:06   Re: Model skin count
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
Code:
getSkinCount( const model[] ) {     new skinCount;         new f = fopen( model, "rb" );         if( f )     {         const studioHeader_NumSkin = 196;         fseek( f, studioHeader_NumSkin, SEEK_SET );         fread( f, skinCount, BLOCK_INT );                 fclose( f );     }         return skinCount; }
thanks!
.Dare Devil. is offline
Reply


Thread Tools
Display Modes

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:56.


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