Raised This Month: $319 Target: $400
 79%   Almost there!

[L4D1 AND L4D2] Improved Flying Tank


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ernecio
Member
Join Date: Sep 2019
Location: The United Mexican State
Plugin ID:
7185
Plugin Version:
2.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides the ability to fly to Tanks and special effects.
    Old 07-03-2020 , 16:15   [L4D1 AND L4D2] Improved Flying Tank
    Reply With Quote #1

    [L4D1 AND L4D2] Improved Flying Tank


    About
    This is an improvement to the original Flying Tank plugin by Panxiaohai, when I used this plugin for the first time I really liked its concept and idea, but something puzzled me and it was when the Tank flew, it lost its colors, this created an incompatibility with other plugins that I used, So I was curious to check the source code, and I saw that it could improve some things so make modifications to the code according to my tastes
    (If you want to see the list of changes, it is inside the file, from the original version 1.5 to the current version 2.6)

    Description
    The most notorious is that the tank has the opportunity to fly and follow its target through the air, but unlike the original have some extra effects, tif a player has control of the tank he can control it when it's flies and new Cvars, when a tank flies have new sound and light in his jetpack, it also has a crown effect, it's possible choose the maps where the plugin will run, and the game modes, run only in endings, activate and deactivate the plugin, tank status ads, it doesn't interfere with the rendering of the tanks, so it can be used with other plugins that use this feature, it use GetEntityRenderColor function to color glow and jetpack models.

    Screenshot in L4D1, Tank remains static while flying, and him can defend with fist.


    Screenshot in L4D2, the tank keeps walking while flying, and him can defend with fist.


    (In this case it was combined with Super Tanks, from here https://forums.alliedmods.net/showpo...92&postcount=5)

    How to control the tank
    In case of being controlled by a player, the tank is still subject to the assigned flight probabilities, it is more likely to start to fly if it jumps.

    Key Jump (Space) Ascends in the direction of the crosshair.
    Key Speed (Shift) Move in the direction of the crosshair at seventy-five percent of maximum speed.
    Key Speed + Forward (Shift + W) Move in the direction of the crosshair at maximum allowed speed.
    key Duck (Ctrl) Move in the crosshair direction at thirty-three percent of maximum speed.
    key Duck + Forward (Ctrl + W) Move in the direction of the crosshair at fifty percent of maximum speed.
    Key Forward (W) Gradually move forward.
    Key Back (S) Gradually move back.
    Key Moveright (D) Gradually move to the right.
    Key Moveleft (A) Gradually move to the left.
    Key Use (E) Descend.

    Credits
    Panxiaohai for his Flying Tank plugin and original idea (Original Plugin https://forums.alliedmods.net/showthread.php?p=1544648).
    Silvers for his stock code of game modes allowed in his plugins.
    Marttt for his stock of map code allowed in his plugins.
    All of them thank you for your original ideas and code stocks.

    Convars
    PHP Code:
    // Enables/Disables the plugin. 0 = Plugin OFF, 1 = Plugin ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_flyinginfected_enable "1"

    // Enables/Disables the ability to fly for Tanks only in final events.
    // 0 = Finals OFF.
    // 1 = Finals ON
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_flyinginfected_finale_only "0"



    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    // -
    // Default: ""
    l4d_flyinginfected_gamemodes_on ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    // -
    // Default: ""
    l4d_flyinginfected_gamemodes_off ""

    // Turn on the plugin in these game modes.
    // 0 = All, 1 = Coop, 2 = Survival, 4 = Versus, 8 = Scavenge.
    // Add numbers together.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "15.000000"
    l4d_flyinginfected_gamemodes_toggle "0"

    // Allow the plugin being loaded on these maps, separate by commas (no spaces). Empty = all.
    // Example: "l4d_hospital01_apartment,c1m1_hotel"
    // -
    // Default: ""
    l4d_flyinginfected_maps_on ""

    // Prevent the plugin being loaded on these maps, separate by commas (no spaces). Empty = none.
    // Example: "l4d_hospital01_apartment,c1m1_hotel"
    // -
    // Default: ""
    l4d_flyinginfected_maps_off ""



    // Set the speed of the Tank when him is flying.
    // -
    // Default: "300.0"
    // Minimum: "100.000000"
    // Maximum: "450.000000"
    l4d_flyinginfected_speed "300.0"

    // Set the max flight time.
    // -
    // Default: "100.0"
    // Minimum: "10.000000"
    // Maximum: "1000.000000"
    l4d_flyinginfected_maxtime "100.0"



    // Probability of flying when the Tank throws a rock.
    // -
    // Default: "50.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_flyinginfected_chance_throw "50.0"

    // Probability of flying when the Tank hits.
    // -
    // Default: "45.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_flyinginfected_chance_tankclaw "45.0"

    // Probability of flying when the Tank jumps.
    // -
    // Default: "75.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_flyinginfected_chance_tankjump "75.0"



    // Enables/Disables the crown when Tank is fliying.
    // 0 = Crown of light OFF.
    // 1 = Crown of light ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_flyinginfected_crown "1"

    // Enables/Disables the light effect of the jetpack when the Tank is flying.
    // 0 = JetPack Light OFF.
    // 1 = JetPack Light ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_flyinginfected_light_system "1"

    // Enables/Disables the warning message to the player when is chased by the Tank when him is flying.
    // 0 = Messaje OFF
    // 1 = Messaje ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_flyinginfected_message "1"

    // Enables/Disables the ads about Tank status.
    // 0 = Ads OFF
    // 1 = Ads ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_flyinginfected_ads "1" 
    Installation

    1 - Click "Get Plugin" and put the "l4d_flying_tank.smx" file into your server or game \addons\sourcemod\plugins\ folder.
    (If you have any previous version please delete the file or move from plugins folder and cfg folder)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_flying_tank.sp - 691 views - 60.2 KB)
    __________________

    Last edited by Ernecio; 07-03-2020 at 16:58. Reason: Spell check
    Ernecio is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 07-03-2020 , 16:30   Re: [L4D1 AND L4D2] Improved Flying Tank
    Reply With Quote #2

    It's a great job.

    I used the plugin 4d_fly_infected.smx a while ago, it was really fun. however I had problems using the Mutant Tanks plugin.

    I'm not sure if it will have any incompatibility with the Mutant Tanks by Crasher plugin (https://forums.alliedmods.net/showthread.php?p=2555153).
    But I will test.

    In the case when I used the panxiaohai version, with the Mutant Tanks plugin, the Tanks lost their colors when they fly.
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie

    Last edited by Mi.Cura; 07-03-2020 at 16:35.
    Mi.Cura is offline
    Ernecio
    Member
    Join Date: Sep 2019
    Location: The United Mexican State
    Old 07-03-2020 , 16:45   Re: [L4D1 AND L4D2] Improved Flying Tank
    Reply With Quote #3

    Hi, A time ago I used this plugin with Mutan Tanks version 8.36, if I remember correctly, everything worked fine but I used it for a short time, this plugin maybe could interfere with some attachments, for example the jetpack model, but don't this interfere with colors
    __________________

    Last edited by Ernecio; 07-03-2020 at 16:46.
    Ernecio is offline
    Firebred
    Junior Member
    Join Date: Oct 2019
    Old 07-04-2020 , 04:44   Re: [L4D1 AND L4D2] Improved Flying Tank
    Reply With Quote #4

    Works well, good job!
    Firebred is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 07-04-2020 , 07:18   Re: [L4D1 AND L4D2] Improved Flying Tank
    Reply With Quote #5

    Nice
    Sev is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: TW
    Old 07-20-2020 , 12:10   Re: [L4D1 AND L4D2] Improved Flying Tank
    Reply With Quote #6

    iron man tank
    __________________
    HarryPotter is offline
    Psyk0tik
    AlliedModders Donor
    Join Date: May 2012
    Location: Homeless
    Old 10-11-2020 , 14:30   Re: [L4D1 AND L4D2] Improved Flying Tank
    Reply With Quote #7

    The props attached to Tanks by this plugin will most likely conflict with the props attached by Mutant Tanks. For those who use both plugins, I suggest disabling oxygen/jetpack props for all mutant tanks, so that this plugin can work visually without issues.

    I may add a new ability that takes the concept of flying from this plugin. It will only serve as an alternative for those who only want certain mutant tanks to fly, since I actually like this plugin and I don't want to replace/undermine Ernecio's hard work.
    __________________
    AFK like JFK
    --
    Donate to Motivate
    --
    Get latest L4D/L4D2 gamedata signatures here.
    --
    PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
    Psyk0tik is offline
    Ernecio
    Member
    Join Date: Sep 2019
    Location: The United Mexican State
    Old 02-23-2021 , 15:22   Re: [L4D1 AND L4D2] Improved Flying Tank
    Reply With Quote #8

    Quote:
    Originally Posted by Crasher_3637 View Post
    The props attached to Tanks by this plugin will most likely conflict with the props attached by Mutant Tanks. For those who use both plugins, I suggest disabling oxygen/jetpack props for all mutant tanks, so that this plugin can work visually without issues.

    I may add a new ability that takes the concept of flying from this plugin. It will only serve as an alternative for those who only want certain mutant tanks to fly, since I actually like this plugin and I don't want to replace/undermine Ernecio's hard work.
    Thanks, I think it's time to update this Plugin in its stock remove entities through loop, i will change the stock for entity ID, and sorry so late reply
    __________________
    Ernecio 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 14:02.


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