[CS:GO] AcceptEntityInput

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

[CS:GO] AcceptEntityInput

Postby velocity » Thu Nov 08, 2018 5:05 pm

What is the equvivalent to AcceptEntityInput in Sourcepython?

Im trying to replicate this post in SourceMod
https://forums.alliedmods.net/showthread.php?t=146554

I dont know how to do this one in SP:
AcceptEntityInput(iEnt, "SetParentAttachmentMaintainOffset");
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: [CS:GO] AcceptEntityInput

Postby L'In20Cible » Thu Nov 08, 2018 7:59 pm

velocity wrote:What is the equvivalent to AcceptEntityInput in Sourcepython?


Entity.call_input(name, value=None, caller=None, activator=None)

velocity wrote:I dont know how to do this one in SP:
AcceptEntityInput(iEnt, "SetParentAttachmentMaintainOffset");


That one is wrapped in the data files, so you can call it directly with Entity.set_parent_attachment_maintain_offset.
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: [CS:GO] AcceptEntityInput

Postby velocity » Thu Nov 08, 2018 9:19 pm

Thanks and also:

I'm trying to disable the landing animation in CS:GO, is this possible? When you jump and land in CS:GO it shakes ur screen a little (your legs bend), I want to prevent this: any ideas?
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: [CS:GO] AcceptEntityInput

Postby L'In20Cible » Fri Nov 16, 2018 2:40 am

velocity wrote:Thanks and also:

I'm trying to disable the landing animation in CS:GO, is this possible? When you jump and land in CS:GO it shakes ur screen a little (your legs bend), I want to prevent this: any ideas?

Unless there is a networked property or ConVar that disable that animation, I don't think you can prevent it from a server-side plugin as it is most likely predicted by the physics client-side.
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: [CS:GO] AcceptEntityInput

Postby velocity » Fri Nov 16, 2018 12:44 pm

I heard someone said that you could create a prop_dynamic_overwrite and parent it to the player. After that you set the view entity to the prop. This should remove it, but there are a lot of bugs doing this. For example, you cannot see your hands anymore aswell turning your aim is difficult.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: [CS:GO] AcceptEntityInput

Postby L'In20Cible » Sun Nov 18, 2018 1:09 am

velocity wrote:I heard someone said that you could create a prop_dynamic_overwrite and parent it to the player. After that you set the view entity to the prop. This should remove it, but there are a lot of bugs doing this. For example, you cannot see your hands anymore aswell turning your aim is difficult.

Yeah, this is more of a cheap way to pretend it doesn't exists. :tongue:

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 23 guests