ThaPwned / WCS

Warcraft: Source using Source.Python to be faster, expandable, and flexible
GNU General Public License v3.0
30 stars 23 forks source link

[QUESTION] Any way to use damage type DMG_FALL for damage commands? (Armor damage reduction) #85

Closed missedbeat closed 2 years ago

missedbeat commented 3 years ago

Example: wcs_dealdamage userid damage attacker | wcs_dealdamage userid 50 attacker In the case when the player has armor, he is inflicted incomplete damage, not 50 as planned. Also, the damage reduction in this case depends on which weapon the attacker is holding in his hands. In the original ES mod, the damage system works through WCS_FALL, judging by the code. Is it possible to do the same here? Game: CSS OB, Linux host. (My English is poor, I apologize for that. )

ManifestManah commented 3 years ago

I am uncertain as to whether wcs_dealdamage supports different damage types. But I know that the damage command from Eventscripts does provide support for different damage types. So if you are using the Eventscripts Emulator, then you can utilize this command instead as an alternative.

You can read about the eventscripts damage command here: https://web.archive.org/web/20170528043321/http://www.eventscripts.com/pages/Damage

Also, if you are not already a member of the Warcraft-Source discord, then come join us, you can get quick responses in there from other users, you can get a server promotion section for your server, and we notify the appropriate users whenever new content or updates are available :-) https://discord.com/invite/zYASbKz

ThaPwned commented 2 years ago

wcs_dealdamage (and any damage-dealing method/command unless otherwise specified) will now use ENERGYBEAM as that ignores armor as well since 2d47dd2cf58a866467f0f8dd02faabc5261713eb.