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