nuclide/Source/client/valve/view.c

37 lines
1,008 B
C
Raw Normal View History

/***
*
* Copyright (c) 2016-2019 Marco 'eukara' Hladik. All rights reserved.
*
* See the file LICENSE attached with the sources for usage details.
*
****/
void View_UpdateWeapon(entity vm, entity mflash)
{
/*if( aw < CS_WEAPON_COUNT ) {
if ( pSeat->fLastWeapon != aw ) {
pSeat->fLastWeapon = aw;
if ( aw >= 1 ) {
string wm;
if (autocvar_skins_dir != "") {
wm = sprintf("skins/%s/%s", autocvar_skins_dir, sViewModels[ aw - 1 ]);
} else {
wm = sprintf("models/%s", sViewModels[ aw - 1 ]);
}
setmodel( eViewModel, wm );
if (getstati_punf(STAT_TEAM) == TEAM_CT) {
setcustomskin(eViewModel, "", "geomset 0 2\n");
} else {
setcustomskin(eViewModel, "", "geomset 0 1\n");
}
skel_delete( eMuzzleflash.skeletonindex );
eMuzzleflash.skeletonindex = skel_create( eViewModel.modelindex );
pSeat->fNumBones = skel_get_numbones( eMuzzleflash.skeletonindex ) + 1;
pSeat->fEjectBone = pSeat->fNumBones + 1;
}
}
}*/
}