Raised This Month: $ Target: $400
 0% 

Modelindex offset question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-12-2010 , 11:55   Modelindex offset question
Reply With Quote #1

I saw on the ZP core plugin this offset:

PHP Code:
const OFFSET_MODELINDEX 491 // Orangutanz 
It is being used with this stock:

PHP Code:
// Set the precached model index (updates hitboxes server side)
stock fm_cs_set_user_model_index(idvalue// value = model id returned by precache_model native
{
    
set_pdata_int(idOFFSET_MODELINDEXvalueOFFSET_LINUX)

So, my question is, what "exactly" does this?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-12-2010 , 11:55   Re: Modelindex offset question
Reply With Quote #2

(updates hitboxes server side)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-12-2010 , 12:10   Re: Modelindex offset question
Reply With Quote #3

Yeah, i know about that, but what will be the difference?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 10-27-2010 , 18:54   Re: Modelindex offset question
Reply With Quote #4

Im having trouble setting the hitboxes, ie. when i set them you can't do headshot.
getting the id of the model:
PHP Code:
JUMPER_MODEL_ID engfuncEngFunc_PrecacheModelmodelpath 
PHP Code:
 set_pdata_int(idOFFSET_MODELINDEXvalueOFFSET_LINUX
PHP Code:
OFFSET_LINUX 
is this offset necessary when im running hlds on windows ?
__________________
Voi is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-28-2010 , 00:42   Re: Modelindex offset question
Reply With Quote #5

The forth argument is optional and will default to 5 if not used. Not needed on Windows since it's a Linux offset.
__________________
fysiks 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 07:07.


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