AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Melee Weapon Tank (https://forums.alliedmods.net/showthread.php?t=166356)

panxiaohai 09-02-2011 11:59

[L4D & L4D2] Melee Weapon Tank
 
21 Attachment(s)
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"

BrianGriffin 09-02-2011 13:54

Re: [L4D2] Melee Weapon Tank
 
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 :D

TheSuggestioner 09-02-2011 16:48

Re: [L4D2] Melee Weapon Tank
 
Add a cvar if a tank's melee weapon are randomized. (Baseball bat, katana, etc) With the chainsaw (with infinite gas) being the rarest. :D
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"

Chronic1 09-03-2011 15:08

Re: [L4D2] Melee Weapon Tank
 
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. :)

panxiaohai 09-09-2011 12:55

Re: [L4D2] Melee Weapon Tank
 
Quote:

Originally Posted by Chronic1 (Post 1547314)
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]);

carlos moschen 09-18-2011 18:49

Re: [L4D & L4D2] Melee Weapon Tank
 
man you have a great creativity! congratulations

xioSlayer 09-19-2011 18:19

Re: [L4D & L4D2] Melee Weapon Tank
 
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 :]

panxiaohai 09-20-2011 06:12

Re: [L4D & L4D2] Melee Weapon Tank
 
Quote:

Originally Posted by xioSlayer (Post 1559046)
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.

disawar1 09-20-2011 11:43

Re: [L4D & L4D2] Melee Weapon Tank
 
support l4d1 mmm :o

panxiaohai 09-21-2011 06:56

Re: [L4D & L4D2] Melee Weapon Tank
 
Quote:

Originally Posted by disawar1 (Post 1559495)
support l4d1 mmm :o

Yes, l4d1 have guns and witch, so tank can take them.


All times are GMT -4. The time now is 10:56.

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