AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Modelindex offset question (https://forums.alliedmods.net/showthread.php?t=132150)

meTaLiCroSS 07-12-2010 11:55

Modelindex offset question
 
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?

ConnorMcLeod 07-12-2010 11:55

Re: Modelindex offset question
 
(updates hitboxes server side)

meTaLiCroSS 07-12-2010 12:10

Re: Modelindex offset question
 
Yeah, i know about that, but what will be the difference?

Voi 10-27-2010 18:54

Re: Modelindex offset question
 
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 ?

fysiks 10-28-2010 00:42

Re: Modelindex offset question
 
The forth argument is optional and will default to 5 if not used. Not needed on Windows since it's a Linux offset.


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

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