Post by LegendofWarior on Nov 9, 2015 19:00:24 GMT
First of all, big credit to Abhinash for the original link.
Hi, Now i will Teach you How to Add Fire Nade Effect Like this:
With His Gibs
Note : This tut is Transf from Russian to English
Go to Main ZP Source File, and Find
Then Add
Next, Look for Those Lines
Add After Them
Then, Look for This Code
Add This Code, Dont Remplace it
Now Lets add Gibs, Follow Those Steps
Find
Add After it
Then Find
Add
Now, Find
Find After some Lines
Add the Following Code
Enjoy Now, Here is Two Sprites for Fire Gibs and Fire Explosion
fire.spr = For Gibs
fireexplo.spr = For Explosion
Enjoy!
Credit : abhinash
Hi, Now i will Teach you How to Add Fire Nade Effect Like this:
With His Gibs
Note : This tut is Transf from Russian to English
Go to Main ZP Source File, and Find
// CS sounds
new const sound_flashlight[] = "items/flashlight1.wav"
new const sound_buyammo[] = "items/9mmclip1.wav"
new const sound_armorhit[] = "player/bhit_helmet-1.wav"
Then Add
new g_fireexp
Next, Look for Those Lines
// Custom sprites for grenades
g_exploSpr = engfunc(EngFunc_PrecacheModel, sprite_grenade_ring)
g_flameSpr = engfunc(EngFunc_PrecacheModel, sprite_grenade_fire)
g_smokeSpr = engfunc(EngFunc_PrecacheModel, sprite_grenade_smoke)
g_glassSpr = engfunc(EngFunc_PrecacheModel, sprite_grenade_glass)
Add After Them
g_fireexp = precache_model("sprites/Your Sprite Here.spr")
Then, Look for This Code
// Fire Grenade: Fire Blast
create_blast2(const Float:originF[3])
{
Add This Code, Dont Remplace it
// Fire Sprite
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte (TE_SPRITE) // TE ID
engfunc(EngFunc_WriteCoord, originF[0]) // Position X
engfunc(EngFunc_WriteCoord, originF[1]) // Y
engfunc(EngFunc_WriteCoord, originF[2] + 50.0) // Z
write_short(g_fireexp) // Sprite index
write_byte(30) // Size of sprite
write_byte(180) // Framerate
message_end()
Now Lets add Gibs, Follow Those Steps
Find
new g_fireexp
Add After it
new g_fire_gibs
Then Find
g_fireexp = precache_model("sprites/Your Sprite Here.spr")
Add
g_fire_gibs = precache_model("sprites/Your Sprite Here.spr")
Now, Find
// Fire Grenade Explosion
fire_explode(ent)
{
Find After some Lines
// Make the explosion
create_blast3(originF)
Add the Following Code
message_begin (MSG_BROADCAST,SVC_TEMPENTITY)
write_byte( TE_SPRITETRAIL ) // Throws a shower of sprites or models
engfunc(EngFunc_WriteCoord, originF[ 0 ]) // start pos
engfunc(EngFunc_WriteCoord, originF[ 1 ])
engfunc(EngFunc_WriteCoord, originF[ 2 ] + 200.0)
engfunc(EngFunc_WriteCoord, originF[ 0 ]) // velocity
engfunc(EngFunc_WriteCoord, originF[ 1 ])
engfunc(EngFunc_WriteCoord, originF[ 2 ] + 30.0)
write_short(g_fire_gibs) // spr
write_byte(60) // (count)
write_byte(random_num(27,30)) // (life in 0.1's)
write_byte(2) // byte (scale in 0.1's)
write_byte(50) // (velocity along vector in 10's)
write_byte(10) // (randomness of velocity in 10's)
message_end()
Enjoy Now, Here is Two Sprites for Fire Gibs and Fire Explosion
fire.spr = For Gibs
fireexplo.spr = For Explosion
Enjoy!
Credit : abhinash