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

[L4D/L4D2] Weapon/Zombie Spawner v1.0a (Update 18.10.10)


Post New Thread Reply   
 
Thread Tools Display Modes
Ulrich
Member
Join Date: Mar 2010
Location: In a box
Old 06-12-2010 , 03:55   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #361

Since I know nothing about programming plugins, could someone help me?

I'm altering the menu-creating part of this code to add the Riot Shield as an option for a spawnable Melee weapon. What I've done is I took the code already in the plugin and just changed the names of the weapons to riotshield, which is the Riot Shield's weapon name. I've added this to the list of melee weapons for each of the campeigns (could this be the problem?), along with the AllowAllMeleeWeapons menu. This is what it ends up looking like:
Code:
Format(riotshield, sizeof(riotshield),"%T", "RiotShield", LANG_SERVER)
  AddMenuItem(menu, "riotshield", riotshield)
I've also added a string to the code for the riotshield as is done with each other weapon:
Code:
BuildMeleeGiveMenu(client)
{
 decl String:baseball_bat[40], String:cricket_bat[40], String:crowbar[40],
 String:electric_guitar[40], String:fireaxe[40], String:riotshield[40];}
Something is wrong, though, because when I navigate to the GiveWeaponMenu, selection of the Melee catagory exits the menu. Since I obviously did something wrong, could some one please post a re-compiled version of the plugin so I can both have a working version and see what I did wrong (as I am new to writing plugins)? Also, I know that spawning of the riotshield with this plugin works, since it gives a player the Riot Shield when I use the sm_gw <client> riotshield. Thanks in advance to anyone that helps.

Edit: If it makes any difference, I'm running the latest version of this plugin, v0.8

Last edited by Ulrich; 06-12-2010 at 04:05.
Ulrich is offline
Geppettoni
Junior Member
Join Date: Jun 2010
Old 06-16-2010 , 14:13   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #362

Is it possible to make it, that the M60 does damage in other maps than passing maps? Counter-Strike weapons don't do damage neither
Geppettoni is offline
ball2hi
Senior Member
Join Date: Feb 2010
Old 06-16-2010 , 14:22   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #363

Quote:
Originally Posted by Geppettoni View Post
Is it possible to make it, that the M60 does damage in other maps than passing maps? Counter-Strike weapons don't do damage neither
They do deal damage, you just have to pre-cache them or spawn them once before (Like, in C5M1, spawn Rifle_m60, it no do damage. You decide to spawn a rifle_m60 at C5M4, it will do damage since u spawned it BEFORE.) same with the German weapons. I use the following plugin for pre-cache German Weapons: http://forums.alliedmods.net/showthr...=weapon+unlock

I pre-cache the rifle_m60 with this post's attachments:

http://forums.alliedmods.net/showpos...&postcount=406
ball2hi is offline
Geppettoni
Junior Member
Join Date: Jun 2010
Old 06-16-2010 , 17:02   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #364

Quote:
Originally Posted by ball2hi View Post
They do deal damage, you just have to pre-cache them or spawn them once before (Like, in C5M1, spawn Rifle_m60, it no do damage. You decide to spawn a rifle_m60 at C5M4, it will do damage since u spawned it BEFORE.) same with the German weapons. I use the following plugin for pre-cache German Weapons: http://forums.alliedmods.net/showthr...=weapon+unlock

I pre-cache the rifle_m60 with this post's attachments:

http://forums.alliedmods.net/showpos...&postcount=406
Thx

But I only want to precache them, I don't wanna let cs-weapons spawn randomized. Is this possible?


And how can I implement the rifle_m60 to the weapon-spawn menu?

edit:
Ok, with this link http://forums.alliedmods.net/showpos...&postcount=406 I made the M60 work. But now the CS-weapons don't work anymore

With this plugin:
http://forums.alliedmods.net/showthr...=weapon+unlock

the weapons spawn randomized, I don't want this. But I want to precache the cs-weapons. Would be great if this is possible.

