[Resource] Bubbles! (now with horizontal movement!)

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Re: [Resource] Bubbles! (now with better jigging!)

Postby Enjay » Sun Oct 12, 2008 9:42 pm

Well, I had a good chance to mess around with the bubbles tonight and put them in some actual maps and they are very nice. :)
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: [Resource] Bubbles! (now with better jigging!)

Postby JonnyFive » Sun Oct 12, 2008 11:04 pm

Enjay wrote:Well, I had a good chance to mess around with the bubbles tonight and put them in some actual maps and they are very nice. :)


Glad you like them.

Here's a try at the insect thing. Basically you put in a bunch of thing #27000's as insects (maybe 6-12 per swarm looks fine) around the spot you want them to swarm and give them two parameters: the TID of a hate spot you want them to swarm around and the radius beyond which they stop wandering randomly and try to return to the spot. Basically, the smaller the second parameter, the more tightly the insects cluster around the hate spot.

Everything is handled in DECORATE, so no ACS is needed to ensure the insects swarm the right target. There's a basic demo map with a couple lights to see how the insects currently behave.

Currently the insect graphics are just black dots, and they may cause blood splatters to appear if the player stands in the swarm (although they do no damage). I'll keep working on this to see if I can improve it, but I think this might give you the basis for something more advanced.

j5bugFX.pk3
(5.34 KiB) Downloaded 12 times
User avatar
JonnyFive
I will now leave for no raisin!
 
Joined: 08 Aug 2008
Location: New York

Re: [Resource] Bubbles! (now with better jigging!)

Postby JonnyFive » Sun Oct 12, 2008 11:05 pm

Ceeb wrote:Woo, kickass. These are great for my lab levels. I have a suggestion, by the way. You should try and make a bubble spawner that shoots bubbles sideways, which then drift up. For vertical cracks.


That's a very good idea, and something I'll probably do soon (maybe Monday morning or afternoon if I get a couple minutes). I just need to adjust the parameters a bit to get the proper dispersal, but it should be pretty easy to add.
User avatar
JonnyFive
I will now leave for no raisin!
 
Joined: 08 Aug 2008
Location: New York

Re: [Resource] Bubbles! (now with better jigging!)

Postby Ceeb » Sun Oct 12, 2008 11:34 pm

JonnyFive wrote:
Ceeb wrote:Woo, kickass. These are great for my lab levels. I have a suggestion, by the way. You should try and make a bubble spawner that shoots bubbles sideways, which then drift up. For vertical cracks.


That's a very good idea, and something I'll probably do soon (maybe Monday morning or afternoon if I get a couple minutes). I just need to adjust the parameters a bit to get the proper dispersal, but it should be pretty easy to add.


Credit me for that idea so I can feel important, please. :lol:
User avatar
Ceeb
Official Idoit Of ZDoom
Banned User
 
Joined: 11 Jun 2008
Location: Castle Wut

Re: [Resource] Bubbles! (now with better jigging!)

Postby JonnyFive » Mon Oct 13, 2008 12:01 am

Ceeb wrote:Credit me for that idea so I can feel important, please. :lol:


Hey sure, why not.
User avatar
JonnyFive
I will now leave for no raisin!
 
Joined: 08 Aug 2008
Location: New York

Re: [Resource] Bubbles! (now with better jigging!)

Postby Ceeb » Mon Oct 13, 2008 1:01 am

JonnyFive wrote:Hey sure, why not.


Score one for the furries. ;)
User avatar
Ceeb
Official Idoit Of ZDoom
Banned User
 
Joined: 11 Jun 2008
Location: Castle Wut

Re: [Resource] Bubbles! (now with better jigging!)

Postby Enjay » Mon Oct 13, 2008 5:41 am

Thanks for the bugs. It's a starting point, and a cunning one at that. At present, they seem to move quite mechanically - very stop-start. I don't know how successful I'll be, but I'll see if I can come up with anything to reduce that.

The blood decal problem can be cured by giving the insects the +BLOODLESSIMPACT flag.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: [Resource] Bubbles! (now with better jigging!)

Postby Enjay » Mon Oct 13, 2008 7:31 am

OK, here's what I've got so far. I think it looks a bit better - but that could be as much down to the fact that I used insect sprites instead of a dot as anything else. I've changed things so that most of the moving is done by thrusting, thrown a floatbob into the mix and given them bloodlessimpact. The original, I thought, had the insects moving in a fairly horizontal plane primarily because they jumped past a thrustthingz instruction too often (IMO). So I'm thrusting them in the Z direction as often as horizontally. My thrusts are using lower forces generally though.

There could well now be some redundancy in the code - but I'm starting to lose track of the changes so I need to either have some time away from it, or have someone else look and see what they think.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: [Resource] Bubbles! (now with better jigging!)

Postby JonnyFive » Mon Oct 13, 2008 8:10 am

Well, there's the updated bubbleFX resource with wall bubbles (see first post for the file link). Credit to Ceeb for reminding me to do this - make him feel important! :)

