Raised This Month: $138 Target: $400
 34% 

[L4D1] How to disable glow inheritance on parented model?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 03-08-2020 , 15: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)
[My plugins] [My tools] [GitHub] [Articles]

Last edited by Dragokas; 03-08-2020 at 15:12.
Dragokas is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Brexit
Old 03-11-2020 , 07:46   Re: [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #2

A screenshot will help alot with showing the problem.

If it is what I think you mean that glow is clientsided if I remember right.
__________________
Lux is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 03-11-2020 , 16:14   Re: [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #3

Sure, please.
Attached Images
File Type: jpg para_no_wall.jpg (52.4 KB, 111 views)
File Type: jpg para_wall.jpg (76.6 KB, 66 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 03-11-2020 , 22:49   Re: [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #4

Afaik client side, not possible.
__________________
Silvers is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 03-12-2020 , 01:29   Re: [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #5

Thanks.

Even if I could control client side, I still dunno how to delimit glow between base model and parented model.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Old 03-12-2020 , 07:39   Re: [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #6

You could try prop_dynamic_ornament instead or use constraints. There is no constraint interface exposed to sp though, you would have to use Phys_constraint or Phys_keepupright:
https://developer.valvesoftware.com/...ys_keepupright
https://developer.valvesoftware.com/...hys_constraint
Or write an extension, see CreateFixedConstraint:
https://github.com/ValveSoftware/sou...cs_interface.h
That way excessive Phys_constraint / Phys_keepupright can be avoided

If you don't care about small lags, you could detach the model from the player and correct the position in playerthink hook. If you set the coordinates and the velocity to be equal to the players every gameframe, it should look like parented entity but without the glow effect

Last edited by kadet.89; 03-12-2020 at 07:55.
kadet.89 is offline
Send a message via Skype™ to kadet.89
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 03-12-2020 , 18:36   Re: [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #7

Quote:
Originally Posted by kadet.89 View Post
If you don't care about small lags, you could detach the model from the player and correct the position in playerthink hook. If you set the coordinates and the velocity to be equal to the players every gameframe, it should look like parented entity but without the glow effect
Maybe if you're a listen server without any clients. With client prediction and internet lag I highly doubt that would work smoothly, you would notice the prop isn't attached.
__________________
Silvers is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 03-12-2020 , 18:59   Re: [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #8

It was the way how original parachute plugin is created, and I didn't like that small lags, not smooth and more CPU consuming. Not our way.

kadet.89, thanks for ideas, I will look into them a bit later.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]

Last edited by Dragokas; 03-12-2020 at 18:59.
Dragokas is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Old 03-13-2020 , 06:34   Re: [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #9

Well, you attach the parachute to the player, what if you do it vise-versa?
I did such a trick for vehicle mode. The only problem that the parachute model should have player-like hitboxes. And trace attack on these hitbohes should be forwarded to corresponding player hitboxes.

The easiest way is to create a prop_dynamic / prop_physics with invisible player model and attach everything to it, but it implies that 2 entities will be used for the parachute instead of one.

Here is an example of a player to "prop_physics" attachment : https://youtu.be/uL8gV_ayTyw?t=116 For CS:GO it's the same

Last edited by kadet.89; 03-13-2020 at 09:04.
kadet.89 is offline
Send a message via Skype™ to kadet.89
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 03-13-2020 , 09:32   Re: [L4D1] How to disable glow inheritance on parented model?
Reply With Quote #10

Wait, what? Attach player to parashute? Newer tried Shouldn't it broke everything related to movement, or ...
I don't quite understand relationship.

Lux has successfull examples on using "prop_dynamic_ornament" and "commentary_dummy" for player model.

So, what is relation? Attach fake player model to parachute? Than what to attach to player?
Do you think 1 additional (invis) model in chain will broke glow inheritance?

BTW, nice mod =)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Reply


Thread Tools
Display Modes

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 00:48.


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