PDA

View Full Version : Problems adding model in bsp file


Tank
08-12-2008, 07:33 PM
I tried to add 'models/mapmodels/hk_radio.mdl' into dod_avalanche.bsp. But every model I try to add does not seem to work. I tried moving the model from models/mapmodels to models/. Although it downloads the file (so Im sure it's being loaded in the bsp file) to the client it does not show.

Yet if I place a beep.spr on the same location it does work. I placed a handgrenade on that spot, also works. So I thought, perhaps it's the radio being a ****** so I tried changing the model into something else, yet no success.

This is what I added in dod_avalanche.bsp (don't know if the angle is right though):
{
"origin" "839 318 226"
"model" "models/mapmodels/hk_radio.mdl"
"rendercolor" "0 0 0"
"angles" "0 90 0"
"classname" "env_model"
}
This is not working. Whether I use the hk_radio.mdl or anything else...nothing is showing up.

Yet the following is working (the beep is part of the airstrike radio):
{
"origin" "839 310 231"
"renderamt" "100"
"rendermode" "5"
"scale" ".2"
"model" "sprites/mapsprites/beep.spr"
"framerate" "3"
"angles" "0 0 0"
"rendercolor" "0 0 0"
"classname" "env_sprite"
}

So now my question, am I doing something wrong? Do I need to add more?

**********************************

Read on if you have nothing better to do :D
For the people wondering what I'm trying to do, here a little explanation. I have not that much knowledge about BSP's and mapping in general but I thought a little project which could add something neat into dod_avalanche could also give me some more knowledge how things work in the bsp file.

I wanted to take the airstrike from dod_zalec into dod_avalanche. There are a few spots (not common spots, so you might not know of these and some people consider them to be "out-of-bounds") which you need a teammate to get on. Once your teammate helped you up the spot, you could call an airstrike which would kill people in a certain radius in the middle.

Everything is in the bsp file from dod_zalec so basicly it would be a matter of finding the right models, sprites and functions and copy paste it into dod_avalanche with certain adjustments.

diamond-optic
08-12-2008, 08:43 PM
ive found for env_models to work, you have to put the targetname key in.. even if youre not using it for anything..

just like:

"targetname" "whateveryouwant"

it doesnt matter really what you put (i guess as long as its not the same targetname as something else that actually uses the name for something)

try that..


anyone thats played avalanche on my server can cleary see that ive made quite a few changes to the bsp file. Once you figure out how to do stuff, you can come up with some pretty cool stuff that doesnt require ppl to download the map, tho there is quite a bit of stuff that will not work unless the clients are running the modified version of the map too which sucks lol (tho some things ive done are thru amxx, quite a bit is done directly to the bsp)

..and i had quite a difficult time getting airstrikes into avalanche the way i wanted them (tho technically im still not totally pleased with them) but it is something that can be done (but my method is a closely guarded secret lol, but it shouldnt be too hard to figure out.. but ill admit, years of mapping for half-life definitly have assisted me in doing this stuff)

Tank
08-12-2008, 09:08 PM
Works like a charm. Seriously this really brings me one step closer to seeing if this complete project turns out to be a massive failure or perhaps a small success.

I played at your server and the fact that you can blow certain parts on dod_avalanche to waste is something I always enjoyed on your server. I used the idea to recreate blowing up the sandbags like on dod_kalt for dod_avalanche but eventually gave up hope. It was more a project for the near future.

But once I played dod_zalec and saw that mustang flying over (who ever created that model has some skills) and blew myself skyhigh...I was like" Woaw, I need that on avalanche".

Im glad you say it can be done (although im not sure we are using (planning on using) the same method.) The fact that you say that years of mapping helped you through it....Hmmm, I knew I was lacking something...Oh wait, I've never mapped before. The only things I changed was the respawn times (which you gave me the detect for) and adding weapons and nades to the BSP file.

Sohood
09-30-2008, 05:23 AM
Hey guys,

I have made a ctf_avalanche with air-strikes. I used the church tower as the capture point for the airstrikes and place the radios in each teams spawn. I used dod_object, dod_object_goal or dod_capture_area which ever you prefer with multimangers and trigger_hurts.

Tank
09-30-2008, 09:29 AM
If you ever wish to make this public or if you are willing to show me how you did it, I would be honored. I never finished my project due to school but I am curious how you did it.

Sohood
10-01-2008, 03:06 PM
One thing I do recommend is a DoD enitity guide of some sort. You will need to know what each enitities spawnflags are among other things. Sad thing is, most sites have taken down dod :( good thing is, I made a txt copy backup for myself. :) which I can give you.

I will certainly help you in achieving your goal but I think it would be a waste if I just showed you since it took much life out of me learning the ropes. It will be much more rewarding in the end.

I'm kinda on the same side as Optic, I don't let on to anyone how I did it. If I did that, then everyone would be doing it without the gratification of "bang head here" and figuring out yourself.

I do admit, its a lot easier with someone is helping you along the way. PM me with details of your steam user name so I can add you to my friends any maybe ts or vent info.

Tank
10-01-2008, 10:18 PM
You are completely right although I learned all the coding I do know (which is not that much, created 7 plugins so far) through spitting through other people's *.sma and bsp files.

I'll PM you the information and thanks for offering your help and trusting me your helpfile :D

I do admit, its a lot easier with someone is helping you along the way. PM me with details of your steam user name so I can add you to my friends any maybe ts or vent info.

I think thats what this community is all about, helping each other, right?

Zor
10-02-2008, 10:19 AM
Just wanted to check to make sure your using ripent, I believe you are, but! Just want to make sure. I was developing a UI for ripent, but got overworked. Soon.

Cheers!

Sohood
10-10-2008, 04:39 AM
Zor - what's the difference in using a program , ripent, compared to another, bspedit?

Zor
10-10-2008, 10:38 AM
Ripent just puts all the entites in a bsp into a text file and then you just edit the text file. Then you can push those entities back into the bsp, its the only one I know. Haven't used any others, like bspedit. Must look at it...

Sohood
10-12-2008, 04:46 PM
oh ok from your previous post it sounded like a warning not to use any other program than ripent. If you haven't tried bspedit, you should its a lot more convient and quicker to use than ripent.

Zor
10-12-2008, 06:16 PM
Yeah I started a program like that in VB, it would also goto the website and give you info on the thing you were looking at. Some point will have to reopen that now that we are hosting the VERC stuff.

Cheers!

diamond-optic
10-14-2008, 03:22 PM
bspedit is the same thing as ripent, just easier cause its a windows GUI and you aint gotta use a cmd prompt window and manually extract and repack the entity list


zor i still have the source code for bspedit somewhere i believe so it might be easier to just continue with something thats already made and working (cause it definitly could be expanded on)

not sure what language its in but i think its c++

(still cant figure out why i cant reply in firefox lol, i hate using IE)

Zor
10-18-2008, 11:20 PM
Is anyone else having problems with firefox? If so its the site, if not its your IE. As for the code, if you could msg me with that attached, once I get back from course I will look at it.

Cheers!

diamond-optic
10-23-2008, 07:55 PM
heh i fixed my firefox problem.. when you changed around the forums i didnt notice i had to allow another domain for the NoScript addon.. yahooapis.com

works fine now lol