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

[L4D REQ] Zombie Spawner + Give Weapons/Items


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RikkAndrsn
Junior Member
Join Date: Oct 2008
Old 12-04-2008 , 20:37   [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #1

You can already do what I'm asking for through the CVARS, but you need SV_Cheats set to 1. The problem with that is that anybody who knows how to use the console can do whatever they want when that's on. This plugin would allow admins to give things like health kits and weapons along with being able to spawn zombies on command, perhaps by toggling SV_Cheats from 0 to 1 and back very quickly.

The CVARS can all be found here, they're mostly pretty simple: http://left4dead411.com/l4d_cvar_list.pdf

z_spawn tank/boomer/hunter/witch/smoker/mob controls zombie spawns
give rifle/hunting_rifle/pills and so on gives items
RikkAndrsn is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 12-04-2008 , 21:29   Re: [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #2

I hate the idea of rapid-firing sv_cheats, but I can try to whip something up Rikk.
__________________
msleeper is offline
RikkAndrsn
Junior Member
Join Date: Oct 2008
Old 12-04-2008 , 21:45   Re: [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #3

Quote:
Originally Posted by msleeper View Post
I hate the idea of rapid-firing sv_cheats, but I can try to whip something up Rikk.
There has to be some way around it.
RikkAndrsn is offline
Xp3r7
SourceMod Donor
Join Date: Jul 2006
Old 12-04-2008 , 22:52   Re: [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=81101

Use that plugin and just add the CVARs you want to the admin menu. I use this method and it works fine.
__________________
Xp3r7 is offline
Send a message via MSN to Xp3r7
RikkAndrsn
Junior Member
Join Date: Oct 2008
Old 12-05-2008 , 00:09   Re: [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #5

It would also be nice if the admin commands could be expanded to include witches and regular zombies. I don't know if that's possible, though.
RikkAndrsn is offline
meeek
Junior Member
Join Date: Dec 2008
Old 12-06-2008 , 02:46   Re: [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #6

This is the added menu I created with that plugin and works perfectly.

Code:
// Custom admin menu commands.
// For more information:
//
// http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29
//
// Note: This file must be in Valve KeyValues format (no multiline comments)
//

"Commands"
{
    "Fun Commands"
    {
        "Spawn Infected"
        {
            "cmd"                "z_spawn #1"
            "admin"                "sm_kick"
            "execute"            "player"
            "1"
            {
                "type"            "list"
                "title"            "Spawn What?"
                "1"            "tank"
                "1."            "Tank"
                "2"            "hunter"
                "2."            "Hunter"
                "3"            "boomer"
                "3."            "Boomer"
                "4"            "smoker"
                "4."            "Smoker"
                "5"            "witch"
                "5."            "Witch"
                "6"            "Mob"
                "6."            "mob"
            }
        }
        "Give Weapon"
        {
            "cmd"                "give #1"
            "admin"                "sm_kick"
            "execute"            "player"
            "1"
            {
                "type"            "list"
                "title"            "Give what weapon?"
                "1"            "pistol"
                "1."            "Pistol"
                "2"            "smg"
                "2."            "SMG/UZI"
                "3"            "pumpshotgun"
                "3."            "Shotgun"
                "4"            "rifle"
                "4."            "Rifle"
                "5"            "hunting_rifle"
                "5."            "Hunting Rifle"
                "6"            "autoshotgun"
                "6."            "Auto Shotgun"
            }
        }
        "Give Item"
        {
            "cmd"                "give #1"
            "admin"                "sm_kick"
            "execute"            "player"
            "1"
            {
                "type"            "list"
                "title"            "Give what item?"
                "1"            "pain_pills"
                "1."            "Pain Pills"
                "2"            "first_aid_kit"
                "2."            "First Aid kid"
                "3"            "pipe_bomb"
                "3."            "Pipe Bomb"
                "4"            "molotov"
                "4."            "Molotov"
                "5"            "pipe_bomb"
                "5."            "Pipe Bomb"
                "6"            "gascan"
                "6."            "Gas Can"
                "7"            "propanetank"
                "7."            "Propane Tank"
                "8"            "oxygentank"
                "8."            "Oxygen Tank"
            }

        }
        "Give Instantly"
        {
            "cmd"                "give #1"
            "admin"                "sm_kick"
            "execute"            "player"
            "1"
            {
                "type"            "list"
                "title"            "Give what instantly?"
                "1"            "health"
                "1."            "Health (full hp)"
                "2"            "ammo"
                "2."            "Ammo"
            }
        }
    }
}
meeek is offline
MaximReapage
Member
Join Date: Jun 2008
Old 12-08-2008 , 07:54   Re: [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #7

Could we possibly find a way to do all this without turning on sv_cheats?
MaximReapage is offline
Send a message via AIM to MaximReapage
meeek
Junior Member
Join Date: Dec 2008
Old 12-08-2008 , 19:51   Re: [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #8

Quote:
Originally Posted by MaximReapage View Post
Could we possibly find a way to do all this without turning on sv_cheats?
did you even read any of the posts in this thread?

http://forums.alliedmods.net/showthread.php?t=81101 << grab that, and add the menu i scripted
meeek is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 12-09-2008 , 00:25   Re: [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #9

Quote:
Originally Posted by meeek View Post
This is the added menu I created with that plugin and works perfectly.

[code]
"Spawn Infected"
{
"cmd" "z_spawn #1"
"admin" "sm_kick"
"execute" "player"
I would recommend changing this to z_spawn #1 auto, as using the "auto" flag makes the Director spawn the Infected where he thinks best, as opposed to wherever your cursor is. This is more useful for when, say, you and some friends want to fight a Tank but still want to be somewhat surprised by it's location.
__________________
msleeper is offline
Fexii
Junior Member
Join Date: Dec 2008
Old 12-13-2008 , 02:06   Re: [L4D REQ] Zombie Spawner + Give Weapons/Items
Reply With Quote #10

I created this plugin already anyway, so I uploaded it onto here. I don't have any give commands in there, just the spawning. I titled it "Left 4 Dead Infected Spawner", so if it gets approved you'll find it floating around.

Rather than rapid-firing sv_cheats, I unset the FC_CHEAT flag on the z_spawn command, then reset back to its previous value after spawning the infected.

Last edited by Fexii; 12-13-2008 at 16:48.
Fexii 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 08:36.


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