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

[L4D & L4D2] Melee Weapon Tank


Post New Thread Reply   
 
Thread Tools Display Modes
Author
panxiaohai
Senior Member
Join Date: Mar 2010
Plugin ID:
2537
Plugin Version:
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Tank have weapon or witch on his hand
    Old 09-02-2011 , 11:59   [L4D & L4D2] Melee Weapon Tank
    Reply With Quote #1

    Melee weapon on tank's hand(there is no additional effect)

    "l4d_melee_tank_chance", "100", "chance of melee tank[0.0, 100.0]"
    "l4d_melee_tank_chance_witch", "30", "chance of take witch[0.0, 100.0]"
    "l4d_melee_tank_weaponsize", "1.0", "weapon size [1.0, 2.0]"
    "l4d_melee_tank_chance_drop", "100", "chance of drop weapon when tank die [0.0, 100.0]"
    "l4d_melee_tank_chance_fullclip", "100", "chance of full clip [0.0, 100.0] "


    !melee : toggle to see or hide your own melee weapon.
    Need sdk hook.

    ChangeLog:
    fix a crash problem.
    add support for l4d1.

    version 1.4
    weaopn on tank's hand can drop
    add witch, ak47, autoshotgun , m60 for tank.
    the weapon's size is adjustable.
    version 1.5
    add convar "l4d_melee_tank_chance_witch", "30", "chance of take witch"
    version 1.6
    add some new weapon for tank.
    weapon have more ammo.
    add convar
    "l4d_melee_tank_chance_fullclip"
    Attached Thumbnails
    Click image for larger version

Name:	c2m1_highway0030.jpg
Views:	11632
Size:	90.9 KB
ID:	91786   Click image for larger version

Name:	c2m1_highway0028.jpg
Views:	7663
Size:	90.6 KB
ID:	92835   Click image for larger version

Name:	c2m1_highway0036.jpg
Views:	7231
Size:	88.1 KB
ID:	92836   Click image for larger version

