K_Doom Posted June 30, 2021 Hello everyone, today I have a question for those more familiar with DECORATE. Well, first I want to congratulate the author of this weapon/trap called Ghotic (if he's seeing this) I really liked it. After modifying some things in this weapon, like damage, actor flags and etc, I felt that I should "balance" this feature in the game, does anyone know which actor flag or if I have to create a new class so that land mines also detonate with the approach of player? 0 Quote Share this post Link to post
Dark Pulse Posted June 30, 2021 Got a link to that WAD? As it so happens, I'm actually trying to code up a landmine myself for a project I'm working on, and I can't quite figure out how to make it do what I'd like, so a code reference would be amazing. 1 Quote Share this post Link to post
K_Doom Posted June 30, 2021 (edited) 35 minutes ago, Dark Pulse said: Tem um link para esse WAD? Na verdade, estou tentando codificar uma mina terrestre para um projeto no qual estou trabalhando, e não consigo descobrir como fazer o que eu gostaria, então uma referência de código seria incrível. Here it is (I haven't tested spring mine). LandMineLayer.zip SpringMine.zip Edited June 30, 2021 by K_Doom wrong phrase 0 Quote Share this post Link to post
Gez Posted June 30, 2021 The TOUCHY flag will cause stuff to die if the player touches them. That should work for your mines, I think. 1 Quote Share this post Link to post
Dark Pulse Posted June 30, 2021 (edited) 4 hours ago, Gez said: The TOUCHY flag will cause stuff to die if the player touches them. That should work for your mines, I think. I'm actually trying this and the player for some reason just walks through the mine with TOUCHY set, even though SOLID is also set. Height/radius are also both set. EDIT: Okay, apparently SHOOTABLE must be set in order for it to actually be able to be damaged even if you're just wanting it to be walked into... so now I gotta find a way so the player can't shoot the mines. (The original game did not allow for this.) EDIT 2: So... +SHOOTABLE to make it actually able to be damaged, then +NONSHOOTABLE to be able to be walked into but NOT shot. It looks ironic as hell right next to each other, but well, it works! Maybe SHOOTABLE should be renamed? CANBEDAMAGED or something? Edited June 30, 2021 by Dark Pulse 0 Quote Share this post Link to post
Gez Posted June 30, 2021 IIRC there's a flag called VULNERABLE that ought to do the same thing as the SHOOTABLE+NONSHOOTABLE combo. 0 Quote Share this post Link to post
K_Doom Posted July 1, 2021 16 hours ago, Gez said: A bandeira TOUCHY fará com que as coisas morram se o jogador tocá-las. Isso deve funcionar para suas minas, eu acho. Unfortunately it didn't work ;-; 0 Quote Share this post Link to post
Mr.Rocket Posted July 1, 2021 (edited) Wasn't there a sticky bomb in QStuff Ultra that basically did the same thing? If I recall it didn't stick to players, just to the ground. ~ and walls maybe. If I recall, it had a weapon randomizer, so it may depend on which weapon is placed before you get a chance to use the sticky launcher. Edited July 1, 2021 by Mr.Rocket 0 Quote Share this post Link to post
K_Doom Posted July 1, 2021 19 hours ago, Mr.Rocket said: Wasn't there a sticky bomb in QStuff Ultra that basically did the same thing? If I recall it didn't stick to players, just to the ground. ~ and walls maybe. If I recall, it had a weapon randomizer, so it may depend on which weapon is placed before you get a chance to use the sticky launcher. Well I tested it but I didn't find anything related to what I wanted. 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.