Doom monster
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 > Linedef action on "explosion"?
 
Author
All times are GMT. The time now is 18:15. Post New Thread    Post A Reply
Eponasoft
Member


Posts: 476
Registered: 07-09


Is there any way to trigger a linedef action when a projectile explodes within its vicinity? I know that you can do an action when a linedef that's part of a wall is shot, but I wanna know if it can be done with *only* an explosive projectile, like a rocket. If not, then I have other ways to do what I wanna do, but this seems the most obvious way.

__________________
My Heretic TC: Two Lords. It's here on the forum somewhere. :)

Old Post 10-05-12 14:27 #
Eponasoft is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 10683
Registered: 07-07


No, not really.

The work around usually consists in using invisible things placed along the linedef that will take damage. For instance, it's how Strife handled it, with forcefield guard actors and degnin ore.

Old Post 10-05-12 14:54 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Eponasoft
Member


Posts: 476
Registered: 07-09


Yeah, that's what I figured... so I figured I'd just place a custom thing that only takes damage of a custom type and ignores all other damage types, then has an action for when it's activated ('killed'). Thanks again Gez, you're always helpful. :D

__________________
My Heretic TC: Two Lords. It's here on the forum somewhere. :)

Old Post 10-05-12 15:00 #
Eponasoft is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Eponasoft
Member


Posts: 476
Registered: 07-09


Yeah, it worked pretty well... I created a new DECORATE Thing and put it in the middle of closed walls...

code:
actor BombDoorActivator 10400 { Height 128 Radius 64 Health 1 DamageFactor Slash, 0 DamageFactor Magic, 0 DamageFactor Boom, 100 +SHOOTABLE +NEVERRESPAWN +DONTMORPH +DONTRIP +NOTELEFRAG +NEVERFAST +NOINFIGHTING +NOTARGET +NOTIMEFREEZE +NOFEAR +NOTARGETSWITCH +NOTELEOTHER +NOICEDEATH +NOBLOOD +NOVERTICALMELEERANGE States { Spawn: TNTA A 1 Loop Death: TNT1 A 1 Stop } }


Then, I use Thing action 194 to "remove" the wall. It only works with the designated weapon. The large radius and tall height give it the ability to be blown up from either side of the wall, and at any point of the wall's height (since the blastable walls are only ever 128 units tall).

__________________
My Heretic TC: Two Lords. It's here on the forum somewhere. :)

Old Post 10-05-12 16:10 #
Eponasoft is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Pottus
Forum Regular


Posts: 795
Registered: 07-09


How about this...

actor ExplodingWall 20001
{
health 1
radius 1
height 1
DamageFactor Slash, 0
DamageFactor Magic, 0
DamageFactor Boom, 100
+nogravity
+shootable
states
{
Spawn:
TNT1 A -1
stop
Death:
TNT1 A 0 ACS_ExecuteAlways(600, 0)
stop
}
}

actor ExplodingWall2 : ExplodingWall 20002
{
states
{
Death:
TNT1 A 0 ACS_ExecuteAlways(601, 0)
stop
}
}

actor ExplodingWall3 : ExplodingWall 20003
{
states
{
Death:
TNT1 A 0 ACS_ExecuteAlways(602, 0)
stop
}
}

actor ExplodingWall4 : ExplodingWall 20004
{
states
{
Death:
TNT1 A 0 ACS_ExecuteAlways(603, 0)
stop
}
}

actor ExplodingWall5 : ExplodingWall 20005
{
states
{
Death:
TNT1 A 0 ACS_ExecuteAlways(604, 0)
stop
}
}

actor ExplodingWall6 : ExplodingWall 20006
{
states
{
Death:
TNT1 A 0 ACS_ExecuteAlways(605, 0)
stop
}
}

actor ExplodingWall7 : ExplodingWall 20007
{
states
{
Death:
TNT1 A 0 ACS_ExecuteAlways(606, 0)
stop
}
}

actor ExplodingWall8 : ExplodingWall 20008
{
states
{
Death:
TNT1 A 0 ACS_ExecuteAlways(607, 0)
stop
}
}

actor ExplodingWall9 : ExplodingWall 20009
{
states
{
Death:
TNT1 A 0 ACS_ExecuteAlways(608, 0)
stop
}
}

actor ExplodingWall10 : ExplodingWall 20010
{
states
{
Death:
TNT1 A 0 ACS_ExecuteAlways(609, 0)
stop
}
}

Old Post 10-06-12 03:06 #
Pottus is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 10683
Registered: 07-07


Why do you need so many? Since all you need for them to do is to run a script when they die; it's simpler to just put special 226 (ACS_ExecuteAlways) on them in the map editor. That way, you can use the same actor for whatever script number.

Old Post 10-06-12 10:16 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Pottus
Forum Regular


Posts: 795
Registered: 07-09


Ya your right that would be the best way.

Old Post 10-06-12 12:04 #
Pottus is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Eponasoft
Member


Posts: 476
Registered: 07-09


I took a short video of it working... shot it with my cellphone camera so it's not the prettiest presentation but it gets the job done.

http://youtu.be/PdfYF3EAti4

I expanded the BombDoorActivator Actor's Death state to include a mess of A_TossGib calls, then put a bunch of JUNK* sprites into the wad. Works pretty well, eh? No ACS required this time around. :)

__________________
My Heretic TC: Two Lords. It's here on the forum somewhere. :)

Old Post 10-07-12 09:38 #
Eponasoft is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Pottus
Forum Regular


Posts: 795
Registered: 07-09


If it looks good it is good =)

Old Post 10-07-12 14:41 #
Pottus is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 18:15. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Linedef action on "explosion"?

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.

Message Board Statistics