[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 ) |
Re: [ISSUE] Armor was messed up
Retrieve final damage from pev_dmg_take.
|
Re: [ISSUE] Armor was messed up
Is this supposed to be a bug fix or a check for me to do ?
|
Re: [ISSUE] Armor was messed up
Quote:
|
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 ? |
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 |
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.