Getting pev_iuser* on FM_SetModel
On deploy of a weapon, I set this on the weapon after some conditions:
PHP Code:
But in SetModel, if I drop the weapon, I check it like this: PHP Code:
PHP Code:
EDIT: btw, If I pick the weapon up, and I hooked the deploy of it, pev_iuser1 returns me 1. :) |
Re: Getting pev_iuser* on FM_SetModel
I guess weapons uses iuser integer?
|
Re: Getting pev_iuser* on FM_SetModel
pev_fuser is float and pev_iuser int
|
Re: Getting pev_iuser* on FM_SetModel
if(pev(iEnt, pev_iuser1)) returns zero
Example: PHP Code:
|
Re: Getting pev_iuser* on FM_SetModel
And why only in SetModel it returns 0 and returns 1 in deploy?
|
Re: Getting pev_iuser* on FM_SetModel
deploy return weapon index
|
Re: Getting pev_iuser* on FM_SetModel
Isn't it used by something else that resets it to zero?
|
Re: Getting pev_iuser* on FM_SetModel
SetModel is called on the weaponbox entity, not the actual weapon entity.
|
Re: Getting pev_iuser* on FM_SetModel
Quote:
|
Re: Getting pev_iuser* on FM_SetModel
I'd try using these offsets:
Code:
|
All times are GMT -4. The time now is 02:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.