Raised This Month: $ Target: $400
 0% 

[solved] viewmodel2 and viewmodel2 difference


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 01-28-2010 , 14:05   [solved] viewmodel2 and viewmodel2 difference
Reply With Quote #1

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?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-28-2010 , 14:08   Re: no viewmodel2 in engine? )=
Reply With Quote #2

You don't need to.

pev_viewmodel = Allocated string (as integer)
pev_viewmodel2 = AMXx allocates it and sets to pev_viewmodel
AFAIK
__________________
xPaw is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 01-28-2010 , 14:12   Re: no viewmodel2 in engine? )=
Reply With Quote #3

oh =0 i thought they were different things)

btw, so is there a difference when you retrieve data from viewmodel and viewmodel2?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 01-28-2010 at 14:30.
Owyn is offline
Send a message via ICQ to Owyn
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-28-2010 , 15:55   Re: viewmodel2 and viewmodel2 difference
Reply With Quote #4

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 );
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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


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