Post by LegendofWarior on Nov 9, 2015 11:14:43 GMT
First of all, big credit to Abhinash for the original link.
This Only Support ZPA And ZP4.0 And ZP New Modes
I Hope its Helps you
Now Follow those Steps
1. In the source code looking for ZP:
2. in This Section
3. Under
Add
All done with the sprite explosion.
Now do the fragments of the sprites
Find
Then Add
Find
After a Row
Add
also Here is Some Explosion Sprites
Now Find
Add
Here is A Video
Original Post : zombie-mod.ru/counter-strike/stati/12082-dobavlyaem-effekt-vzryva-granat-napalm-frost.html
I Transf it From Russain to English by Google Traduction
Credit : abhinash
This Only Support ZPA And ZP4.0 And ZP New Modes
I Hope its Helps you
Now Follow those Steps
1. In the source code looking for ZP:
// 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"
Addnew g_frostexp
2. in This Section
// 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)
Addg_frostexp = precache_model("sprites/your sprite")
3. Under
// Frost Grenade: Freeze Blast
create_blast3(const Float:originF[3])
{
Add
// Frost 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_frostexp) // Sprite index
write_byte(100) // Size of sprite
write_byte(15) // Framerate
message_end()
All done with the sprite explosion.
Now do the fragments of the sprites
Find
new g_frostexp
Then Add
new g_frost_gibs
Find
// Frost Grenade Explosion
frost_explode(ent)
{
After a Row
// Make the explosion
create_blast3(originF)
Add
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_frost_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()
also Here is Some Explosion Sprites
Now Find
g_forstexp = precache_model("sprites/.spr")
Add
g_frost_gibs = precache_model("sprites/your sprite.spr")
Here is A Video
Original Post : zombie-mod.ru/counter-strike/stati/12082-dobavlyaem-effekt-vzryva-granat-napalm-frost.html
I Transf it From Russain to English by Google Traduction
Credit : abhinash