Making C4 Explode Effects
How to make own c4 explode effect, with sound sprite and etc...
|
Re: Making C4 Explode Effects
1 Attachment(s)
c4 explosion logged :
|
Re: Making C4 Explode Effects
lol, so many messages are sent... the problem is i dont know names of sprites
I did something fast... PHP Code:
|
Re: Making C4 Explode Effects
Your code calls 20 times a native :D
This one calls 11 natives and does exactly the same (should be 2 times faster) : PHP Code:
|
Re: Making C4 Explode Effects
The provided log doesn't help really because it's not filtered. The log contains the explosion from entities near.
A C4 explosion uses : - 4 TE_SPRITE ( There are 3 explosions, the first at the bomb origin ( sprites/eexplo.spr + sprites/zerogxplode.spr ), and the 2 others randomly around ( sprites/fexplo.spr ) ) - 1 TE_SMOKE ( Bomb origin ; sprites/steam1.spr ; 0.3 second after the explosion ) - 1 TE_WORLDDECAL ( Bomb end position origin ; decal used "{scorch1" or "{scorch2" you can use EngFunc_DecalEntity ) - Depending a random, severals TE_SPARKS or nothing. So far I've observed it's like the grenade in HL but with some modifications. If you need it I can provide the code for the sparks it needs more code to show them. |
Re: Making C4 Explode Effects
isnt bomb using TE_EXPLOSION too ? i think you was mean this instead of TE_SPRITE
|
Re: Making C4 Explode Effects
No. There is no TE_EXPLOSION.
|
Re: Making C4 Explode Effects
then i need additional sound for it oO
|
Re: Making C4 Explode Effects
weapons/c4_explode1.wav
Edit : It would be exactly : engfunc( EngFunc_EmitAmbientSound, Entity, Origin, "weapons/c4_explode1.wav", VOL_NORM, 0.25, 0, PITCH_NORM ); |
Re: Making C4 Explode Effects
Ok gonna try, i will not make TE_WORLDDECAL, since this exploded decal doesnt interest me ;)
Edit: about EngFunc_EmitAmbientSound, where i get 'Entity' if i'm just sending msgs? |
| All times are GMT -4. The time now is 02:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.