rabidrage Posted December 19, 2021 So I've been converting a Risen3D wad by Sitters for use in GZDoom. I think he did a fantastic job with parts of it and I want it to live on. So far I've been pretty good at figuring out what to do. I've been making modeldefs and Decorate defs for the models that he created. The first roadblock that has me confused is the cardboard boxes in the very beginning. Somehow he has it so that they spawn stacked on top of each other. I don't know how to make that happen! Do I have to edit the map and change the spawn height of them, or is there a way to make sure it happens somewhere in the modeldefs or Decorate defs? This is the wad in question: 5 Quote Share this post Link to post
Mr.Rocket Posted December 19, 2021 (edited) I haven't tested. When it comes to models, I've only placed models in a map so far from within the editor. Nope, I just tested.. :D Though, without just setting the z-height ### and gravity to 0 on the thing/model in the map editor its self, I think you might be able to in decortate and zscript with SetOrigin ? for its z-height and have the Gravity at 0 in decorate. Edit: I went ahead and tested this out.. Here we go, ZOffset at the bottom of the MODELDEF properties at the wiki.. Or even just a normal offset keyword, Offset x y z should work. So, in your Decorate set to +NOGRAVITY. And in your Modeldef add, ZOffset 64. In this case it will bring the model 64 units off the ground. Keep in mind though that you may have to adjust its bounding box also. In case you need to jump over the box or something and you wouldn't want its invisible bounding box in your way. ~ which would be adjusting the Radius and Height in your Decorate, try to make it the same size if not smaller than the model its self. Good luck! Edited December 20, 2021 by Mr.Rocket 0 Quote Share this post Link to post
rabidrage Posted December 20, 2021 Now, if some of these things are supposed to be on the floor and others are supposed to be stacked on top, and they are the same actor, how do I get this actor to stack on itself? Will this technique work? 1 Quote Share this post Link to post
Mr.Rocket Posted December 20, 2021 (edited) I'm thinking you should be able to create it as a new actor with a different name than the other, they would just look exactly the same. The difference is that you would have control over them independently. Same model name! ~ but in modeldef and decorate, different names. eg: Modeldef: //Sits on the ground Model Crate_box1 { Path "models" Model 0 "CRATE.obj" Skin 0 "crate_texture1.png" Scale 0.5 0.5 0.5 FrameIndex TREA A 0 0 } //Floating crate Model Crate_box2 { Path "models" Model 0 "CRATE.obj" Skin 0 "crate_texture1.png" Scale 0.5 0.5 0.5 Zoffset 64 FrameIndex TREA A 0 0 } Decorate: //sits on floor.. ACTOR Crate_box1 { +SOLID Radius 64 Height 64 Mass 100 States { Spawn: TREA A -1 Stop } } //is floating.. ACTOR Crate_box2 { +SOLID +NOGRAVITY Radius 64 Height 64 Mass 100 States { Spawn: TREA A -1 Stop } } Edited December 20, 2021 by Mr.Rocket 0 Quote Share this post Link to post
rabidrage Posted December 21, 2021 (edited) This raises an interesting question. I haven't identified all the models yet, but I kinda find out what they are as I make the defs and then run the wad (well, now it's a PK3). It's possible that that's how they were made, but I have doubts because the boxes so far look oddly stretched and glitchy--like they're spawning inside one another. So I might end up having to edit them in GZDoom Builder after all and do the rest like you've suggested. Got a long slog ahead of me with work and the holidays, but I do expect to have this finished sometime in the next year... Thanks for the help so far! Edited December 21, 2021 by rabidrage 1 Quote Share this post Link to post
Mr.Rocket Posted December 22, 2021 (edited) On 12/20/2021 at 11:02 PM, rabidrage said: So I might end up having to edit them in GZDoom Builder after all Well thing is, if you edit it in GZDB, you'd be editing his map, and you don't want to do that. You'd probably be better off just making a new map since by then you'll have a lot of concepts down and then borrow his models to place in your map, as long as you credit him. Or maybe just contact him and maybe he'll give the ok to update it? If you do, tell Sitters I said hey, I haven't talked to him in a long time. Edited December 22, 2021 by Mr.Rocket 0 Quote Share this post Link to post
rabidrage Posted December 23, 2021 (edited) I don't want to do that? Why not? I mean, aside from my own stated misgivings. I'd give him credit for his work. And my edits would be in an attempt to be as accurate as possible. Edited December 23, 2021 by rabidrage 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.