Raised This Month: $ Target: $400
 0% 

Furtive airplane


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
josefort360
Member
Join Date: Jul 2013
Location: El universo
Old 09-07-2015 , 17:50   Furtive airplane
Reply With Quote #1

This plugin is of kill streaks, when i use this kill streak, throw bombs in the direction of your camera, but when i throw the plane only go to one way, let's call 0, and after i use again this KS and i move my camera 90º and the plane go to the same way of before, the called 0.


PHP Code:
public CreatePlane4(id)
{
    new 
Float:Origin[3], Float:Angle[3], Float:Velocity[3], ent;
    
    
get_user_origin(idPobraneOrigin3);
    
    
velocity_by_aim(id1000Velocity);
    
entity_get_vector(idEV_VEC_originOrigin);
    
entity_get_vector(idEV_VEC_v_angleAngle);
    
    
Angle[0] = Velocity[2] = 0.0;
    
Origin[2] += 200.0;
    
    
ent create_ent(id"samolot""models/avionbueno.mdl"28Origin)
    
    
entity_set_vector(entEV_VEC_velocityVelocity);
    
entity_set_vector(entEV_VEC_anglesAngle);
    
    
emit_sound(entCHAN_ITEM"mw/jet_fly1.wav"1.0ATTN_NORM0PITCH_NORM);
    
set_task(4.5"del_plane"ent+5731);
}

public 
CreateBombs2(taskid)
{
    new 
id = (taskid-997);
    
numx[id] += 100
    

    
new radlocation[3];
    
PobraneOrigin[0] += numx[id];
    
PobraneOrigin[1] += -100;
    
PobraneOrigin[2] += 50;
    
    for(new 
i=0i<15i++) 
    {
        
radlocation[0] = PobraneOrigin[0]+1*random_num(-150,150); 
        
radlocation[1] = PobraneOrigin[1]+1*random_num(-150,150); 
        
radlocation[2] = PobraneOrigin[2]; 
        
        new 
Float:LocVec[3]; 
        
IVecFVec(radlocationLocVec); 
        
create_ent(id"bomb""models/p_hegrenade.mdl"210LocVec);
    

josefort360 is offline
Send a message via Skype™ to josefort360
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 09-08-2015 , 14:55   Re: Furtive airplane
Reply With Quote #2

Moved to AMXX section (seems to be the same as https://amxmodx-es.com/Thread-Proble...ar-una-entidad).
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
Reply


Thread Tools
Display Modes

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 22:13.


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