Last edited by Geppettoni; 06-16-2010 at 17:48.
Geppettoni is offline
ball2hi
Senior Member
Join Date: Feb 2010
Old 06-16-2010 , 19:24   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #365

Quote:
Originally Posted by Geppettoni View Post
Thx

But I only want to precache them, I don't wanna let cs-weapons spawn randomized. Is this possible?


And how can I implement the rifle_m60 to the weapon-spawn menu?

edit:
Ok, with this link http://forums.alliedmods.net/showpos...&postcount=406 I made the M60 work. But now the CS-weapons don't work anymore

With this plugin:
http://forums.alliedmods.net/showthr...=weapon+unlock

the weapons spawn randomized, I don't want this. But I want to precache the cs-weapons. Would be great if this is possible.
*Wonders if you lack braincells* The Weapon Unlock plugin Pre-Caches ALL the German weapons, even if you set the following cvars:

Quote:
Cvars:
l4d2_wu_enable, Is Weapon Unlock plug-in enabled?, default 1
l4d2_wu_awp, Enable AWP sniper rifle?, default 1
l4d2_wu_mp5, Enable MP5 submachine gun?, default 1
l4d2_wu_scout, Enable Scout sniper rifle?, default 1
l4d2_wu_sg552, Enable SG552 assault rifle?, default 1

l4d2_wu_awpboost, Amount of damage added to the AWP sniper rifle., default 135 (base 115+135=250 total at 1.05 sec cycle time vs special infected)
l4d2_wu_scoutboost, Amount of damage added to the scout sniper rifle., default 110 (base 90+110=200 total at 0.9 sec cycle time vs special infected)
They were even listed on the front.... s...s... silly...

If you know, I'm trying to refrain myself from insulting you.
ball2hi is offline
Geppettoni
Junior Member
Join Date: Jun 2010
Old 06-17-2010 , 00:35   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #366

Yes, that plugins works fine for cs-weapons. But it also randomly spawns them (wrong or right?). Or do I only have to set the l4d2_wu_enable to 0 and precaching continue to work?

Last edited by Geppettoni; 06-17-2010 at 00:37.
Geppettoni is offline
ball2hi
Senior Member
Join Date: Feb 2010
Old 06-17-2010 , 01:06   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #367

Quote:
Originally Posted by Geppettoni View Post
Yes, that plugins works fine for cs-weapons. But it also randomly spawns them (wrong or right?). Or do I only have to set the l4d2_wu_enable to 0 and precaching continue to work?
No, set the following cvars:

l4d2_wu_awp, Enable AWP sniper rifle?, default 1
l4d2_wu_mp5, Enable MP5 submachine gun?, default 1
l4d2_wu_scout, Enable Scout sniper rifle?, default 1
l4d2_wu_sg552, Enable SG552 assault rifle?, default 1

to 0.
ball2hi is offline
Geppettoni
Junior Member
Join Date: Jun 2010
Old 06-17-2010 , 05:59   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #368

Quote:
Originally Posted by ball2hi View Post
No, set the following cvars:

l4d2_wu_awp, Enable AWP sniper rifle?, default 1
l4d2_wu_mp5, Enable MP5 submachine gun?, default 1
l4d2_wu_scout, Enable Scout sniper rifle?, default 1
l4d2_wu_sg552, Enable SG552 assault rifle?, default 1

to 0.
Ok, I'll give this a try. I can't imagine, that after that, bile bombs, molos etc. don't spawn randomly. But I'll see

THX for helping!
Geppettoni is offline
Geppettoni
Junior Member
Join Date: Jun 2010
Old 06-17-2010 , 16:57   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #369

What did I say? Now pipes etc. still spawn randomly
No cvar for disabling that?
Geppettoni is offline
Frodo
Member
Join Date: Jun 2010
Old 06-17-2010 , 17:54   Re: [L4D2] Weapon/Zombie Spawner v0.7a (Update 14.01.2010)
Reply With Quote #370

how to spawn m60 please...
Frodo 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 11:48.


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