Page 1 of 1

[Request] Simple "Toxic Attack" ZScript

PostPosted: Fri Nov 27, 2020 12:10 pm
by XLightningStormL
Whilst I have been experimenting with light zscript stuff (custom flags, custom actives, tick overrides so gas clouds become transparent slightly with each tick, etc) I wish to make a big move to transfer my current toxin system, so that rather than using finicky radius checks, and checking target actors when to give them dummy inventory items (so GZDoom can track and apply toxin damage to the player), and when not to, think how System Shock 2 does Toxin Damage (with GZDoom's poison damage being more short-term poisons, and acid attacks)

This wouldn't be an action, rather I think it would have to be a world event case, I won't go further in detail, but will leave a list of features:
- Be built around Detecting a "ToxicMelee" damagetype, So that Monsters that successfully attack provide "ToxinCount" dummy actors (to the player)
-- As well as being able to prevent additional toxincount dummy items given to the player if it is beyond their "MaxToxicAttackThreshold" (i.e if a Pinky's threshold is 3, the player can only get 3 toxincount dummy items from being bitten by them)
-- Essentially it detects if the player has a certain ToxinCount amount and the EventHandler skips giving any more from a specific entity class basis.
- Be able to set a float "percentage" that can determine how likely it is for the player to get ToxinCount items from being mauled by certain demons (i.e a Pinky would have a 66% chance of giving a player a toxincount dummy item, but a Demon Dog would have a 33% percent chance) defaults to 1.0 if unspecified in a monster's defaults.

This Image should provide a good idea

Re: [Request] Simple "Toxic Attack" ZScript

PostPosted: Sat Nov 28, 2020 3:52 am
by Jarewill
Something like this?

Re: [Request] Simple "Toxic Attack" ZScript

PostPosted: Sat Nov 28, 2020 3:43 pm
by XLightningStormL
Perfect! Thank you!

Nice of you to write up the toxic player damage handler, I didn't really need it, but I'm sure someone else will have the perfect use for it.