AAO25.com

America's Army => mAAp Project => Topic started by: Spanky on Friday, January 13, 2012, 19:00:25 PM

Title: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 19:00:25 PM
Blue, before I forget, I think I have a fantastic idea on how to implement these.

Basically, you take 2 timed triggers and an emitter. The first trigger is triggered with damage and starts the emitter. Since all actors have the event and tag attibutes, the emitter can trigger the 2nd timed trigger which has a delay of 5 seconds. When that 5 seconds is up, have it trigger the emitter again which should turn it off.

I'm working on testing this out on Spankyville but I think it should work :)
Title: Re: Exploding barrels & fire extinguishers
Post by: BlueBlaster on Friday, January 13, 2012, 19:05:53 PM
Damn. That's pretty intricate. Lemmie drop you barrel.aao in the v7 folder so you can take a look at it.

The 1 barrel by itself has a few emitters (for explosion) and a viewshaker attached to it for the events. Also the emitter thats chilling on the side of the barrel is the oil spill puddle thing. So you can take a look at how works.

The 3 barrels in a pyramid shape are something I was about to work on yesterday so don't worry about those.


Also lemmie know if wanna know how to got the exploding barrels to work. There were a few options I found out about in a google search yesterday that helped me understand triggering emitters better.
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 19:11:56 PM
Wow, that one barrel by itself is AWESOME. I'm strictly focusing on triggering and killing emitters with shooting. I figure I can always mess with the meshes later on.
Title: Re: Exploding barrels & fire extinguishers
Post by: BlueBlaster on Friday, January 13, 2012, 19:30:36 PM
Glad you like it. I had the most fun making the mesh emitters.
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 19:36:50 PM
I'm getting so frustrated. I can't even get my first trigger to work properly. Nothing's being emitted...
Title: Re: Exploding barrels & fire extinguishers
Post by: BlueBlaster on Friday, January 13, 2012, 19:41:50 PM
The emitter has to be set to disabled when your ready to test the map. Local>bDisabled.
Also 2 other options you should check are spawning>automaticInitialSpawning & trigger>triggerDisable.
automaticInitialSpawning should be false. triggerDisable should be true. I believe those are the default options, so if you didn't change those, don't worry about them.
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 20:05:21 PM
Hmm, I got one that starts activated and turns off when you shoot it... progress :P
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 20:17:28 PM
Finally. I have one barrel that turns off an emitter and another barrel that turns on an emitter. They're in Spankyville on dropbox. Time to go further!
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 20:44:09 PM
I GOT IT!!!!!!!!!

Actor: AGP_Trigger - TriggerMultiple

You can set specific delays for each event. Basically, I have the barrel damage event be the TriggerMultiple then I have the smoke emitter twice in the TriggerMultiple. The first has no delay so it instantly turns on, the second has a 5-6 second delay which turns it off. It works perfectly. It's in Spankyville on Dropbox; the barrel with the eagle head next to it. Lets get those exploding barrels working now :P
Title: Re: Exploding barrels & fire extinguishers
Post by: BlueBlaster on Friday, January 13, 2012, 20:46:47 PM
Ill go take a look right now and report :D

I didnt know there was an AI and that asshole shot me.
Title: Re: Exploding barrels & fire extinguishers
Post by: Jason on Friday, January 13, 2012, 20:47:35 PM
im liking where this is going
Title: Re: Exploding barrels & fire extinguishers
Post by: BlueBlaster on Friday, January 13, 2012, 21:00:53 PM
Smoke emitters are working nicely. Good job on that :D

Also to get the barrels to have lighting, insert the barrel in the level as a mover and not a decomesh :)
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 21:08:27 PM
Those are actually your barrels blue, I just wanted to use a decomesh instead of a trigger. Yea, those AI guys are sneaky, I always go godmode. I'm going to work on fire extinguishers then I'll play with your barrels but since you know how they work, you're welcome to add them to mAAp Pipeline :)
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 22:11:24 PM
Got a working fire extinguisher in break room on Pipeline. Here's a video:
[youtube]http://www.youtube.com/watch?v=wXAFrD_epD0&hd=1[/youtube]
http://www.youtube.com/watch?v=wXAFrD_epD0&hd=1

Still needs to be refined but it's a great start.
Title: Re: Exploding barrels & fire extinguishers
Post by: Alex on Friday, January 13, 2012, 22:13:44 PM
Got a working fire extinguisher in break room on Pipeline. Here's a video:
[youtube]http://www.youtube.com/watch?v=wXAFrD_epD0&hd=1[/youtube]
http://www.youtube.com/watch?v=wXAFrD_epD0&hd=1

Still needs to be refined but it's a great start.
Looks cool, but shouldn't it be centered around the extinguisher instead of to the side?
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 22:20:04 PM
Looks cool, but shouldn't it be centered around the extinguisher instead of to the side?
Not really. I want to have a shooting stream come out of the fire extinguisher which kind of spreads out in a V shape to fill the larger area. I tried doing the small stream but I can't get it to expand outwards the further away from the extinguisher it gets. It's all just a proof of concept though. We're past the idea phase :P
Title: Re: Exploding barrels & fire extinguishers
Post by: Jason on Friday, January 13, 2012, 22:20:51 PM
Looks cool, but shouldn't it be centered around the extinguisher instead of to the side?
i thought the same thing...but maybe the idea is that if he shoots a hole in the side of it, the smoke will shoot out the hole away from the extinguisher
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Friday, January 13, 2012, 22:23:00 PM
i thought the same thing...but maybe the idea is that if he shoots a hole in the side of it, the smoke will shoot out the hole away from the extinguisher
Bingo.
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Saturday, January 14, 2012, 01:13:40 AM
[youtube]http://www.youtube.com/watch?v=UfRma_GFW5Q&feature=youtu.be&hd=1[/youtube]
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Saturday, January 14, 2012, 01:23:44 AM
:) To be fair, and give credit, Blue made the oil leak, initial fireball, explosion particles and screenshake. I added the fire, damaged mesh and health damaging volume. I also re-worked all 9 actors involved to trigger and untrigger properly.

