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

Random Weapon Spawns [Last Updated: 04/21/07]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Hawk552 (427)
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-21-2007 , 07:49   Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #1

Random Weapon Spawns


.:about:.
Random Weapon Spawns spawns random weapons along the map. It doesn't need any pre-made spawnpoints, the whole making process is 100% automated.

Ever wanted to have random weapons on D2? Now you can!

.:Cvars:.
RS_enabled (D: 1) - Enables/Disables the plugin
RS_max_spawns (D: 50) - Defines how many weapons that will be spawned on the map


Note: There is a limit on 150 weapons max. If you want to have more then 150 weapons, change
Code:
MAX_SPAWNPOINTS 150
to
Code:
MAX_SPAWNPOINTS XXX

.:Screenshots:.
Going to upload ASAP

.:To-Do:.
  • Make weapons respawns after an amount of time

.:F.A.Q:.
To be written...

.:Version List:.
Quote:
  • 1.0 - Original Version
.:Credits:.
BAILOPAN (EKS) for the main function
XxAvalanchexX for the check_ammo() stock
VEN for the cs_get_user_hassecond() stock

Enjoy!
Attached Files
File Type: sma Get Plugin or Get Source (weapon_spawns.sma - 2458 views - 13.8 KB)

Last edited by Deviance; 04-21-2007 at 16:23.
Deviance is offline
sytremelaker
Senior Member
Join Date: Jun 2006
Location: Staples Center, Los Ange
Old 04-21-2007 , 08:09   Re: Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #2

How bout make weapons come back after (x) amount of seconds. Like once a weapon is picked up, it will respawn again after a certain amount of time.
__________________
@ PC Shop Gaming
LetShannonDunk.com - 2010 All-Star Dunk Contest hopeful!
sytremelaker is offline
Send a message via AIM to sytremelaker
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-21-2007 , 08:11   Re: Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #3

Quote:
Originally Posted by sytremelaker View Post
How bout make weapons come back after (x) amount of seconds. Like once a weapon is picked up, it will respawn again after a certain amount of time.
Like this idea, i'll put it on the to-do list.
Deviance is offline
sytremelaker
Senior Member
Join Date: Jun 2006
Location: Staples Center, Los Ange
Old 04-21-2007 , 08:37   Re: Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #4

Also, if you haven't put it in yet, cvars that controls the distance between weapons. So the cvar variables would determine the distance between weapons.

For instance, if both cvars it was at 0, it would be completely random. For the minimum cvar, it would determine the minimum distance between weapons while the maximum cvar will determine the maximum distance between weapons.

I just don't want to see a colt and an awp within seconds of each other.
__________________
@ PC Shop Gaming
LetShannonDunk.com - 2010 All-Star Dunk Contest hopeful!
sytremelaker is offline
Send a message via AIM to sytremelaker
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-21-2007 , 08:49   Re: Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #5

Quote:
Originally Posted by sytremelaker View Post
Also, if you haven't put it in yet, cvars that controls the distance between weapons. So the cvar variables would determine the distance between weapons.

For instance, if both cvars it was at 0, it would be completely random. For the minimum cvar, it would determine the minimum distance between weapons while the maximum cvar will determine the maximum distance between weapons.

I just don't want to see a colt and an awp within seconds of each other.
This is in a kind of beta-stage, i forgot to mention that...
I'm going to fix all the code parts later, atm i'm busy whit other things.
Deviance is offline
sytremelaker
Senior Member
Join Date: Jun 2006
Location: Staples Center, Los Ange
Old 04-21-2007 , 08:51   Re: Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #6

About the random weapon spawns, is it possible to make it so each respawn is a new weapon?

Also, I'll start testing this plugin right away.

Edit: I tested it out and the majority of it seems to be working fine. However, it doesn't seem to work with GHW_Floating_Weapons plugin.
__________________
@ PC Shop Gaming
LetShannonDunk.com - 2010 All-Star Dunk Contest hopeful!

Last edited by sytremelaker; 04-21-2007 at 08:59.
sytremelaker is offline
Send a message via AIM to sytremelaker
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-21-2007 , 09:49   Re: Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #7

Quote:
Originally Posted by sytremelaker View Post
About the random weapon spawns, is it possible to make it so each respawn is a new weapon?
I'd dunno how you mean, it delete's and make's each round.

Quote:
Originally Posted by sytremelaker View Post
Edit: I tested it out and the majority of it seems to be working fine. However, it doesn't seem to work with GHW_Floating_Weapons plugin.
You would need to change that plugin. AFAIK it looks after the weaponbox entity, but i use info_target's.
Deviance is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-21-2007 , 13:47   Re: Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #8

Code:
// This function check how close a rune spawnpoint is to other rune spawnpoints. And removes any that witin MIN_DISTANCE
Thanks for crediting EKS, but approved anyway.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-21-2007 , 14:00   Re: Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #9

Quote:
Originally Posted by Hawk552 View Post
Code:
// This function check how close a rune spawnpoint is to other rune spawnpoints. And removes any that witin MIN_DISTANCE
Thanks for crediting EKS, but approved anyway.
Right, added.

Last edited by Deviance; 04-21-2007 at 16:23.
Deviance is offline
Old 01-12-2008, 16:54
YavkatA
This message has been deleted by YavkatA.
Old 01-13-2008, 13:09
YavkatA
This message has been deleted by YavkatA.
YavkatA
Junior Member
Join Date: Dec 2007
Old 01-14-2008 , 06:46   Re: Random Weapon Spawns [Last Updated: 04/21/07]
Reply With Quote #10

Can you make this work on a Half-Life sever?
I guess it is written for CS.
YavkatA 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 01:33.


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