AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Random Weapon Spawns [Last Updated: 04/21/07] (https://forums.alliedmods.net/showthread.php?t=54266)

Deviance 04-21-2007 07:49

Random Weapon Spawns [Last Updated: 04/21/07]
 
1 Attachment(s)
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!

sytremelaker 04-21-2007 08:09

Re: Random Weapon Spawns [Last Updated: 04/21/07]
 
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.

Deviance 04-21-2007 08:11

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

Originally Posted by sytremelaker (Post 467889)
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.

sytremelaker 04-21-2007 08:37

Re: Random Weapon Spawns [Last Updated: 04/21/07]
 
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.

Deviance 04-21-2007 08:49

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

Originally Posted by sytremelaker (Post 467899)
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.

sytremelaker 04-21-2007 08:51

Re: Random Weapon Spawns [Last Updated: 04/21/07]
 
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.

Deviance 04-21-2007 09:49

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

Originally Posted by sytremelaker (Post 467903)
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 (Post 467903)
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.

Hawk552 04-21-2007 13:47

Re: Random Weapon Spawns [Last Updated: 04/21/07]
 
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.

Deviance 04-21-2007 14:00

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

Originally Posted by Hawk552 (Post 467988)
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.

YavkatA 01-14-2008 06:46

Re: Random Weapon Spawns [Last Updated: 04/21/07]
 
Can you make this work on a Half-Life sever?
I guess it is written for CS.


All times are GMT -4. The time now is 04:15.

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