AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [solved] viewmodel2 and viewmodel2 difference (https://forums.alliedmods.net/showthread.php?t=117035)

Owyn 01-28-2010 14:05

[solved] viewmodel2 and viewmodel2 difference
 
so i was looking... and found that there are no EV_SZ_viewmodel2 and EV_SZ_weaponmodel2, so you can only set it with fakemeta am i right? :crab:

xPaw 01-28-2010 14:08

Re: no viewmodel2 in engine? )=
 
You don't need to.

pev_viewmodel = Allocated string (as integer)
pev_viewmodel2 = AMXx allocates it and sets to pev_viewmodel
AFAIK

Owyn 01-28-2010 14:12

Re: no viewmodel2 in engine? )=
 
oh =0 i thought they were different things)

btw, so is there a difference when you retrieve data from viewmodel and viewmodel2?

Exolent[jNr] 01-28-2010 15:55

Re: viewmodel2 and viewmodel2 difference
 
Code:
new szModel[ 64 ]; // set model whatever set_pev( iPlayer, pev_viewmodel2, szModel ); // --- new szModel[ 64 ]; pev( iPlayer, pev_viewmodel2, szModel );
Code:
new szModel[ 64 ]; // set model whatever set_pev( iPlayer, pev_viewmodel, engfunc( EngFunc_AllocString, szModel ) ); // --- new szModel[ 64 ]; new iModel = pev( iPlayer, pev_viewmodel ); global_get( glb_pStringBase, iModel, szModel, 63 );


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

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