Maes Posted August 10, 2007 Is there a way to modify/redefine DECORATE's base classes? More specifically, I know how I can define a new item/monster etc. and place it in a map, but I want to make a sort of expansion pack that replaces base properties of Doom's standard items (let's say...using my own sound lumps for each item) and will work with ANY WAD using standard items (you won't need to edit all items to reflect DECORATE ones). From what I grasped, that isn't possible or even contemplated in DECORATE, as I can't redefine base classes: while every enemy/item has a decorate equivalent, those can only be used as a template/base class for new ones, and not directly modified. In fact, ZDoom will bomb if I try to redefine e.g. the Shotgun class to use a certain pickup sound, let's say "MYPICKUP". Help!!! 0 Share this post Link to post
Quasar Posted August 10, 2007 DECORATE can't modify existing things at all? Surely there is a way to do it. Isn't there some way to override an existing type with a new one? I'm almost certain I've seen an example of it somewhere. 0 Share this post Link to post
Maes Posted August 10, 2007 I would remember such an example if there was one...but I think it just wasn't contemplated. Most DECORATE projects define new stuff and use them in appropriately modified maps. I think this is confirmed by the example of the Postal 2 meets Doom mod. No ACS, no DECORATE, but SNDINFO seems to do the trick, so I don't need an answer to the first question anymore. Thanks for replying though. 0 Share this post Link to post
TheDarkArchon Posted August 10, 2007 Quasar said:DECORATE can't modify existing things at all? Surely there is a way to do it. Isn't there some way to override an existing type with a new one? I'm almost certain I've seen an example of it somewhere. You can: Use the replaces keyword. 0 Share this post Link to post
Maes Posted August 10, 2007 A practical example? E.g. is actor MyShotgun replaces Shotgun: 2001 { //.... various definitions, unchanged // INTENDED CHANGE inventory.pickupsound MYSOUND //... other definitions, unchanged } } correct? 0 Share this post Link to post
printz Posted August 10, 2007 http://208.78.96.242/wiki/DECORATE_format_specification. www.zdoom.org/wiki/... itself doesn't work. 0 Share this post Link to post
TheDarkArchon Posted August 10, 2007 ACTOR ShotgunLol replaces Shotgun { ... } 0 Share this post Link to post
Maes Posted August 10, 2007 Yeah yeah, I got that to work with actor MaesShotgun : Shotgun replaces Shotgun Now, the problem is the new pickup sound doesn't work :-S The code doesn't bomb, ZDoom starts up nicely, but the shotgun has no pickup sound. None at all. The full code: actor MaesShotgun : Shotgun replaces Shotgun { inventory.pickupsound "MAESSHTG" } Where "MAESSHTG" would be my new sound lump (WAV, 8-bit, 11 KHz, loaded with XWE's "Load" function , not "Load (Raw data)". UPDATE: The sound was just too low to be heard. It works now, but I also had to alias the "MAESSHTG" sound to something else with SNDINFO, as ZDoom's scripting system doesn't seem to handle direct lump references. Again, thanks for all the replies, they helped me getting this sorted quicker. 0 Share this post Link to post