Raised This Month: $51 Target: $400
 12% 

Solved [L4D] How correctly ClearParent to enable physics?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-21-2020 , 12:08   [L4D] How correctly ClearParent to enable physics?
Reply With Quote #1

Hi,

when I "ClearParent" of weapon, it doesn't fall on the ground until I shove it.



PHP Code:
Action CmdTest2(int clientint args)
{
    
AcceptEntityInput(g_iWeapon"ClearParent");
    
    
SetEntProp(g_iWeaponProp_Send"m_CollisionGroup"COLLISION_GROUP_WEAPON);
    
SetEntProp(g_iWeaponProp_Send"m_iParentAttachment"0);
    
SetEntityMoveType(g_iWeaponMOVETYPE_VPHYSICS); 
    
    
TeleportEntity(g_iWeaponNULL_VECTORNULL_VECTORNULL_VECTOR);
    
ChangeEdictState(g_iWeapon0);

How to solve it?

Thanks.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 02-21-2020 at 15:57.
Dragokas 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:17.


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