AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Map Weapons Manager (https://forums.alliedmods.net/showthread.php?t=57899)

danielkza 07-13-2007 18:26

Map Weapons Manager
 
2 Attachment(s)
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 :down:

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


vvg125 07-14-2007 04:47

Re: Weapon Respawner
 
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?

danielkza 07-14-2007 22:49

Re: Weapon Respawner
 
Quote:

Originally Posted by vvg125 (Post 503240)
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.

BlackMilk 07-15-2007 09:13

Re: Weapon Respawner
 
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!

anssik 07-15-2007 12:18

Re: Weapon Respawner
 
Blackmilk, there are already lots of plugins for editing weapon spawns.

This plugin should be kept as-is. Simple and useful.

BlackMilk 07-15-2007 12:24

Re: Weapon Respawner
 
Creating, not editing.

eg.

amx_weaponspawn "ak47"

Simple...
And please link to posts/threads when you're referring to them.

danielkza 07-15-2007 12:32

Re: Weapon Respawner
 
Quote:

Originally Posted by BlackMilk (Post 503640)
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

BlackMilk 07-25-2007 10:18

Re: Map Weapons Manager
 
Hasn't anybody else tried this yet? It's great =]

sytremelaker 07-25-2007 11:06

Re: Map Weapons Manager
 
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.

sbeex 07-25-2007 16:32

Re: Map Weapons Manager
 
Nice ! +karma :p


All times are GMT -4. The time now is 22:37.

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