Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT

Posts: 6094
Registered: 12-00 |
Most of this is from the Zdoom manual (downloadable from the zdoom page).
Sector_SetDamage (tag, amount, mod)
tag = Tag of affected sector
amount = amount of damage to applay
mod = Means-of-death identifier
Sets the amount of damage done to a player in a sector. This is in addition to whatever is specified by the sector's special. Damage amount below 20 will only hurt the player if he doesn't have an environment suit. Damages between 20-49 will occasionally hurt the player even with an environment suit on. Damages of 50 and above will always hurt the player unless he is in god mode.
The following means-of-death identifiers are suitable for use with the Sector_SetDamage special:
0 MOD_UNKNOWN
12 MOD_WATER
13 MOD_SLIME
14 MOD_LAVA
15 MOD_CRUSH
16 MOD_TELEFRAG
17 MOD_FALLING
18 MOD_SUICIDE
19 MOD_BARREL
20 MOD_EXIT
21 MOD_SPLASH
22 MOD_HIT
From Enjay Train
Sector_SetDamage (const:2, 1000, 7);
OK, so 1000 is possibly extreme. I *think* it is something like 400 and over will always kill you, even in god mode.
Changing flats, nice and easy:
ChangeFloor(tag, "FLAT")
eg ChangeFloor(1, "RROCK03");
changeceiling(tag, "FLAT");
eg changeceiling(2, "RROCK03");
|