Raised This Month: $51 Target: $400
 12% 

[L4D2] Remote Control Aircraft


Post New Thread Reply   
 
Thread Tools Display Modes
Author
panxiaohai
Senior Member
Join Date: Mar 2010
Plugin ID:
2473
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 08-02-2011 , 05:50   [L4D2] Remote Control Aircraft
    Reply With Quote #1

    Credits
    alexip121093
    DJ_WEST
    ......

    Descriptions
    Remote Control Aircraft, many features will be added.
    This version is only for driving.
    If you have some suggestions, please tell me.

    Video:
    http://v.youku.com/v_show/id_XMjkyNzA2NjI0.html

    How to use (default key):
    !f18 : create f18 to control
    E :trun off f18
    reload: change control mode (not working in Versus and Dedicated Server)
    zoom: change view mode
    ctrl(back ):decrease throttle
    space (forward)
    :
    increase throttle
    left or right : roll
    up or down : pitch
    shift + left or right : yaw
    left button : fire
    right button : drop bomb

    Convars:
    "l4d_uav_enable", "1", " 0:disable, 1:enable in coop mode, 2: enable in all mode "
    "l4d_uav_team", "2", " 1:enable for survivor and infected, 2:enable for survivor, 3:enable for infected "
    "l4d_uav_maxuser", "2", "how many people can use it"
    "l4d_uav_teleport", "1", "0:disable 1:enable teleport to teamate"

    "l4d_uav_gundamage", "50.0", "damage of machine gun"
    "l4d_uav_bombdamage", "100.0", "damage of bomb"
    "l4d_uav_bombradius", "200.0", "damage radius of bomb"

    "l4d_uav_bulletcount", "1500", "count of bullet"
    "l4d_uav_bombcount", "80", "count of bomb"

    "l4d_uav_size", "3.6", "f18 size [1.0. 5.0]"

    Requirement: SDK Hooks

    Changlog:
    use mouse left button to shot
    2011.8.5
    You can change mode between keybord contolling and mouse controlling by pressing reload button.
    2011.8.8
    Add bomb weapon.
    2011.8.20
    Fix no ammo problem
    2011.8.27
    F18 's size is Adjustable,and add glow for f18 and bomb.
    Attached Thumbnails
    Click image for larger version

Name:	c2m1_highway0109.jpg
Views:	1635
Size:	94.7 KB
ID:	91324   Click image for larger version

Name:	c2m1_highway0139.jpg
Views:	1664
Size:	95.3 KB
ID:	91325   Click image for larger version

Name:	c2m1_highway0229.jpg
Views:	1675
Size:	70.0 KB
ID:	91326   Click image for larger version

Name:	c2m1_highway0273.jpg
Views:	1733
Size:	91.1 KB
ID:	91327   Click image for larger version

Name:	c2m1_highway0362.jpg
Views:	1619
Size:	92.2 KB
ID:	91328  

    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_uav.sp - 1329 views - 51.9 KB)
    File Type: smx l4d2_uav.smx (27.2 KB, 1388 views)

    Last edited by panxiaohai; 10-01-2011 at 22:03.
    panxiaohai is offline
    Elektramode
    Senior Member
    Join Date: Mar 2010
    Old 08-02-2011 , 10:48   Re: [L4D2] Remote Control Aircraft
    Reply With Quote #2

    Emm... This... is... amazing!!! You seem to putting out a lot of plugins

    Going to test this in 3 hours time... report if I see any bugs or Console spamming... otherwise for suggestions from what I am reading atm... Maybe a weapon system... Thats all I can think for now, I'l input some other ideas in a few hours.

    Last edited by Elektramode; 08-02-2011 at 10:58.
    Elektramode is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 08-02-2011 , 11:36   Re: [L4D2] Remote Control Aircraft
    Reply With Quote #3

    Quote:
    Originally Posted by Elektramode View Post
    Emm... This... is... amazing!!! You seem to putting out a lot of plugins

    Going to test this in 3 hours time... report if I see any bugs or Console spamming... otherwise for suggestions from what I am reading atm... Maybe a weapon system... Thats all I can think for now, I'l input some other ideas in a few hours.
    Thank you , if you see some bugs please tell me.
    The ultimate goal is to be a UAV, but you also can control it if you want.

    Last edited by panxiaohai; 08-02-2011 at 11:38.
    panxiaohai is offline
    Elektramode
    Senior Member
    Join Date: Mar 2010
    Old 08-02-2011 , 14:37   Re: [L4D2] Remote Control Aircraft
    Reply With Quote #4

    Current Issue I have found: Out of 50 times of spawning the plane, it has only been spawned twice correctly, the rest of the time it says stop, could you make it so the plane has a better spawn, because most of the time it breaks at spawn.

    Issue 2: Increase speed and decrease does not work, the rest of the controls work.

    It is not Space bar decreaes, spacebar increases and ctrl decreases

    Last edited by Elektramode; 08-02-2011 at 15:58.
    Elektramode is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 08-02-2011 , 16:26   Re: [L4D2] Remote Control Aircraft
    Reply With Quote #5

    Quote:
    Originally Posted by Elektramode View Post
    Current Issue I have found: Out of 50 times of spawning the plane, it has only been spawned twice correctly, the rest of the time it says stop, could you make it so the plane has a better spawn, because most of the time it breaks at spawn.

    Issue 2: Increase speed and decrease does not work, the rest of the controls work.

    It is not Space bar decreaes, spacebar increases and ctrl decreases
    Thank you , it is a little bug, I have fix it.
    panxiaohai is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 08-02-2011 , 20:02   Re: [L4D2] Remote Control Aircraft
    Reply With Quote #6

    I want to create a particle to simulate bullets shoting from f18, but I can not control it direction, anyone can help me?
    Here is the code:
    new String:particlename[64]="weapon_tracers_50cal";
    new particle = CreateEntityByName("info_particle_system");
    DispatchKeyValue(particle, "effect_name", particlename);
    DispatchSpawn(particle);
    ActivateEntity(particle);
    TeleportEntity(particle, pos, ang , NULL_VECTOR);
    AcceptEntityInput(particle, "start");
    Attached Thumbnails
    Click image for larger version

