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

Map Weapons Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Emp` (115)
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 07-13-2007 , 18:26   Map Weapons Manager
Reply With Quote #1

Weapon Respawn

This plugins is as simple as it sounds:It respawns weapons after a certain time they were picked up.
I made this plugin for deathmatch in surf maps,because surf without weapons is no fun

Cvars:
weapon_respawn (0|1) - Turns respawning on and off.

weapon_respawn_time - Time in seconds to respawn a weapon without custom time after it was picked up.

Commands:

weapon_create <weapon_name> <count> - Creates a permanent spawn of given weapon name on current user's position. Needs ADMIN_RCON access.

weapon_delete - Deletes nearest PLUGIN-CREATED weapon spawn. Needs ADMIN_RCON access.

List of valid weapon names.Put them in "" to be sure.

MP5
TMP
P90
MAC10
AK47
SG552
M4A1
AUG
Scout
G3SG1
AWP
M3
XM1014
M249
Flashbang
HE Grenade
Kevlar
Kevlar + Helmet
Smoke Grenade


Files:

configs\weapons\mapname.cfg -
Stores weapons created with command above.This file is created/rewritten every create/delete command.

configs\weapons\RespawnTimes.cfg - Stores custom respawn times for different weapons. Comment a line or use "default" in place of the time to use the CVar.

Requires fakemeta module.

Code:
Changelog

0.2 - Forgot a pev_valid
0.3 - Added individual weapon times
0.4 - Added spawn creation system - suggestion by BlackMilk
0.41 - Fixed Error in touch code
Attached Files
File Type: sma Get Plugin or Get Source (map_weapons_manager.sma - 6706 views - 9.7 KB)

Last edited by danielkza; 07-26-2007 at 13:32.
danielkza is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 07-14-2007 , 04:47   Re: Weapon Respawner
Reply With Quote #2

Wow... this is actually pretty cool. Just to make sure I understood right, if the server is on a map such as fy_snow, and an AK-47 is picked up, it respawns after the set amount of time?
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 07-14-2007 , 22:49   Re: Weapon Respawner
Reply With Quote #3

Quote:
Originally Posted by vvg125 View Post
Wow... this is actually pretty cool. Just to make sure I understood right, if the server is on a map such as fy_snow, and an AK-47 is picked up, it respawns after the set amount of time?
You got the point.In next version you'll be able to choose individual times for each weapon,and replace weapons with other ones.
danielkza is offline
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 07-15-2007 , 09:13   Re: Weapon Respawner
Reply With Quote #4

Cool, is it possible you could add a command for admins to create weapon spawns?

Like, I'm playing a surf map and think something's missing, such as an AWP in some hard to reach spot, but I want multiple players to get it when they reach that spot since there's a lot of people on the server - I just create an AWP spawn with respawn for the weapon enabled? (+ammo, BTW?)

Downloading this in any case, nj!
__________________
Mod:
User:
BlackMilk is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 07-15-2007 , 12:18   Re: Weapon Respawner
Reply With Quote #5

Blackmilk, there are already lots of plugins for editing weapon spawns.

This plugin should be kept as-is. Simple and useful.
__________________
anssik is offline
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 07-15-2007 , 12:24   Re: Weapon Respawner
Reply With Quote #6

Creating, not editing.

eg.

amx_weaponspawn "ak47"

Simple...
And please link to posts/threads when you're referring to them.
__________________
Mod:
User:
BlackMilk is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 07-15-2007 , 12:32   Re: Weapon Respawner
Reply With Quote #7

Quote:
Originally Posted by BlackMilk View Post
Creating, not editing.

eg.

amx_weaponspawn "ak47"

Simple...
And please link to posts/threads when you're referring to them.
This would be possible, if i manage to do it it'll be added in next version.

Edit: Version 0.4 released - use weapon_create

Last edited by danielkza; 07-16-2007 at 01:24.
danielkza is offline
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 07-25-2007 , 10:18   Re: Map Weapons Manager
Reply With Quote #8

Hasn't anybody else tried this yet? It's great =]
__________________
Mod:
User:
BlackMilk is offline
sytremelaker
Senior Member
Join Date: Jun 2006
Location: Staples Center, Los Ange
Old 07-25-2007 , 11:06   Re: Map Weapons Manager
Reply With Quote #9

It's kind of like CSDM's Item Editor, only you got have to run CSDM . Anywaysm how about creating a list of all the weapon names, I'm pretty sure not everyone knows what each weapon is called.
__________________
@ PC Shop Gaming
LetShannonDunk.com - 2010 All-Star Dunk Contest hopeful!
sytremelaker is offline
Send a message via AIM to sytremelaker
sbeex
Member
Join Date: Sep 2005
Location: switzerland
Old 07-25-2007 , 16:32   Re: Map Weapons Manager
Reply With Quote #10

Nice ! +karma :p
__________________
sbeex is offline
Send a message via MSN to sbeex Send a message via Skype™ to sbeex
Reply


Thread Tools
Display Modes

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 17:15.


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