AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   [ISSUE] Armor was messed up (https://forums.alliedmods.net/showthread.php?t=303827)

Depresie 12-23-2017 04:29

[ISSUE] Armor was messed up
 
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 )

HamletEagle 12-23-2017 05:43

Re: [ISSUE] Armor was messed up
 
Retrieve final damage from pev_dmg_take.

Depresie 12-23-2017 07:10

Re: [ISSUE] Armor was messed up
 
Is this supposed to be a bug fix or a check for me to do ?

HamletEagle 12-23-2017 07:19

Re: [ISSUE] Armor was messed up
 
Quote:

Originally Posted by Depresie (Post 2567759)
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.

Depresie 12-23-2017 11:38

Re: [ISSUE] Armor was messed up
 
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 ?

HamletEagle 12-23-2017 11:56

Re: [ISSUE] Armor was messed up
 
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

klippy 12-23-2017 12:29

Re: [ISSUE] Armor was messed up
 
Use cs_set_user_armor.


All times are GMT -4. The time now is 10:16.

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