Name:	c2m1_highway0028.jpg
Views:	946
Size:	67.6 KB
ID:	89891  
    panxiaohai is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 08-03-2011 , 01:25   Re: [L4D2] Remote Control Aircraft
    Reply With Quote #7

    Try to create a info_particle_target to the target position and give it a name
    Then set its name to the control point 1 of the particle
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 08-03-2011 , 04:22   Re: [L4D2] Remote Control Aircraft
    Reply With Quote #8

    Quote:
    Originally Posted by alexip121093 View Post
    Try to create a info_particle_target to the target position and give it a name
    Then set its name to the control point 1 of the particle
    Thank you for your help, it works very well, thak you again.

    Code:
    ShowTrack(Float:pos[3], Float:ang[3], Float:length)
    {
        new Float:vec[3];
        new Float:endpos[3];
        GetAngleVectors(ang, vec, NULL_VECTOR, NULL_VECTOR);
        NormalizeVector(vec, vec);
        ScaleVector(vec,length);
        AddVectors(pos, vec, endpos);
        
        decl String:particlename[64]="weapon_tracers_50cal";
        decl String:temp[64]="";
        
        new target = CreateEntityByName("info_particle_target");
        Format(temp, 64, "cptarget%d", target);
        DispatchKeyValue(target, "targetname", temp);    
        TeleportEntity(target, endpos, NULL_VECTOR, NULL_VECTOR); 
        ActivateEntity(target); 
        
        new particle = CreateEntityByName("info_particle_system");
        DispatchKeyValue(particle, "effect_name", particlename);
        DispatchKeyValue(particle, "cpoint1", temp);
        DispatchSpawn(particle);
        ActivateEntity(particle); 
        TeleportEntity(particle, pos, NULL_VECTOR, NULL_VECTOR);
        AcceptEntityInput(particle, "start");    
    }
    panxiaohai is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 08-03-2011 , 08:18   Re: [L4D2] Remote Control Aircraft
    Reply With Quote #9

    By using the same method , you can add fire and explosive ammo. Maybe also laser too....
    You can add this to your remote gun plugins too

    By The Way can you add my name to your thread Credits section
    __________________

    Last edited by alexip121093; 08-03-2011 at 08:30.
    alexip121093 is offline
    Send a message via MSN to alexip121093
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 08-03-2011 , 08:36   Re: [L4D2] Remote Control Aircraft
    Reply With Quote #10

    Quote:
    Originally Posted by alexip121093 View Post
    By using the same method , you can add fire and explosive ammo. Maybe also laser too....
    You can add this to your remote gun plugins too

    By The Way can you add my name to your thread Credits section
    Very willing, you are my teacher, part of f18's first weapon was completed , thanks for your help, I also benefit from a lot of people in the forum, thanks.

    I think it should be vertical takeoff and landing aircraft, becouse the sky is too narrow to fly.

    Last edited by panxiaohai; 08-03-2011 at 08:45.
    panxiaohai is offline
    Reply



    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 15:07.


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