Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cave-in Weird Explosion? (not good)
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#1
Cave-in Weird Explosion? (not good)

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
10-01-2014, 09:13 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#2
RE: Cave-in Weird Explosion? (not good)

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
10-02-2014, 07:38 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Cave-in Weird Explosion? (not good)

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...

Discord: Romulator#0001
[Image: 3f6f01a904.png]
10-03-2014, 02:18 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#4
RE: Cave-in Weird Explosion? (not good)

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

10-03-2014, 02:32 AM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#5
RE: Cave-in Weird Explosion? (not good)

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: (Select All)
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
10-03-2014, 06:41 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#6
RE: Cave-in Weird Explosion? (not good)

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.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 10-03-2014, 08:18 AM by Romulator.)
10-03-2014, 08:17 AM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#7
RE: Cave-in Weird Explosion? (not good)

No... I have the
one of Debris...
i'm at school now...
i'm going to test this out later...
10-03-2014, 09:10 AM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#8
RE: Cave-in Weird Explosion? (not good)

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.
10-04-2014, 11:43 AM
Find




Users browsing this thread: 1 Guest(s)