357. to shotgun replacement

Hi. Is there anyone able to make shotgun in office complex and we’ve got hostiles instead of .357 magnum ? Because in the original Half Life it was a shotgun not magnum so I was kinda dissapointed when they changed that because I love shooting zombies with shotguns in this level. Is there any way to change game codes or maps so it will have shotguns instead of magnum ? For example the place when magnum is pickable it will be replaced with pickable shotguns and when there are pickable shotgun, there will be pickable magnum. Also security guards wielding magnums must be changed to the ones wearing shotguns because if they die they would drop magnum so you would have both shotgun and magnum.

give_weapon_shotgun
give_weapon_spas
give_weapon_buckshot

Its one of those, just enter that :slight_smile:
Or you could find someone who knows Hammer to look into the map and replace the Magnum with a Shotgun, maybe Text’ll have some spare time

How about: go to steam/steamapps/sourcemods/BMS/scripts, and swap the filenames of weapon_357.txt and weapon_shotgun.txt.

Okay I will try it out and see what happens.

This method works really bad. Shotgun is visible yes but it still looks like magnum before you pick it up, and also has no secondary fire and security guards wielding them doesn’t actually shoot. Any diffrent ideas ?

Decompile the map vmf and replace the 357 with a shotgun

Decompile map. Replace entities. Recompile map. Fix decompilation glitches. Done.

EDIT: Ninja’d. :ninja:

I’ve never tried one, but I think there’s BSP entity editors you can fuss with. You could just switch out the magnum stuff with the Spas and buckshot. You could also do the same decompiling and modifying the maps the maps, but that’s probably way more time consuming than it’s worth. Your best bet would be to use console commands as said above. You were just gonna switch the weapons out anyway, no reason not to just use a console command.

Edit: son of a bitch, This thing types slow. Ninja’d :I

That’s true. Entity editors would save the hassle of going through all that compiling.

Decompiling and recompiling can be really hard because you’d have to reconstruct some of the map’s optimizations. You’re really just better off giving yourself a shotgun through the console.

just open the counsel with ` after activating it and enter “sv_cheats 1” and then good old impluse 101 or “give weapon_shotgun” and before you run out of ammo enter givecurrentammo and it will give you full carry load(64 unless you change it) or if you run out then enter “give item_ammo_buckshot”
and givecurrentammo doesn’t require sv_cheats to be set to 1 and also you can change the max ammo carried again without sv_cheats set to 1, it’s “sk_max_buckshot xxx” you have to replace xxx with a number
have fun

Founded in 2004, Leakfree.org became one of the first online communities dedicated to Valve’s Source engine development. It is more famously known for the formation of Black Mesa: Source under the 'Leakfree Modification Team' handle in September 2004.