Cyberdemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > 2 scripting questions
 
Author
All times are GMT. The time now is 07:04. Post New Thread    Post A Reply
ChaosOverlord
Junior Member


Posts: 171
Registered: 07-01


1) how do I instantly kill the player, for example on NJTRAIN.wad when you step off the train, you die instantly...

2) is there a way to change ceiling/floor textures through scripting?

thanks all...

Old Post 12-15-01 01:19 #
ChaosOverlord is offline Profile || Blog || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Biffy
Forum Regular


Posts: 894
Registered: 02-01


There are a few ways to kill the player pronto. One is to set the sector damage very high, I think 255 is the max value, and when the player touches that floor, splat. You can also use the script damagething and trigger it in a number of ways.

Changing flats, I keep thinking I heard something about it but can't find it now when I search.

Old Post 12-15-01 02:00 #
Biffy is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 6381
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");



Old Post 12-15-01 02:31 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Biffy
Forum Regular


Posts: 894
Registered: 02-01


Hi N. I did a search in zdoom forums for "change flats" and came up with nothing. Odd.

Old Post 12-15-01 03:09 #
Biffy is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
ChaosOverlord
Junior Member


Posts: 171
Registered: 07-01


cool, i'll have to try it out... thanks a lot guys!

Old Post 12-15-01 05:08 #
ChaosOverlord is offline Profile || Blog || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 6381
Registered: 12-00


I think I first found it in Tarin's acsstuff.wad, and just copied and pasted it. When I went looking, I couldn't find it in the regular Zdoom stuff, but it was in HexSpecs.doc (Hexen Specifications)which either came with, or you were advised to get with the Zdoom editing stuff.


Old Post 12-15-01 21:37 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
boris
meow


Posts: 3627
Registered: 05-00


Both ChangeCeiling and ChangeFloor are in the Internal Functions on the ZDoom editing reference page.
As for Sector_SetDamage, you can also set it's damage to 0 to instantly kill the player no matter how many health he's got. Just adding it for completion ;)

Old Post 12-15-01 23:57 #
boris is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 07:04. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > 2 scripting questions

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.