Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buu342

Damage the player and heal them floors?

Recommended Posts

Hello. I just wanted to know if it is possible to have a floor that only damages 1% of the players health at a time. Also is it possible to reverse the technique? (Heal them 10% instead of damaging them with a certain floor?)

Thanks

Share this post


Link to post
MetroidJunkie said:

#include "zcommon.acs"
Script 1 Enter
{
DamageThing(1);
Delay(35);
Restart;
}


works like a charm.

Share this post


Link to post

just put some of them there cinderblocks on it, that'll do it.

Share this post


Link to post

There is also a script function Sector_SetDamage. It will damage the player only if he's standing on floor with specified tag. Example script:

--------------------------------------------
#include "zcommon.acs"
SCRIPT 1 ENTER
{
Sector_SetDamage(27,1,0);
// sector with tag 27 will damage 1% of player's health
}
--------------------------------------------

But this function can only hurt players, not heal them. You can give a sector special 196 (Healing Sector) to a sector - it will give the player 1% health every second, until he has 100% health. Works only if the map is in "Doom in Hexen format" or UDMF format.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×