We make a good team.
Title: Re: Exploding barrels & fire extinguishers
Post by: Vikraal on Saturday, January 14, 2012, 04:22:40 AM
This was Interesting, reminds me of some explosive boxes/barrels etc in Counter-Strike 1.6.

The wreckage type, that falls upon impact, auto changes per maps or you make new ones per map?

I didn't expect the Oil Leak though, nice work. Does the Oil leak insure a slippery floor?

You should reduce the shake, or its just because the character, in the video was too close?

The Fireball that happens upon explosion, reminds me of the Game's grenade blast. It needs to be more flashy or its just the recoil that makes the character unable to see it?

Fire and Smoke blends well.
Title: Re: Exploding barrels & fire extinguishers
Post by: JunK on Saturday, January 14, 2012, 05:12:52 AM
looked awesome that movie,

but the Barrels are really needed in this game?
Title: Re: Exploding barrels & fire extinguishers
Post by: Koden on Saturday, January 14, 2012, 07:33:21 AM
looked awesome that movie,

but the Barrels are really needed in this game?

Any object that you can interact with or that has a dynamic behavior is a nice add imho. Then, of course everything has its place. Would be a little wierd to find an explosive barrel in the Operation Room in Hospital but heck, you never know what those Opfor will do right?  ;D
Title: Re: Exploding barrels & fire extinguishers
Post by: JunK on Saturday, January 14, 2012, 09:33:26 AM
update the sound of that explosion, it would be much better :)
Title: Re: Exploding barrels & fire extinguishers
Post by: Vikraal on Saturday, January 14, 2012, 11:06:14 AM
dw nate said the barrels will only appear on his pipeline, and prob not be too wide spread, so it wont be a huge issue that will effect u all across aa... but these words are atleast 3 hours old so he might have changed his mind

It would be rather useless to be only on Pipeline 3.0, The Barrels are more useful in Mount Mckneea, Urban Assault, SF Hospital and Maps where players actively use barrels for cover.

Then Again, how much does it lag, on any map by simply existing?
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Saturday, January 14, 2012, 14:06:07 PM
It would be rather useless to be only on Pipeline 3.0, The Barrels are more useful in Mount Mckneea, Urban Assault, SF Hospital and Maps where players actively use barrels for cover.
People will bitch for modifying classic maps. 'nuff said.

Then Again, how much does it lag, on any map by simply existing?
I don't think it lags much at all to be honest. I mean, the particle emitters need to be spiffed up but fundamentally, this setup is not much more than a smoke emitter and breakable window.

As for JunK, nothing is NEEDED in the game but things like this add more dynamic gameplay. I personally wouldn't hide behind a barrel in real life if someone was shooting at me. Nevermind the fire/explosion hazard but the unpredictable ricochets as well. Point is, shooting fire extinguishers for temporary cover, using destroyable security cameras to view the map, having to think about environmental hazards... these all make the game more dynamic and more enjoyable than rush enemy at X, big firefight, die, new round, rinse & repeat. Personally, I want to make mAAp Pipeline the best it can be. I want to push the engine as far as it will go. I do it because nobody else does, because the AA devs couldn't/wouldn't. I do it because of comments like these on YouTube:
Quote
@HsCSpanky
wtf.. i thought it was AA3 !!! astonishing work!!
Bobalo2 22 hours ago
I do it for fun. Play it or don't, it's your choice, just don't bash it on my forums :)
Title: Re: Exploding barrels & fire extinguishers
Post by: BlueBlaster on Saturday, January 14, 2012, 17:42:12 PM
Damn spanky, thats really amazing. I'm soooooo glad you got the oil leak to work properly. I'm also surprised we got this to work correctly without touching one piece of code. Also the damaged mesh is great, I hadn't thought about that or remembered that existed :)

Also, to people giving some suggestions about how to make it better; ya we know. This is just us showing you previews after all. There's a certain sequence of design you take where you get the bones of the project down first (in this case getting the barrel to explode corectly) and then patching up the design afterwards (custom sounds and textures).
Title: Re: Exploding barrels & fire extinguishers
Post by: [K][K].Zipferurtyp on Saturday, January 14, 2012, 17:47:07 PM
damn that looks awesom :O........had seen videos from pip too.

Title: Re: Exploding barrels & fire extinguishers
Post by: Koden on Saturday, January 14, 2012, 17:49:29 PM

Also, to people giving some suggestions about how to make it better; ya we know. This is just us showing you previews after all. There's a certain sequence of design you take where you get the bones of the project down first (in this case getting the barrel to explode corectly) and then patching up the design afterwards (custom sounds and textures).

I think you're doing really more than fine with that, creating a new dynamic object from scratches. I actually expected it would have taken more time but you literally blew it out :)   
Title: Re: Exploding barrels & fire extinguishers
Post by: Spanky on Saturday, January 14, 2012, 17:53:26 PM
Blue, check the dropbox one again. I added a trigger shadow. I also found out how to kill emitters without abruptly turning them off. They basically run out of particles. Check the fire extinguisher on pipeline on dropbox as well.