Reply to Re: Why does the grunt wav sound super-low?
If you don't have an account, just leave the password field blank.
This method won't give any experience points, or trigger the die() procedure (which triggers the item drops). hurt()ing ¤t_sprite will kill it properly, but still won't award the experience (and you'll see the amount of damage float over the sprite, which you may not want). add_exp() can be used for the former, though I'm not sure if you can trigger die() through the engine without making text appear. You could always call die() manually, though.
More meddling later
Seems like an sp_touch_damage unequal to 0 will trigger the touch() procedure, not just when it's -1. A difference is that a positive value will only trigger touch() every 400 milliseconds, at the same time the damage is dealt. I've confirmed this to be the case for brains 0 and 9, and because it works with brain 0, I expect it to work with every brain.
Also, damage from touching is not random, except the usual 50/50 case when your defense is greater than the damage dealt. hurt() may already do this, not sure. The upper-half thing shevek mentioned is true for sprites that have an attack() procedure and an sp_strength.
More meddling later
Seems like an sp_touch_damage unequal to 0 will trigger the touch() procedure, not just when it's -1. A difference is that a positive value will only trigger touch() every 400 milliseconds, at the same time the damage is dealt. I've confirmed this to be the case for brains 0 and 9, and because it works with brain 0, I expect it to work with every brain.
Also, damage from touching is not random, except the usual 50/50 case when your defense is greater than the damage dealt. hurt() may already do this, not sure. The upper-half thing shevek mentioned is true for sprites that have an attack() procedure and an sp_strength.