Raised This Month: $32 Target: $400
 8% 

Backstabs randomly doing 85 damage..?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xm3kilo
Member
Join Date: Jan 2018
Old 12-11-2018 , 07:56   Backstabs randomly doing 85 damage..?
Reply With Quote #1

Sometimes backstabs do full damage and the other times it does less..

Any idea..? Can replicate this on multiple servers..

This is ever since the update btw, no plugin changes.

Last edited by xm3kilo; 12-11-2018 at 07:58.
xm3kilo is offline
xm3kilo
Member
Join Date: Jan 2018
Old 12-12-2018 , 06:18   Re: Backstabs randomly doing 85 damage..?
Reply With Quote #2

Fixed, I was using:

SetEntProp(client, Prop_Data, "m_ArmorValue", 100, 1);

Instead of:

FindSendPropInfo("CCSPlayer", "m_ArmorValue");
xm3kilo is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-12-2018 , 08:03   Re: Backstabs randomly doing 85 damage..?
Reply With Quote #3

...wait, does this mean player entity have two kind of armor properties ? (one is base and another by game mod ?)

*edit
You tried withouth last value ?
SetEntProp(client, Prop_Send, "m_ArmorValue", 100);

*edit edit
Maybe need use Prop_Send instead Prop_Data

Last edited by Bacardi; 12-12-2018 at 11:54.
Bacardi is offline
xm3kilo
Member
Join Date: Jan 2018
Old 12-13-2018 , 03:54   Re: Backstabs randomly doing 85 damage..?
Reply With Quote #4

Actually, that wasn't my issue at all, it is still happening. I have no idea why. I have the source for every plugin on the server and there's nothing that hooks damage but 1 plugin and the damage goes IN 185 and OUT at the value I set, but it still renders 85.

And yeah, weird isn't it.
xm3kilo is offline
xm3kilo
Member
Join Date: Jan 2018
Old 12-13-2018 , 04:31   Re: Backstabs randomly doing 85 damage..?
Reply With Quote #5

Hmm. Server running on sourcemod 6267 = random 85 damage
sourcemod 6269 = fine.


Could this seriously be a sourcemod issue?
xm3kilo is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-13-2018 , 04:42   Re: Backstabs randomly doing 85 damage..?
Reply With Quote #6

The only things that changed between 6267 and 6269 was ReplyToCommand got a fix and the CSWeaponID enum has some new entries.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
xm3kilo
Member
Join Date: Jan 2018
Old 12-13-2018 , 05:06   Re: Backstabs randomly doing 85 damage..?
Reply With Quote #7

Then dafq is doing it.. I made a duplicate of the server and only updated Sourcemod and it seems to be fine.. (maybe?)

I have 1 plugin hooking SDKHooks OnTakeDamage, and like I said above incoming damage is 185, I set the damage to 100.0 and return plugin changed (logging all of this) but the player takes 85 damage.

So strange. And it's very inconsistent and rare.

Last edited by xm3kilo; 12-13-2018 at 05:07.
xm3kilo 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 18:14.


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