Ok, I know it's very easy to ask everything but I dropped my laziness
and started figuring this out myself. So I used stripper_dump to dump the cfg from c5m5_bridge. It's a map where all weapons (shotgun, M16) are on the table for you to pickup. So I stole those values and made a dump of c1m1_hotel and looked for the origins where the first_aid_kits are, as you know they are also on the table in c1m1_hotel.
I looked up the firstaidkits in c1m1hotel, where they were and replaced them with the values from the guns in c5m5_bridge. So my cfg for hotel now looks like this:
Code:
add:
{
"origin" "420 5719 2887.87" (origin of first_aid_kit on table).
"weapon_selection" "tier2_any"
"spawnflags" "2"
"solid" "6"
"skin" "0"
"disableshadows" "1"
"count" "5"
"body" "0"
"angles" "0 270 90"
"classname" "weapon_spawn"
"hammerid" "2338600"
}
{
"origin" "439 5751 2887.87"
"weapon_selection" "tier2_any"
"spawnflags" "2"
"solid" "6"
"skin" "0"
"disableshadows" "1"
"count" "5"
"body" "0"
"angles" "0 270 90"
"classname" "weapon_spawn"
"hammerid" "2338600"
}
This will spawn any tier2 weapon (it's random everytime) on the table in c1m1_hotel, if I add 4 I get 4 different tier2 weapons (spas, snipe, military snipe etc). I loaded it up, joined the server and yes, all weapons were there with the correct amount of ammo and for unlimited pickup by all survivors and they were lying on the table, med packs got auto pushed away (at least it looked like that).
Now, tier2_any is good enough for me since I want to spawn all tier2_weapons and let the survivor choose between them, there are 6 tier2 weapons:
- m16
- autoshotgun
- sniper
- m. sniper
- ak47
- spas
Now, dropping all these weapons on the table will make a big mess, sometimes the guns get pushed away and fall behind the table, so let's say I want to place them next to the table on the floor, nicely lined up. How would I know the origins for those positions?
Next, I want to spawn items. I know the models for that too from the c5m5_bridge config where pipes and molotov's are avaiable also standing on the table. So I want to put 4 pipes and 4 molotov's lined up next to each other as well but this time on the bottom shelve of the table (hotel table has one) or maybe I could even add an extra table myself and put all the stuff on that one
Would this be possible as well, if so, how?