View Single Post
oceanyss
Member
Join Date: Jan 2012
Old 02-07-2019 , 06:55   Re: [L4D2]AdaWong Survivor
Reply With Quote #42

Managed to add Ada's arm to the viewmodel using the following code on m_survivorcharacter 8 netprop, although there are 3 major problems:

PHP Code:
new Viewmodel GetEntPropEnt(clientProp_Data"m_hViewModel");
int iEnt CreateEntityByName("prop_dynamic_override");

DispatchKeyValue(iEnt"model"insertadaarmshere);

DispatchSpawn(iEnt);
SetEntPropEnt(iEntProp_Send"m_hOwnerEntity"client);
SetVariantString("!activator");
AcceptEntityInput(iEnt"SetParent"ViewmodeliEnt0);
SetVariantString("attach_camera");
AcceptEntityInput(iEnt"SetParentAttachment");
SetEntProp(iEntProp_Send"m_fEffects"EF_BONEMERGE|EF_PARENT_ANIMATES); 
1: The arms are not properly attached to the weapon. Setting cl_viewmodelsurvivorfov to 90 sort of does the trick

2: The arms clip through the weapon, not sure how this can be fixed

3: The arms are still drawn if you get pinned, charged or anything that switches to thirdperson. This should be fixable

Hopefully someone can shed light on how to properly attach the arms to the weapons.
oceanyss is offline