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

[ISSUE] Armor was messed up


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-23-2017 , 04:29   [ISSUE] Armor was messed up
Reply With Quote #1

Was playing around with traceattack/takedamage today and i figured out that armor is messed up on the latest dev build

Symptoms
1. If a player buys kevlar + helmet from the buy menu it doesn't reduce the damage anymore
2. If a player recieves armor via set_user_armor native the amount of armor won't decrease on damage taken at all, also it doesn't reduce the damage

Configuration used -> ReHLDS + AMXX DEV ( latest )
__________________

Last edited by Depresie; 12-23-2017 at 04:29.
Depresie is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-23-2017 , 05:43   Re: [ISSUE] Armor was messed up
Reply With Quote #2

Retrieve final damage from pev_dmg_take.
__________________

Last edited by HamletEagle; 12-23-2017 at 05:44.
HamletEagle is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-23-2017 , 07:10   Re: [ISSUE] Armor was messed up
Reply With Quote #3

Is this supposed to be a bug fix or a check for me to do ?
__________________
Depresie is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-23-2017 , 07:19   Re: [ISSUE] Armor was messed up
Reply With Quote #4

Quote:
Originally Posted by Depresie View Post
Is this supposed to be a bug fix or a check for me to do ?
You need to use that pev to get the correct damage after damage reduction from armor.
__________________
HamletEagle is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-23-2017 , 11:38   Re: [ISSUE] Armor was messed up
Reply With Quote #5

Yep, it seems like the armor bought from the buy menu is working, but the armor received with set_user_armor doesn't work at all, it doesn't reduce damage, and it is not decreased

Btw if we are still on the topic, do you happen to know when that damage reduction regarding armor is happening ?
__________________

Last edited by Depresie; 12-23-2017 at 11:44.
Depresie is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-23-2017 , 11:56   Re: [ISSUE] Armor was messed up
Reply With Quote #6

It happens in TakeDamage. But the damage parameter is the full damage, that's why you need to use pev_dmg_take.

https://github.com/s1lentq/ReGameDLL...layer.cpp#L862
__________________

Last edited by HamletEagle; 12-23-2017 at 11:59.
HamletEagle is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-23-2017 , 12:29   Re: [ISSUE] Armor was messed up
Reply With Quote #7

Use cs_set_user_armor.
__________________
klippy 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 07:25.


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