Name:	c2m1_highway0061.jpg
Views:	6629
Size:	93.3 KB
ID:	92837  
    Attached Files
    File Type: smx l4d_melee_infected.smx (10.0 KB, 5761 views)
    File Type: sp Get Plugin or Get Source (l4d_melee_infected.sp - 3604 views - 17.1 KB)

    Last edited by panxiaohai; 11-08-2011 at 13:31.
    panxiaohai is offline
    BrianGriffin
    Senior Member
    Join Date: Oct 2008
    Old 09-02-2011 , 13:54   Re: [L4D2] Melee Weapon Tank
    Reply With Quote #2

    I JUST LOVE YOUR CREATIVITY!!

    super fun stuff, thanks for sharing once again : ))))

    Might be cool to remove all melee weapons from a map and make the tank drop one when he dies... Makes melee weapons super rare

    Last edited by BrianGriffin; 09-02-2011 at 13:57.
    BrianGriffin is offline
    TheSuggestioner
    Member
    Join Date: Aug 2011
    Location: USA, Connecticut
    Old 09-02-2011 , 16:48   Re: [L4D2] Melee Weapon Tank
    Reply With Quote #3

    Add a cvar if a tank's melee weapon are randomized. (Baseball bat, katana, etc) With the chainsaw (with infinite gas) being the rarest.
    Make sure the melee models are precached or it will cause some errors. (like machete, golf club)

    Oh and I'll test it in versus...

    EDIT: Another thing, also add a cvar for a tank to be forced to be always carrying a certain melee weapon like:
    l4d2_tank_force_melee "weapon_weaponname"
    __________________
    Roses are Red
    Violets are blue,
    Not a big surprise
    If a Tank kills you!

    Last edited by TheSuggestioner; 09-02-2011 at 16:56.
    TheSuggestioner is offline
    Chronic1
    SourceMod Donor
    Join Date: Jun 2011
    Old 09-03-2011 , 15:08   Re: [L4D2] Melee Weapon Tank
    Reply With Quote #4

    My server is crashing on dark carnival right when tanks spawn. Im guessing its because I cannot have ALL melee weapons on ALL maps. So when a tank spawns with a machete, the server crashes because you cant have machete's on Dark Carnival. I havent tested the passing and the sacrifice yet either, they may crash too when i have 8 tanks playing.

    edit: Just added the .vpk that allows all melee on all maps. No more crashing.
    __________________

    Last edited by Chronic1; 09-03-2011 at 16:17.
    Chronic1 is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 09-09-2011 , 12:55   Re: [L4D2] Melee Weapon Tank
    Reply With Quote #5

    Quote:
    Originally Posted by Chronic1 View Post
    My server is crashing on dark carnival right when tanks spawn. Im guessing its because I cannot have ALL melee weapons on ALL maps. So when a tank spawns with a machete, the server crashes because you cant have machete's on Dark Carnival. I havent tested the passing and the sacrifice yet either, they may crash too when i have 8 tanks playing.

    edit: Just added the .vpk that allows all melee on all maps. No more crashing.
    Code:
    #define Melee_FireAxe 1
    #define Melee_ChainSaw 2
    #define Melee_Katana 3
    #define Melee_Machete 4
    #define Melee_Guitar 5
    #define Melee_pan 6
    #define Melee_bat 7
    public OnMapStart()
    { 
        if(L4D2Version)
        {
            for(new i=1; i<7; i++)    PrecacheModel(WeaponName[i]);
         }
    }
    I think the problem is here:
    for(new i=1; i<7; i++) PrecacheModel(WeaponName[i]);
    need change to :
    for(new i=1; i<=7; i++) PrecacheModel(WeaponName[i]);
    panxiaohai is offline
    carlos moschen
    Member
    Join Date: Jan 2011
    Old 09-18-2011 , 18:49   Re: [L4D & L4D2] Melee Weapon Tank
    Reply With Quote #6

    man you have a great creativity! congratulations
    carlos moschen is offline
    xioSlayer
    Senior Member
    Join Date: Apr 2011
    Old 09-19-2011 , 18:19   Re: [L4D & L4D2] Melee Weapon Tank
    Reply With Quote #7

    I will test this out. This is great XD

    If I modify your scale values for the various weapons, will it move them out of place? or do they scale from a special origin?




    EDIT: I also like suggestioner's idea. But maybe with a twist. Instead of making the melee's super rare, maybe you could just make him drop whatever weapon he is carrying, but in the large form (like your enlarged melee weapons plugin). and it can do the extra damage/range to make it 'special'.

    that would be pretty cool.

    not necessary though, just added fun :]

    Last edited by xioSlayer; 09-19-2011 at 20:57.
    xioSlayer is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 09-20-2011 , 06:12   Re: [L4D & L4D2] Melee Weapon Tank
    Reply With Quote #8

    Quote:
    Originally Posted by xioSlayer View Post
    I will test this out. This is great XD

    If I modify your scale values for the various weapons, will it move them out of place? or do they scale from a special origin?




    EDIT: I also like suggestioner's idea. But maybe with a twist. Instead of making the melee's super rare, maybe you could just make him drop whatever weapon he is carrying, but in the large form (like your enlarged melee weapons plugin). and it can do the extra damage/range to make it 'special'.

    that would be pretty cool.

    not necessary though, just added fun :]
    Thank you suggestions, the dropped special melee weapon will in the next version.
    If you modify the scale a little bigger or smaller, it do not change the posistion ralated to tank's hand.

    Last edited by panxiaohai; 09-20-2011 at 06:16.
    panxiaohai is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 09-20-2011 , 11:43   Re: [L4D & L4D2] Melee Weapon Tank
    Reply With Quote #9

    support l4d1 mmm
    disawar1 is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 09-21-2011 , 06:56   Re: [L4D & L4D2] Melee Weapon Tank
    Reply With Quote #10

    Quote:
    Originally Posted by disawar1 View Post
    support l4d1 mmm
    Yes, l4d1 have guns and witch, so tank can take them.
    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 20:32.


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