how to mod weapons in Black Mesa

I have to mod the guns in this game to make it playable for me.

I did the same with HL2 and managed to get all my weapons to run inronsights and have realistic peramerters, including free aim (which is so cool in this engine).

ANyhow, the shooting controls in this most excelent mod are quite basic, not neccesaraly a bad thing, but I would love to have some modern reaction in this game, I can replace the models i assume, but i heard that one cannot change the viewmodel fov… which is essential for all HL2 games as the guns are so close to the screen it might as well be a console port.

That and I would like to be able to change the peramerters of the weapons, and I looked in the scripts and there wasent exactly allmost anything that one could change.

Could some one point me in the direction of getting started?

Also, the view model thing, thats a must, does anyone know how to get that comand to work?

You can change the FOV per weapon in the weapons scripts (BMS/scripts/weapon_xx.txt), like so: fov “x”. Most script files already have this value.

Check out the config file (cfg/skill.cfg) for anything to do with weapon stats, just like in HL2.

thanks.

Is there a way i can add ironsights for weapons other than the 357, sorry i havent modded hl2 in over 4 years so im a touch rusty (eversince valve autoupdated the game and ruined all the old mods).

Also, is there a way to get a working walk button, i change the hl2 speed to 150, but every time i sprint it changes it back to 190 and walk seems to have no effect in this game.

If i could, i would change the walk to 120 or 150 then, after sprint i could just hit the walk, once i get it working and at least that toggle alias i have up for it would put it down to a speed so it didnt seem like i was skating around everywhere.

IIRC, adjusting the walking/run speeds in BM has no effect at all, because of the modifications they made to the movement mechanics.

Also, if I’m not mistaken, there are only two speeds available, just like in HL2: “walk” and “run”.
In HL2, “walk” is the default speed, “run” is the sprint speed. Same thing in BM, but you have to option of turning on “always run”, which will make your sprint button into a walk button.

Wait what how

smod tactics and regular smod enabled it

big thing rightnow for me is to enable ironsights for my guns, i keep swinging around and trying to bring the gun up but bam, blue balls. would be nice if there was a way.

allso, any tips on how to actualy fix the speed thing would be nice, cause running around the map break kneck is giving me a huge headache. any changes i make to either normal or walk get reset after i sprint.

BTW, sprint isnt normal, there was a walk in hl2 and a normal, and a sprint… the walk being 150, the norm 190 and the sprint 350

Wahey, there’s a reason you have an edit button.
It is generally for fixing mistakes but it’s also the reason pretty much no-one double posts.
Or triple posts for that matter.

I found this script here about a month ago.
Credit for its creation goes to “geekofalltrades”
Hope you find it usable, I sure did :slight_smile:

alias +walk “sv_maxspeed 65”
alias -walk “sv_maxspeed 320”
bind “ALT” “+walk”

nice man, does it work for this?

You probably won’t be able to add iron sights without adding completely new animations, and possibly models as well. In any case it would be fairly complicated to do.

Incidentally, you’ve kinda pointed out why I’m not a big fan of ironsights. They’re often just an irrelevant reflex that doesn’t add very much to the game and really limits your mobility.

Hey, is there a way to re add the hand swaping, thats a big part of my macros, (gives the impression at least that for instance with my melee binds that one hand has the crow bar and the other has the gun.

also can make it seem like your leaning corners (hey its better than nothing).

cl_righthand thingy dosent seem to work…

Also…
Thanks harrington for the walk binds, added that to my walk alias setup and it works fantastic. A little trickier with the sprint deal, but i made it so tab toggles walk or run, and sprint disregards that, and goes to sprint, then goes back to normal…

also to pyro…

In a fight, you bring up your weapon to aim it, thats just modern gameplay, i dont mean limiting, i mean like i dont wanna look as retarded as in rambo 2 when he headshots like 20 guys from the waist, it looks and feels crappy.

Ive never been a fan of over slowed down super zoomed in sights, in reality you wouldent do that, you would hold it out and aim accordingly, and only then you would do that for long shots, for short ones you would aim off the tip or on placment based on experiance… but either way your bringing up your gun to shoot, its a stability thing.

nothing irrelevent about imersing your character more by freedom of movment…

The first half life did wounders for that by placing the weapon at the center of the screen, as if it had allready been brought up (to the tip, not the sights) all I want is some way of atleast feeling like i can bring up my gun.

dunno why they went for the more consolitus gun coming out of the side of the screen thing.

You’re thinking of Doom, I think, not half-life. Doom’s controls would probably make you have a fit.

In any case, I could start an argument about realism vs. fun in video games and all that shit, but this isn’t the place for that.


If you really want to feel like you have to bring your gun up, the simplest solution might just be to make the guns use the ‘lowered’ animation, like when you’re sprinting, until you press an ironsight key. It would still require some custom code, as far as I know, but it would be a lot simpler than adding new animations or making the viewmodels snap to the center of the screen. (SMod did it like that, I think.)

I’m not a programmer or anything, mind you. This is mostly just conjecture and hearsay.

thats not it at all, and the realism vrs fun arugment is all preference anyhow, I just think that generic spaming of rounds was fun 15 years ago, is a lot less fun now. I want to feel like im actualy in the virtual enviroment.

I’ve played Half-Life, and the weapon viewmodels were on the right. Doom, along with some others, is the game that had sprites in the middle of the screen for the weapons.

its to the right but its not coming right out of the right side of the screen,

Now what i realy need to do is to figure out how to get the mp5 to fire a single round when i tap the mouse, autobursting is rediculously stupid.

Remenber to use the button.

if you manage to do this mod dont forget to upload your work.

of course

Im at an impass though, I cannot play the game with the mp5 the way it is, dont the autoburst crap, and the fire rate being faster than any gun i can think of… it looks atrocious and feels atrocious…

I went back to playing the original (source) and sadly that game has most of the gore that was so cool from the original removed, i havent figured out how to get the gibs or bloody bodies back in it, though the movment controls and weapons handeling make it worth playing as opposed to the diliciously gory but ultimately unplayable black mesa source…

anyhow so untill i can figure out how to actualy edit the realy weapons properties, i have to put this on hold.

(Autoburst??? seriously??? common??? and that fire rate??? have you guys even shot a basic .22?.. uncool dudes).

also wish you could import cssource weapons or hl2 weapons and have the animations work, but ohwell…

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.