Raised This Month: $ Target: $400
 0% 

Block TERRO


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 08-05-2010 , 12:05   Block TERRO
Reply With Quote #1

Hello, that's the way I'm blocking TT
Code:
    //block TT
    if (ZONEMODE:zm == ZM_BLOCK_T1 && (userteam == 1)) {
        new Float: velocity[3]
        new Float: DW //Długosc wektora
        entity_get_vector(player,EV_VEC_velocity,velocity)
        DW=vector_length ( velocity )+0.0001
        velocity[0]=(velocity[0]/DW)*(-500.0)
        velocity[1]=(velocity[1]/DW)*(-500.0)
        if(velocity[2]<0) velocity[2]=velocity[2]*(-1.0)+15.0 //wyrzuca do gory
        entity_set_vector(player,EV_VEC_velocity,velocity)

    }
But really it isn;t blocking TT but pushing him away.. Is possiblity to block just TERRO? If is, tell me how
FiFiX is offline
Send a message via Skype™ to FiFiX
 



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 00:10.


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