Raised This Month: $32 Target: $400
 8% 

Zp ice cube


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MayroN
Senior Member
Join Date: Aug 2017
Location: Kyiv
Old 03-15-2019 , 16:52   Zp ice cube
Reply With Quote #1

Then I visited this topic.There is a model of animated ice.The ice is scattered into small pieces.
I'll drop the model if anything.

Please add or suggest how to do that would be after the disappearance of the ice cube ,a second model russiausa pieces of ice and it is gone

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <hamsandwich>
#include <zombieplague>
#include <amxmisc>

#define ice_model "models/Gyiove/dd_iceblock.mdl"
new iceent[33]
const 
PEV_NADE_TYPE pev_flTimeStepSound
const NADE_TYPE_FROST 3333
const Float:NADE_EXPLOSION_RADIUS 240.0

public plugin_init( ) 
{
    
register_plugin"[ZP] ZP++ Ice Cube""1.0""DareDevil (Gyiove)" )
    
RegisterHamHam_Killed"player""pl_killed" )
    
register_forward(FM_EmitSound"fw_EmitSound")
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
register_logevent("round_ended"2"1=Round_End")
}


public 
plugin_precache() 
{
    
engfunc(EngFunc_PrecacheModelice_model)
    
RegisterHam(Ham_Think"grenade""fw_ThinkGrenade"// First one to cross the finish line! Take that zp! :D
}
public 
pl_killed(idice_entityid)
public 
client_disconnect(idice_entityid)
public 
client_connect(idiceent[id] = -1
public round_ended()
{
    static 
a
    
for( 133a++ ) ice_entity(a)
}
public 
zp_user_infected_pre(idice_entity(id)
public 
zp_user_humanized_pre(idice_entity(id)
public 
zp_user_unfrozen(idice_entity(id)
public 
fw_PlayerSpawn_Post(idice_entity(id)

public 
fw_ThinkGrenade(entity)
{
    if (!
pev_valid(entity)) return HAM_IGNORED;
    static 
Float:dmgtimeFloat:current_time
    pev
(entitypev_dmgtimedmgtime)
    
current_time get_gametime()
    if (
dmgtime current_time) return HAM_IGNORED;
    if( 
pev(entityPEV_NADE_TYPE) == NADE_TYPE_FROST )
    {
        static 
Float:originF[3], victimvictim = -1
        pev
(entitypev_originoriginF)
        
        while ((
victim engfunc(EngFunc_FindEntityInSpherevictimoriginFNADE_EXPLOSION_RADIUS)) != 0)
        {
            
// Only effect alive unfrozen zombies
            
if (!is_user_alive(victim) || !zp_get_user_zombie(victim) ) continue;
            
            
// since we cant hook madness somehow because emit_sound wont call the FM_EmitSound, we have to do things the hard way.
            
set_task0.1"ami_frozen"victim 
        }
    }
    return 
HAM_IGNORED;
}

public 
ami_frozen(id)
{
    static 
Float:m
    pev
(idpev_maxspeedm)
    if(
== 1.0
    {
        
ice_entityid
    }
}

stock ice_entityidstatus 
{
    if(
status)
    {
        static 
entFloat:o[3]
        if( !
is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_nemesis(id) )
        {
            
ice_entityid)
            return
        }
        
        if( 
is_valid_ent(iceent[id]) )
        {
            if( 
peviceent[id], pev_iuser3 ) != id )
            {
                if( 
pev(iceent[id], pev_team) == 6969 remove_entity(iceent[id])
            }
            else
            {
                
pevidpev_origin)
                if( 
pevidpev_flags ) & FL_DUCKING  o[2] -= 15.0
                
else o[2] -= 35.0
                entity_set_origin
(iceent[id], o)
                return
            }
        }
        
        
pevidpev_origin)
        if( 
pevidpev_flags ) & FL_DUCKING  o[2] -= 15.0
        
else o[2] -= 35.0
        ent 
create_entity("info_target")
        
set_peventpev_classname"DareDevil" )
        
        
entity_set_model(entice_model)
        
dllfunc(DLLFunc_Spawnent)
        
set_pev(entpev_solidSOLID_NOT)
        
set_pev(entpev_movetypeMOVETYPE_FLY)
        
entity_set_origin(ento)
        
entity_set_size(entFloat:{ -3.0, -3.0, -3.0 }, Float:{ 3.03.03.0 } )
        
set_peventpev_iuser3id )
        
set_peventpev_team6969 )
        
set_rendering(entkRenderFxNone255255255kRenderTransAdd255)
        
iceent[id] = ent
    
}
    else
    {
        if( 
is_valid_ent(iceent[id]) )
        {
            if( 
pev(iceent[id], pev_team) == 6969 remove_entity(iceent[id])
            
iceent[id] = -1
        
}
    }

MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:12.


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