Frictional Games Forum (read-only)
Cave-in Weird Explosion? (not good) - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Cave-in Weird Explosion? (not good) (/thread-26514.html)



Cave-in Weird Explosion? (not good) - Amnesiaplayer - 10-01-2014

hello. this is the (FINALLY) final part of my Big Cellar -_-
i want that if i DROP a stone to the explosive, that it will EXPLODE.
but what happens?! only the effects are happening?! like some flames... and then the explosive is gone?! (nothing happened).
And if i just hold the stone in my hand and touch it with the explosive WITHOUT DROPPING IT it iwll explode... Immediately....
Can someone help me? Sad I'm Really... I worked more then 1 month for Cellar Sad It's Annoying to work for 1 map... Sad but it is a beautifull map... spending some time to make a map... (not fast)
But i'm really frustrated with this cellar. i hope i can finish this cellar Soon..

My Scriptings.

AddEntityCollideCallback("BamRock", "Bomb", "ExplodingRocks", true, 1);
AddUseItemCallback("", "ExplosiveTest", "PlaceBomb", "PlaceExplosive", true);

Name of my rock is : BamRock and name of explosive is Bomb.
ExplosiveTest is my *for now* bucket name. and PlaceBomb is the area to place the Explosive.

void ExplodingRocks(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("BlockingRocks", 0);
PlaySoundAtEntity("epoxyignite", "12_epoxy_blow", "BlockingRocks", 0, false);
StartScreenShake(0.08, 2.5f, 0, 1.0f);
GivePlayerDamage(25, "BloodSplat", true, false);
PlayMusic("12_puzzle_cavein.ogg", false, 1, 0.0f, 10, true);
SetEntityActive("Bomb", false);
}

I have This.
(and this)
void PlaceExplosive(string &in asItem, string &in asEntity)
{
RemoveItem("FullBucket");
SetEntityActive("Bomb", true);
SetEntityActive("PlaceBomb", false);
}
but that works. but i want that the flames comes first, and then the exploding.
Can someone help meSad


RE: Cave-in Weird Explosion? (not good) - Amnesiaplayer - 10-02-2014

Can No one help me ? Sad
i'm really tired of the cellar. i'm progressing with my other maps. i hope one of you will help me soon Sad


RE: Cave-in Weird Explosion? (not good) - Romulator - 10-03-2014

Is there a reason why you cannot look at how Frictional Games did it in their level? I believe it was in the Storage. It follows the same, if not, similar principle.

I'm also not fully understanding exactly what you want. Can you explain to me the sequence of events you want?

Example:
Player places Bomb at rock.
Flame effects occur (?).
Drop rock into bomb...


RE: Cave-in Weird Explosion? (not good) - Daemian - 10-03-2014

To prevent the player from not throwing the rock you could put an area there to disable the script if the player is inside.


RE: Cave-in Weird Explosion? (not good) - Amnesiaplayer - 10-03-2014

Ni mean this : player place the explosive.
when dropping rock... the sound is playing and flaming fire is upon the Bucket and then BOOOM
and i understand what you mean... i got this script from frictional games.. but it doesn't work ?! i have a new script like this :

PHP Code:
void DaBigBoom(string &in asEntitystring &in asType)
{
    
AddTimer("sound"1"TimerBigBoomEvent");
    
AddTimer("1"4"TimerBigBoomEvent");
}

void TimerBigBoomEvent(string &in asTimer)
{
    if(
asTimer == "sound"){
        
PlaySoundAtEntity("epoxyignite""12_epoxy_blow""cave_in_1"0false);
        
StartScreenShake(0.01002.9f);
        return;
    }
    
    
SetEntityActive("Bomb"false);
    
    
SetPropHealth("BlockingRocks"0);
    
    
StartScreenShake(0.082.5f01.0f);
        
PlayMusic("12_puzzle_cavein.ogg"false10.0f10true);


and my callback func is this :
AddEntityCollideCallback("BamRock", "Bomb", "DaBigBoom", true, 1);
yes my rock name is BamRock and explosive name is Bomb.
the only thing that happen is flaming bucket after dropping a stone and then the bucket go away... nothing happens Sad the cave-in is still there :S


RE: Cave-in Weird Explosion? (not good) - Romulator - 10-03-2014

Is your BlockingRocks object the one in the 'special' folder (the object I am referring to is called "cave_in"? No other blocking rocks have a 'death' animation - that is, an animation which happens when the prop health is 0.

Since something is happening, that means that your code works, somewhat.


RE: Cave-in Weird Explosion? (not good) - Amnesiaplayer - 10-03-2014

No... I have the
one of Debris...
i'm at school now...
i'm going to test this out later...


RE: Cave-in Weird Explosion? (not good) - Amnesiaplayer - 10-04-2014

It doesn't work. I tried. and after tryimg
it 1 year (2 days)
and it seems to be that the EVERY touch to static Full
Bucket (explosive) that the bucket just get flames and go away. so i just create an area. Really Good area.. Covering the bucket. So if the stone touch the bucket (area) it will explode Smile Finally.