Hello friends,
As the title says, i am trying to use explosion decal as effect on destroy srcipt, i have benges sprite pack.
I have an entity (a vehicle), here is the decal information in it`s fpe:
;decals
decalmax = 2
;decal 0 is for shoot and destroy
decal0 = explosion316
;decal1 is for impact
decal1 = explosion116
And here is the destroy script (it`s based in the old FPSC Helicopter Script:
:state=0:stopsound,rundecal=0,state=7
:state=1:stopsound,rundecal=0,state=7
:state=2:stopsound,rundecal=0,state=7
:state=3:stopsound,rundecal=0,state=7
:state=7:floorlogic=0,shapedecal=2,rundecal=2,state=8
:state=8:coloff,rundecal=0
;here runs the crash animation
:state=8:shapedecal=2,timerstart,rundecal=2,setframe=2,incframe=2,sound=audiobank\helicopter\helic.wav,state=9
:state=9,timergreater=1500:state=10
:state=10:rundecal=0,state=11
:state=11:rundecal=2,suspend
It`s working, it`s not perfect, but i think is a decent effect because it runs the decal more than one time giving a simulation of an explosion.
The problem is the scale of the decal, i added this line on the decalspec.txt i am using:
scale = 500
However, it did not work, but the decal1, wich is the decal used for impact (when player shoots at the vehicle), is working, and it is scaled (it appears big in screen), just the problem is with the decal0, wich is used for the desctruction, it appears positioned in the root bone of the entity, but it`s scale is short (the command scale = 500 did not work).
Can anyone help me?
Also i was thinking, i know how to spawn a decal when entity is desroyed, also i did a test destroying one vehicle, immobile, in it`s place, and the effect worked very well because i used a decal inside map editor and placed it in the top of the car, so when the car was destroyed, the explosion spawned.
So isn`t there a way to associate one entity to another? Because if it is possible, achieving a good explosion effect will be very easy, just make the decal follow the vehicle, and when the vehicle s destroyed, the decal spwans.
Cheers,
007
Goldenye 007 N64