View Full Version : Weapon Spawn?
jason
08-10-2006, 03:26 AM
Is their a way to have certain weapons outside the spawn. So when you spawn you can pick up a bazooka or even a british rifle and so on....
_________
Full of ideas tonight :)
Wilson [29th ID]
08-10-2006, 04:50 AM
There are three ways to do this. You are basically creating the entities when the server loads the map. An example of this would be found in dod_zalec with the bazooka.
Option 1. Use BSPEdit and add the entities, then re-upload the edited bsp (clients will not have to download anything it will still work)
Option 2. Use Botman's Stripper2 and add the entities through there. A little more complicated to be honest and not worth the trouble.
Option 3. Use a plugin to generate the entities in each map. This would allow you to enable it or disable it, but definitely the most complicated way of doing it.
Assuming you are using the easiest option, option #1, download BSPEdit (http://filebase.bots-united.com/index.php?action=download&id=177)
Open dod_zalec in BSPEdit. You can download the map from your server itself since your file is inside the GCF (won't show up in the maps directory). Copy and paste the BSP text into wordpad and work inside there.
Search for "bazooka" and see how it is added. Copy this section (surrounded by { and }) and open up the map you want to add weapons to. Paste it inside the new map you want to add weapons to and change the weapon type. You'll also have to change the origin of the weapon entity based on the new map (where you want it to be). Copy and paste this for each weapon you want.
Upload the map to the server. Like I said your players won't have to redownload the map or anything it will work just fine.
jason
08-10-2006, 03:11 PM
Thanks!!! I will try and see!!
jason
08-11-2006, 11:18 PM
Ya was easy for the most.....thanks again!
Ok, if you do what Willson says every person who now joins the server will have to download the new map. Whereas if you use the Stripper2 from amxmodx you could just add the entities in a text file and not need to use a new map for download. You can also use Ent Ripper to add the entities.
Cheers!
diamond-optic
08-12-2006, 10:48 PM
Ok, if you do what Willson says every person who now joins the server will have to download the new map.
no they wont, if you keep the mapname the same, they wont need to download anything..
jason
08-13-2006, 06:52 AM
Ya I just did some editing and added the guns...its just a headache figuring out were you want to add the weapons in the right postion. The only problem I ran into is adding enfield sniper and fg42 sniper bec for some reason they just wont show up. No biggie tho, I did add some kool Brit weapons. No new download is required for adding the guns!!!! I luv it!
My next step is to hit that bot plugin up so the bots reboot after x amount of kills so the server won't ever crash.
check it:
63.215.74.212:27015 $ad||Avalanche + BRIT Weapons|+:*:+FuNpLuGiNs+:*:+
http://www.game-monitor.com/GameServer/63.215.74.212:27015/adAvalanche__BRIT_WeaponsFuNpLuGiNs.html
__________________________
Cya on the BattleField!
diamond-optic
08-13-2006, 02:22 PM
ya you cant add scoped enfields or scoped fg42s...
but why dont you use this plugin to reset the bots scores:
http://www.dodplugins.net/forums/showthread.php?t=10
and just change this:
if(is_user_bot(killer) || is_user_bot(victim) || is_user_hltv(killer) || is_user_hltv(victim))
return PLUGIN_CONTINUE
to:
if(is_user_hltv(killer) || is_user_hltv(victim))
return PLUGIN_CONTINUE
jason
08-13-2006, 04:52 PM
I did what you said and edited the plugin and compiled. Its ready to go....I was just curious if the plugin will now reset bots AND clients if they hit that 200 kill/death? Bec Id rather keep our 24/7 AvA server running 12 hours before a map change and not have to worry about clients or bots hitting that 200 kill/death.
diamond-optic
08-13-2006, 10:42 PM
yes it will
normally it just does clients, but removing the bot stuff from that line will make it check bots scores too
jason
08-19-2006, 03:45 AM
Ya worked great ..... Thanks!
Box Cutter
10-01-2006, 11:28 PM
I went with the editing .bsp option and I got british weapons to spawn but how do I figure out the correct coordinates for Avalanche to get them to spawn where I want them? So far I just used the coordiantes for flags and have them spawning there because I can't seem to find out how to get coordinates for where I want them.
diamond-optic
10-01-2006, 11:40 PM
ingame stand where you want them to be.. go in console and type status it will give the xyz there.. But note that it will add x y z to them.. so youll have to make it look like "### ### ###" instead of "### x ### y ### z"
Box Cutter
10-01-2006, 11:45 PM
Brilliant! Thank you Wilson and Diamond-Optic. Your vast knowledge is a great asset to the DoD community.
diamond-optic
10-02-2006, 12:04 AM
Your vast knowledge is a great asset to the DoD community.
vast eh?? lol
Box Cutter
10-03-2006, 09:11 AM
when I type "status" in my console standing at various parts of the dod_avalanche map it only shows 0x 0y 0z? Am I doing something wrong?
Wilson [29th ID]
10-03-2006, 03:25 PM
If you install my dod_paratrooper plugin, you can type in your console: getorigin
and it will tell you your origin. you don't have to use the paratrooper part just don't put any of the ini files in - just the amxx file. can even have the plugin disabled (dod_paratrooper 0) and this part will still work.
diamond-optic
10-03-2006, 08:56 PM
but status should still work.. thats strange ive never had it give me all zeros
jason
10-09-2006, 03:26 PM
I did it the hard way and just kept messing with coordinates but definetly using flags and spawn points is a huge help to guess LOL but it works ... our server has done soo well by adding Brit guns in spawn. We are a 24/7 ava server that have brit guns at spawn with fun plugins. Lot of fun but I suggest just finding spawn points and then for example if I recall the origin would be like fowardorbackward.leftorright.upordown like "origin" "256 2000 176" and just keep moving points around and adding alot of guns and see what works. This is the hard way but I guess I like the hard way LOL.
jondoe
10-19-2006, 04:03 AM
I have edited many bsp files and while i do use BPSedit, i use BSP viewer to get the xyz origins for the weapons to add to the map.
i can edit a BSP and add 20 weapons and 2 or 3 sprites in 20 or 30 minutes using this method. Its very fast because you can copy and past the xyz orgiins from BSP viwer instead of having to type them all out bu hand.
just dont add to many things because the server has to draw them all and if you add to many it can strain the CPU.
=|[76AD]|= TatsuSaisei
10-19-2006, 06:45 AM
just dont add to many things because the server has to draw them all and if you add to many it can strain the CPU.
... there is a hard limit on the number of entities in a map (512), and once exceed the map will crash the game server and become unplayable...
diamond-optic
10-19-2006, 09:37 PM
|= TatsuSaisei;1927']... there is a hard limit on the number of entities in a map (512), and once exceed the map will crash the game server and become unplayable...
ive actually got entity counts over 512 before.. but then again im not sure how accurate the count really was
|OnEHiTwOnDeR|SoCal
03-13-2007, 03:13 AM
Bec Id rather keep our 24/7 AvA server running 12 hours before a map change
havin a map change every 12 hrs will lagg a server up like a mothafu$%a. Best mp_timelimit is about 60 min but ive been good with 150 - 165 at most without lag spikes
diamond-optic
03-13-2007, 03:40 PM
ya ive found on mine.. around 240-300mins (4-5hrs) mine starts getting pretty laggy.. tho its very rare for ppl to extend maps that long on my server anymore..
|OnEHiTwOnDeR|SoCal
03-13-2007, 08:12 PM
i no longer allow extend map lol ive come to learn admins are very thoughtless and always forget to change this and that and always screw things up
exel420
05-31-2007, 04:13 AM
I did exactly what you said i added all the guns using bspeditor but my problem is only the 30cal and the bazooka are loading the rest doesnt load. I made a folder in my dod dedicated server folder named Maps. Did i do something wrong is it my spelling? do they need to be capitalized? or am i not saving the map to the right place? please help
{SR} *Raggy*
05-31-2007, 06:18 AM
Put your map onto a website and I'll have a look at it... Well I'll compare it with a different one :P
=|[76AD]|= TatsuSaisei
05-31-2007, 11:18 AM
I did exactly what you said i added all the guns using bspeditor but my problem is only the 30cal and the bazooka are loading the rest doesnt load. I made a folder in my dod dedicated server folder named Maps. Did i do something wrong is it my spelling? do they need to be capitalized? or am i not saving the map to the right place? please help
there should already have been a folder named maps in your dedicated server folder... and all the folders are in lower case...
exel420
05-31-2007, 09:05 PM
|= TatsuSaisei;6027']there should already have been a folder named maps in your dedicated server folder... and all the folders are in lower case...
i thought that could be a problem but i didnt think about it last night and i was getting frustrated and didnt even think about it then. Im going to try that when i get home from work. Thanks Everyone
diamond-optic
05-31-2007, 10:12 PM
well depending on the system the server is on.. case-sensitivity might not matter
but i'd guess it'd be smart to have file/folder names in standard form either way
=|[76AD]|= TatsuSaisei
05-31-2007, 10:41 PM
well depending on the system the server is on.. case-sensitivity might not matter
half true... if the system is Windows (not case-sensitive) then Maps is valid, but there would already be a "maps" folder and would get an "error" upon trying to create a Maps folder (duplicate folder name)
but on Linux, maps and Maps are seen as two seperate folders, therefore Linux will allow for the creation of Maps folder, but it would never get used, cause the game is looking for lowercase
exel420
05-31-2007, 10:43 PM
The thing is i had to make the map folder because there wasnt one there before. i used the dod_paratrooper plugin to get the xyz because every time i used status in the console it came up with x0 y0 z0. Everything is the way it should be and only the 30cal shows up. Also im trying to do this on avalanche
diamond-optic
05-31-2007, 11:29 PM
are you running this off your pc? like as in hlds thru steam?
cause that might be why there wasnt a maps folder already.. i think when running the hlds downloaded thru steam it might just read out of the gcf file..
either way.... yada yada...
or something
and sometimes i get 0 0 0 from the status command.. idk why.. but in those cases i just go to the amxx menu, and goto the teleport section.. as that will show origin too :D
exel420
06-01-2007, 12:23 AM
are you running this off your pc? like as in hlds thru steam?
cause that might be why there wasnt a maps folder already.. i think when running the hlds downloaded thru steam it might just read out of the gcf file..
either way.... yada yada...
or something
and sometimes i get 0 0 0 from the status command.. idk why.. but in those cases i just go to the amxx menu, and goto the teleport section.. as that will show origin too :D
yea im running it off steam hlds but the think is a few weaspons spawn but not all. I placed the file in my Maps folder and i had a wrong map in there at first it was a source avalanche map and said it couldnt load map not the right type. I'm so very confused right now because the weapons that spawn are coded the same way as the other ones but only 2 will show.
exel420
06-01-2007, 12:29 AM
Also because im using steam is there a different way to run a steam server? Because if its the way im running the server right now through steam ill get what ever i need to get the weapon mod working
diamond-optic
06-01-2007, 12:34 AM
well it should still be working whether you run it thru steam hlds or standalone hlds...
exel420
06-01-2007, 12:51 AM
diamond can i pm you the guns code exactly the way its in the map and do you think you could look at it and see if anything is wrong?
diamond-optic
06-01-2007, 01:04 AM
sure whatever... i'll try it myself to and see what happens..
diamond-optic
06-02-2007, 12:54 AM
heheh well exel simple mistakes ive seen just by looking at it real quick
your missing some " thingys
like for example you have:
{
"origin"640 -1405 -571"
"angles" "0 360 0"
"classname" "weapon_bren"
}the origin keys are messed up...
"origin"640 -1405 -571"
should be:
"origin" "640 -1405 -571"
etc... the origin needs to be in " " and then the actual coords need to be in " " as well... see what im saying.. and that would definitly not make them show up.. tho some are working cause some of them are fine...
exel420
06-02-2007, 06:36 PM
ha you know i was thinking about that on my way back from prom last night. Thanks for the help guys. Those are my usual mistakes and without a compiler and debugger i would never have cought that really. Thanks a bunch diamond your the best!!!!
|OnEHiTwOnDeR|SoCal
06-04-2007, 02:58 AM
u think about dod when on prom night?? lol whoa
{SR} *Raggy*
06-04-2007, 07:05 AM
Didn't think DoD was THAT popular :P
=|[76AD]|= TatsuSaisei
06-04-2007, 07:48 AM
u think about dod when on prom night?? lol whoa
I woke up once yelling "Fire in the hole !!"
{SR} *Raggy*
06-04-2007, 04:31 PM
|= TatsuSaisei;6134']I woke up once yelling "Fire in the hole !!"
LOL I would've loved to hear that myself :P
podkanton
11-14-2008, 12:48 AM
I wish this could be used in dod, http://forums.alliedmods.net/showthread.php?p=628910
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.