Raised This Month: $ Target: $400
 0% 

[L4D2]AdaWong Survivor


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
oceanyss
Member
Join Date: Jan 2012
Old 02-07-2019 , 06:55   Re: [L4D2]AdaWong Survivor
Reply With Quote #27

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
 



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 22:21.


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