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
triggerman
Senior Member
Join Date: Jun 2009
Old 12-03-2009 , 03:16   Re: [L4D2] Weapon Spawner
Reply With Quote #111

Quote:
Originally Posted by Gixxer View Post
Actually, his code does work... He just didn't include a starting/ending bracket.
Code:
;pre-caches guns on all maps
{
add:
{
"origin" "0 0 -10000"
"spawnflags" "1"
"solid" "6"
"skin" "0"
"disableshadows" "0"
"count" "1"
"angles" "0 0 0"
"classname" "weapon_sniper_scout"
}
{
"origin" "0 0 -10000"
"spawnflags" "1"
"solid" "6"
"skin" "0"
"disableshadows" "0"
"count" "1"
"angles" "0 0 0"
"classname" "weapon_sniper_awp"
}
{
"origin" "0 0 -10000"
"spawnflags" "1"
"solid" "6"
"skin" "0"
"disableshadows" "0"
"count" "1"
"angles" "0 0 0"
"classname" "weapon_smg_mp5"
}
{
"origin" "0 0 -10000"
"spawnflags" "1"
"solid" "6"
"skin" "0"
"disableshadows" "0"
"count" "1"
"angles" "0 0 0"
"classname" "weapon_rifle_sg552"
}
}

works without end brackets for me just fine. that is the exact code i use that was posted a few pages back.

Last edited by triggerman; 12-03-2009 at 03:21.
triggerman is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 12-03-2009 , 10:14   Re: [L4D2] Weapon Spawner
Reply With Quote #112

Quote:
Originally Posted by sonicsdm View Post
No problem, what you need?
details which help me reproduce this error ; ]
__________________
Zuko is offline
Send a message via ICQ to Zuko
dacomb
Senior Member
Join Date: Oct 2009
Old 12-03-2009 , 14:10   Re: [L4D2] Weapon Spawner
Reply With Quote #113

Quote:
Originally Posted by station2009 View Post
What is the weapon code for the laser sights? Thanks!

