View Single Post
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-08-2020 , 14:11   [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #1

PHP Code:
        int entity CreateEntityByName("prop_dynamic_override");
        
        if (
entity != -1)
        {
            
DispatchKeyValue(entity"model"path_full_model);
            
DispatchKeyValue(entity"DefaultAnim"sAnimIdle);
            
SetEntityMoveType(entityMOVETYPE_NOCLIP);
            
DispatchSpawn(entity);
            
SetVariantString(sAnimDeploy);
            
AcceptEntityInput(entity"SetAnimation");
            ...
            
SetVariantString("!activator"); 
            
AcceptEntityInput(entity"SetParent",cliententity0);
            
SetVariantString("medkit");
            
AcceptEntityInput(entity"SetParentAttachment");
            ...
            
TeleportEntity(entityvOriginview_as<float>({0.00.090.0}), NULL_VECTOR);    
        } 
Parented to survivor.

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; 03-18-2021 at 13:55.
Dragokas is offline