This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Blockmaker - How to use less actions in your bm


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-30-2010 , 13:46   Re: Blockmaker - How to use one action for blocks like normal/high/low trampoline
Reply With Quote #6

grenade blocks:
PHP Code:
case BM_HEactionGrenade(idCSW_HEGRENADE);
case 
BM_FROSTactionGrenade(idCSW_SMOKEGRENADE);
case 
BM_FLASHactionGrenade(idCSW_FLASHBANG); 
PHP Code:
actionGrenade(idGrenadeType)
{
    
//get game time
    
new Float:fTime halflife_time();
        
    if (
cs_get_user_team id ) == CS_TEAM_T)
    {
        switch( 
GrenadeType )
        {
            case 
CSW_FLASHBANG:
            {
                if(
fTime >= gfFlashNextUse[id])
                {
                    
give_item(id"weapon_flashbang");
                    
gfFlashNextUse[id] = fTime get_cvar_float("bm_flashcooldown"); 
                }
            }
            case 
CSW_HEGRENADE:
            {
                if(
fTime >= gfHENextUse[id ])
                {
                    
give_item(id"weapon_hegrenade");
                    
gfHENextUse[id] = fTime get_cvar_float("bm_hecooldown"); 
                }
            }
            case 
CSW_SMOKEGRENADE:
            {
                if(
fTime >= gfFrostNextUse[id])
                {
                    
give_item(id"weapon_smokegrenade");
                    
gfFrostNextUse[id] = fTime get_cvar_float("bm_frostcooldown");
                }
            }
        }
    }

lazarev is offline
 



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 23:06.


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