diff --git a/regamedll/dlls/weapons.cpp b/regamedll/dlls/weapons.cpp index 30641f5c..8478e83d 100644 --- a/regamedll/dlls/weapons.cpp +++ b/regamedll/dlls/weapons.cpp @@ -1310,8 +1310,13 @@ BOOL EXT_FUNC CBasePlayerWeapon::__API_HOOK(DefaultDeploy)(char *szViewModel, ch return FALSE; m_pPlayer->TabulateAmmo(); +#ifdef REGAMEDLL_API + m_pPlayer->pev->viewmodel = ALLOC_STRING(szViewModel); + m_pPlayer->pev->weaponmodel = ALLOC_STRING(szWeaponModel); +#else m_pPlayer->pev->viewmodel = MAKE_STRING(szViewModel); m_pPlayer->pev->weaponmodel = MAKE_STRING(szWeaponModel); +#endif model_name = m_pPlayer->pev->viewmodel; Q_strcpy(m_pPlayer->m_szAnimExtention, szAnimExt); SendWeaponAnim(iAnim, skiplocal);