Damage over Time (DoT) weapons have been a staple in gaming for decades. They can be anything from a pawn taking acid damage, falling into a pool of lava, drowning, or even being poisoned.
Our next recipe will have us creating a weapon that allows our pawn to take a set amount of damage over a brief period of time. This will require both a weapon, as well as a number of changes to our pawn.
Start by creating a new class called
MyWeapon_PoisonDamage and have it extend from
class MyWeapon_PoisonDamage extends MyWeapon;
We're only going to add one function to this class.