AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ZPA] How to add snowflakes from the frozen zombie (https://forums.alliedmods.net/showthread.php?t=271045)

GreenZombie 09-04-2015 07:01

[ZPA] How to add snowflakes from the frozen zombie
 
Hi, i use Zombie Plague Advance. How can i do when the zombie is frozen i want to falling snowflakes from him... so i have to add somewhere this code

PHP Code:

 // Get origin
 
static Float:originF[3]
 
pev(idpev_originoriginF)
 
 
engfunc(EngFunc_MessageBeginMSG_BROADCAST ,SVC_TEMPENTITYoriginF0)
 
write_byte(TE_SPRITETRAIL// TE ID
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
 
engfunc(EngFunc_WriteCoordoriginF[2]+40// z axis
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
 
engfunc(EngFunc_WriteCoordoriginF[2]) // z axis
 
write_short(g_frost_gib// Sprite Index
 
write_byte(10// Count
 
write_byte(12// Life
 
write_byte(2// Scale
 
write_byte(20// Velocity Along Vector
 
write_byte(5// Rendomness of Velocity
 
message_end()
 
 
set_task(1.0"create_snow_fall_sprite"id)


but i don't understand where i have to add this code

Depresie 09-04-2015 10:51

Re: [ZPA] How to add snowflakes from the frozen zombie
 
in the code look for the frost grenade code
you should add this under the line that is freezing the zombie


All times are GMT -4. The time now is 22:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.