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

Random Spawning


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
infek
Senior Member
Join Date: May 2009
Location: Behind you
Old 05-29-2010 , 16:50   Random Spawning
Reply With Quote #1

Alright ive been trying to get a "AMMO BOX" to give you a random amount of ammo once a round and that ammo model spawns anywhere around the map

i already have the model for it "models/ammobox.mdl"

Similar to CSDM with like "AMMO Packs" but i want it to be a random amount of ammo w/ random spawn in a map... and also Only one person can get the ammo box (1 box per round) lets just say some one finds the ammo box first and they get it and now everyone has to find the ammo box next round "First come first serve"
__________________
"Domo Arigato, Mr. Roboto!"
PM me if you want to know a secret
infek is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-31-2010 , 03:32   Re: Random Spawning
Reply With Quote #2

There was a thread in the Scripting Help section about something like this.
I linked to this thread: http://forums.alliedmods.net/showthread.php?t=75882

You can use that to make random spawns.

Then you can create 1 ammo box each round start in a random spawn point.

If you don't know how to:
  • create an entity
  • hook when an entity is touched
  • hook round start
  • choose a random spawn from the list

Then you can search because all of that has been demonstrated plenty of times.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 23:38.


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