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

Some attributes don't seem to work.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spepus
New Member
Join Date: Sep 2017
Old 09-11-2017 , 18:02   Some attributes don't seem to work.
Reply With Quote #1

I'm trying to apply knockback to the Engineer's pistol. The configuration for the pistol looks like this:

"22"
{
"preserve-attributes" "1"

"1" "4 ; 1.5" // clip size bonus, +50%
"2" "44 ; 1" // scattergun has knockback, true
"3" "216 ; 2" // scattergun knockback mult, +100%
}

The clip size modifier works fine, but the pistol has no knockback. Am I doing something wrong, or can you only add knockback to scatterguns?
spepus is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-11-2017 , 18:22   Re: Some attributes don't seem to work.
Reply With Quote #2

Many attributes are implemented only in their specific weapon entity classes, or not implemented in the game at all. Generally, if Valve do not use the attribute on the specific weapon class that you are, it probably wont work.
__________________
asherkin is offline
ProfessorHeavy
New Member
Join Date: Apr 2014
Old 04-08-2018 , 10:26   Re: Some attributes don't seem to work.
Reply With Quote #3

Yes, unfortunately, certain attributes are a tad difficult to work with. Hell, for some reason, Cow Mangler projectiles aren't compatible with projectile speed increases.

Whilst I believe there are other methods to approach this, If you're still trying to use normal attributes for this purpose, there are 3 attributes that have a similar effect to this.

215 "apply z velocity on damage"
Applies a vertical impulse for the damage victim. The impulse is on the Z axis.

216 "apply look velocity on damage"
Adds an impulse in the direction the attacker is facing. Tad problematic, sometimes.

522 "damage causes airblast"
Haven't tested this since Jungle Inferno, but this is still used in MvM, so it should work. It deals an airblast-like impulse on damage.

ohnoijustrealizedimlatetothisone

Last edited by ProfessorHeavy; 04-08-2018 at 10:28.
ProfessorHeavy 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 11:33.


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