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
Author Message
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-04-2010 , 05:59   Blockmaker - How to use less actions in your bm
Reply With Quote #1

Hello,
Here I will show you, how to make normal/low/high trampoline with one action instead of three different
Here is the action:
PHP Code:
actionTrampoline(idFloat:Velo)
{
    
//if trampoline timeout has exceeded (needed to prevent velocity being given multiple times)
    
if (halflife_time() >= gfTrampolineTimeout[id])
    {
        new 
Float:velocity[3];
        
        
//set player Z velocity to make player bounce
        
entity_get_vector(idEV_VEC_velocityvelocity);
        
velocity[2] = Velo;    
        
entity_set_vector(idEV_VEC_velocityvelocity);
        
        
entity_set_int(idEV_INT_gaitsequence6);           //play the Jump Animation
        
        
gfTrampolineTimeout[id] = halflife_time() + 0.5;
    }

Velo = speed of trampoline.

So, we will have something like this:
PHP Code:
    case BM_TRAMPOLINEactionTrampoline(id500.0);
    case 
BM_LOWTRAMPOLINEactionTrampoline(id250.0);
    case 
BM_HIGHTRAMPOLINEactionTrampoline(id750.0); 
Tell me if you want more examples, oki?

Last edited by lazarev; 03-30-2010 at 13:59.
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 19:33.


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