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

[CS:GO] Remove the knockback of weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 03-07-2017 , 04:35   [CS:GO] Remove the knockback of weapons
Reply With Quote #1

How can I remove the knockback of weapons? When the player is take damage, the damage received, but the return from the weapon was not? In order to the player continued to walk quietly, as if enemies do not shoot at him. That is, so that the player did not push back from the bullets and his walking (running) did not slow down, however, he would have received damage.

For example:
Code:
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1);
=> No damage, no knockback. But I need, in order to player take damage, but no knockback.

Last edited by Accelerator; 03-07-2017 at 04:49.
Accelerator is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 03-07-2017 , 05:05   Re: [CS:GO] Remove the knockback of weapons
Reply With Quote #2

I think you mean tagging.
https://forums.alliedmods.net/showpo...28&postcount=5
Maxximou5 is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 03-07-2017 , 05:43   Re: [CS:GO] Remove the knockback of weapons
Reply With Quote #3

I need to do this only to certain players, not in general.
Accelerator is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 03-07-2017 , 08:22   Re: [CS:GO] Remove the knockback of weapons
Reply With Quote #4

Quote:
Originally Posted by Accelerator74 View Post
I need to do this only to certain players, not in general.
If that "mp_tagging_scale" thing does exactly what you want, you might be able to send it to individual clients using SendConVarValue.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 03-07-2017 , 08:44   Re: [CS:GO] Remove the knockback of weapons
Reply With Quote #5

Using this cvar does not give the effect that I need. The player still pushes away from the gunshots.
Accelerator is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-07-2017 , 09:35   Re: [CS:GO] Remove the knockback of weapons
Reply With Quote #6

Quote:
Originally Posted by Accelerator74 View Post
Using this cvar does not give the effect that I need. The player still pushes away from the gunshots.
Are you using a plugin that give knockback effect like zombiereloaded? Normally weapons dont have knockback without a plugin that I know.
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 03-07-2017 at 10:57.
Franc1sco is offline
Send a message via MSN to Franc1sco
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 03-07-2017 , 10:28   Re: [CS:GO] Remove the knockback of weapons
Reply With Quote #7

I use zombie reloaded.
Accelerator is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-07-2017 , 10:56   Re: [CS:GO] Remove the knockback of weapons
Reply With Quote #8

Quote:
Originally Posted by Accelerator74 View Post
I use zombie reloaded.
Then you need to configure playerclasses.txt for adjust knockback for each class. Or set a class to a client (using ZR natives) if you want that knockback to only a certain client. I could add a ZR native in my zombiereloaded repository for change knockback for a certain client too.
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 03-07-2017 at 10:58.
Franc1sco is offline
Send a message via MSN to Franc1sco
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 03-07-2017 , 11:21   Re: [CS:GO] Remove the knockback of weapons
Reply With Quote #9

If we even shoot on the enemy on a standard server, then if it hits the bullets, its run will slow down. Therefore it works not only on the zombie server. I need to remove this the deceleration of speed when a bullet hits a player.

Quote:
Originally Posted by Accelerator74 View Post
For example:
Code:
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1);
=> No damage, no knockback. But I need, in order to player take damage, but no knockback.
It works exactly the way I need it, but except that I need to make damage to the player. I need to know the 'prop', if there is one?

Last edited by Accelerator; 03-07-2017 at 11:25.
Accelerator is offline
Reply



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 16:15.


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