Oh and awesome plugin dude!!
Try this: I vaguely remember using it once and it worked but since then I just use the laser sights plugin (http://forums.alliedmods.net/showthread.php?p=877908) and players can turn it on or off as they like so I don't really need to fool with it... Hope it works for you!

weapon_upgradepack_laser

weapon_upgradepack_explosive
weapon_upgradepack_incendiary

Last edited by dacomb; 12-03-2009 at 14:35.
dacomb is offline
dacomb
Senior Member
Join Date: Oct 2009
Old 12-03-2009 , 14:31   Re: [L4D2] Weapon Spawner
Reply With Quote #114

Also, this used to be on the first post but it was edited out...

Here's the full list of weapons which could be useful for key binding...

Personally, I dedicated my number pad keys to give me weapons or items which speeds up giving stuff... If I give myself more than one item it just drops to the ground and the other players can pick it up or not...

Also, if you "give" a grenade launcher it has full ammo. If you "spawn" a grenade launcher it doesn't.

Code:

Health:

weapon_adrenaline
weapon_defibrillator
weapon_first_aid_kit
weapon_pain_pills

Tossables:

weapon_molotov
weapon_pipe_bomb
weapon_vomitjar

Fire and Tanks:

weapon_gascan
weapon_fireworkcrate
weapon_propanetank
weapon_oxygentank

Other:

weapon_chainsaw
weapon_grenade_launcher

weapon_gnome

Pistols:

weapon_pistol
weapon_pistol_magnum

Shotguns:

weapon_pumpshotgun
weapon_shotgun_chrome
weapon_autoshotgun
weapon_shotgun_spas

Rifles:

weapon_smg
weapon_smg_silenced
weapon_rifle
weapon_rifle_desert
weapon_rifle_ak47

Sniper:

weapon_hunting_rifle
weapon_sniper_military

CS:

weapon_rifle_sg552
weapon_smg_mp5
weapon_sniper_awp
weapon_sniper_scout

Upgrades:

**weapon_upgradepack_laser** -- Maybe??
weapon_upgradepack_explosive
weapon_upgradepack_incendiary

Melee Weapons:

baseball_bat
cricket_bat
crowbar
electric_guitar
fireaxe
frying_pan
katana
machete
tonfa
Here's what my key binding looks like as an example:
EDIT: changed my username with @me

Code:
//NUMBERPAD
// USES THE SYMBOL OR WORD ON KEY - NOT THE NUMBER

bind "KP_INS" "sm_gw @me weapon_first_aid_kit"         // Give First Aid
bind "KP_END" "sm_gw @me weapon_adrenaline"            // Give Adrenaline
bind "KP_DOWNARROW" "sm_gw @me weapon_pain_pills"        // Give Pills
bind "KP_PGDN" "sm_gw @me weapon_defibrillator"        // Give Defib
bind "KP_LEFTARROW" "sm_gw @me katana"                // Give Katana
bind "KP_5" "sm_gw @me machete"                    // Give Machete
bind "KP_RIGHTARROW" "sm_gw @me weapon_pipe_bomb"        // Give Pipe Bomb
bind "KP_HOME" "sm_gw @me weapon_vomitjar"            // Give Jar of Puke
bind "KP_UPARROW" "sm_gw @me weapon_molotov"            // Give Molotov
bind "KP_PGUP" "sm_gw @me weapon_sniper_military"        // Give Military Sniper
bind "KP_MINUS" "sm_gw @me weapon_pistol_magnum"        // Give Desert Eagle
bind "KP_PLUS" "sm_gw @me weapon_autoshotgun"        // Give Auto Shotgun

// F KEYS
bind "F6" "sm_sw weapon_gascan"        // Spawn Gas Can
bind "F7" "sm_sw weapon_ammo_spawn"    // Spawn Ammo Stack
The only trouble I ever have is that when spawning gas cans they tend to not actually spawn on the ground or surface but floating half stuck out of the ground and many times they'll fall through for instance the stage on Dark Carnival... you can still pick them up and move them around so it hasn't been a big deal but it would be nice if when I pointed at a spot the can didn't spawn half buried underground.

Last edited by dacomb; 12-03-2009 at 18:47.
dacomb is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 12-03-2009 , 16:35   Re: [L4D2] Weapon Spawner
Reply With Quote #115

dacomb, use @me in binds.

bind "KP_INS" "sm_gw @me weapon_first_aid_kit"
__________________
Zuko is offline
Send a message via ICQ to Zuko
dacomb
Senior Member
Join Date: Oct 2009
Old 12-03-2009 , 18:41   Re: [L4D2] Weapon Spawner
Reply With Quote #116

Zuko, you know, I noticed that in the directions but I wasn't sure if that was for example sake or if it was usable replacement for the username...
Honestly, I'm just used to typing it the way I did from the L4D1 spawning plugin...
Does it matter one way or the other or is it just easier for times like this when I post a list of binds?

Also: great job on the plugin. Aside from the minor glitch I mentioned it works very well. thanks for your hard work!
dacomb is offline
troop5
Member
Join Date: Dec 2009
Old 12-03-2009 , 19:00   Re: [L4D2] Weapon Spawner
Reply With Quote #117

Quote:
Originally Posted by triggerman View Post
works without end brackets for me just fine. that is the exact code i use that was posted a few pages back.
Installed stripper, added that to my global_filters.cfg and didn't work. I also tried to add melee weapons to see if i can spawn all melee weapons, didn't work.
troop5 is offline
shizzleL4D
Member
Join Date: Aug 2009
Old 12-03-2009 , 19:03   Re: [L4D2] Weapon Spawner
Reply With Quote #118

Quote:
Originally Posted by dacomb View Post
Also, if you "give" a grenade launcher it has full ammo. If you "spawn" a grenade launcher it doesn't.
Thanks for the tip
__________________

shizzleL4D is offline
sonicsdm
Junior Member
Join Date: Jul 2008
Old 12-03-2009 , 19:56   Re: [L4D2] Weapon Spawner
Reply With Quote #119

Quote:
Originally Posted by Zuko View Post
details which help me reproduce this error ; ]
well some details:
version of sourcemod: 1.3.0-dev

some things i found, when i put for example map c1m4_atrium or a local server

the map load but any commando from sm dont work, if u put

sm_slay sonic
sm_slap sonic
sm_ban sonic
sm_beacon sonic it will say unable to hit the target (target not found) so its uselless sourcemod in a local server or if u put map mapname

zuko se the error log in the attached files
Attached Files
File Type: log errors_20091130.log (8.6 KB, 233 views)

Last edited by sonicsdm; 12-03-2009 at 19:59.
sonicsdm is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 12-04-2009 , 08:39   Re: [L4D2] Weapon Spawner
Reply With Quote #120

Missing translations... quick edit. (without testing)

New version will be released soon.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_weaponspawner_v04a.sp - 566 views - 22.7 KB)
__________________
Zuko is offline
Send a message via ICQ to Zuko
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 09:24.


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