@Enjay: The improvements you made look really nice. I like the extended use of thing thrusts - the movement looks a lot more natural. I'll try to clean up the DECORATE a bit and tweak it a little.
Last edited by JonnyFive on Mon Oct 13, 2008 8:25 am, edited 2 times in total.
User avatar
JonnyFive
I will now leave for no raisin!
 
Joined: 08 Aug 2008
Location: New York

Re: [Resource] Bubbles! (now with better jigging!)

Postby JonnyFive » Mon Oct 13, 2008 8:22 am

Okay, I only made a couple minor changes. I scaled the bugs down just a bit, since they still looked kind of big, consolidated the movement code into one place, and added in some comments.

Also, I won't stick my screenname all over this one ( :wink: ) , since Enjay did a lot to make this better. Anyhow, here's bugFX version 3:
Attachments
bugFX_v3.pk3
(15.07 KiB) Downloaded 11 times
Last edited by JonnyFive on Mon Oct 13, 2008 11:28 am, edited 1 time in total.
User avatar
JonnyFive
I will now leave for no raisin!
 
Joined: 08 Aug 2008
Location: New York

Re: [Resource] Bubbles! (now with horizontal movement!)

Postby Enjay » Mon Oct 13, 2008 11:08 am

Unfortunately, I've come across something that severely limits the usefulness of this (all versions). The A_SkullAttack causes the insects to put enemies into their pain state (try putting a zombieman in that little muddy pool in the test level and flagging the surrounding lines as monster blocking). Enemies will retaliate to the "attack" but worse is the fact that they just stand around yelling in pain because the A_SkullAttack is called so often. If you remove the skull attack, the insects just fly away from their target and never seem to manage to get back. I've tried all sorts of flag combinations but I can't seem to get around this problem. :?
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: [Resource] Bubbles! (now with horizontal movement!)

Postby JonnyFive » Mon Oct 13, 2008 11:48 am

Enjay wrote:Unfortunately, I've come across something that severely limits the usefulness of this (all versions). The A_SkullAttack causes the insects to put enemies into their pain state (try putting a zombieman in that little muddy pool in the test level and flagging the surrounding lines as monster blocking). Enemies will retaliate to the "attack" but worse is the fact that they just stand around yelling in pain because the A_SkullAttack is called so often. If you remove the skull attack, the insects just fly away from their target and never seem to manage to get back. I've tried all sorts of flag combinations but I can't seem to get around this problem. :?


Yes... I see what you mean. Also, there was a problem with using hate spots, because they're apparently big enough that they obstruct player shots. That was easy to fix, but this other issue might hurt this a lot. I'll see if I can come up with some way to work around it as well.
User avatar
JonnyFive
I will now leave for no raisin!
 
Joined: 08 Aug 2008
Location: New York

Re: [Resource] Bubbles! (now with horizontal movement!)

Postby Enjay » Mon Oct 13, 2008 1:25 pm

OK, well here is another approach. Unfortunately, it is nothing like as customisable as the first one. Perhaps someone might be able to figure out a way to make it so though?

In fact, I don't really understand why it works at all. It uses code from the Afrit monster (the floating half-baron with the oribting fireballs) and I don't really understand why those fireballs work in the way that they do.

ATM, I've just set up 2 versions. 1 generates 12 bugs in a cloud, the other 24.

Disadvantages:
It uses far more and far clumsier code
It isn't as custmisable
The insect spawner doesn't seem to be able to spawn insects intil it has seen the player

Advantages:
It has no adverse affects on enemies

So, I'm not proposing it as a finished product, but maybe as something that could be used as a stepping stone to a finished product?
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: [Resource] Bubbles! (now with horizontal movement!)

Postby Unknown_Assassin » Mon Oct 13, 2008 1:56 pm

Enjay wrote:The insect spawner doesn't seem to be able to spawn insects intil it has seen the player


You could add +FRIENDLY flag and put a monster nearby

or

Maybe using Thing_Hate on another critter or something?
User avatar
Unknown_Assassin
Bow down to the Protoss Race!!
 
Joined: 12 Apr 2006
Location: Where dead carcasses lie

Re: [Resource] Bubbles! (now with horizontal movement!)

Postby JonnyFive » Mon Oct 13, 2008 3:20 pm

Well, I think I may kind of sort of have fixed the problem. A little bit. Instead of using SkullAttack, using A_Recoil(-1) combined with A_FaceTarget and A_Stop provides a nice way to keep the insects inside their radius. I took out the the SPAWNFLOATING flag, added the FLOAT flag so the insects can properly change their height to match the insect target, added the insect target as a separate item (so the player can't shoot it), and added a bit of random spawn variance in initial insect position.

Whew... anyway, it seems to work pretty well now, subject to a little tweaking. Best of all, it won't send monsters into their pain states.
Attachments
bugFX_v4.pk3
(9.7 KiB) Downloaded 15 times
Last edited by JonnyFive on Mon Oct 13, 2008 7:12 pm, edited 1 time in total.
User avatar
JonnyFive
I will now leave for no raisin!
 
Joined: 08 Aug 2008
Location: New York

PreviousNext

Return to Editing (Archive)

Who is online

Users browsing this forum: No registered users and 5 guests