Weapon coding... Created 14 years ago2010-03-18 05:13:24 UTC by quailcreek quailcreek

Created 14 years ago2010-03-18 05:13:24 UTC by quailcreek quailcreek

Posted 14 years ago2010-03-18 05:13:24 UTC Post #279801
I'm trying to get a silenced 9mm pistol into my map. I noticed that there are models for the silenced pistol in valve/models, but apparently they just weren't used in HL. Since the silenced pistol was never used, I take it there will be some coding involved to get the pistol to make the right sound, position the muzzle flash correctly, make it an entity, etc. I know absolutely nothing about this. Would anyone be willing to help me out with this? I'll be sure and credit whoever does.
Posted 14 years ago2010-03-18 07:05:43 UTC Post #279802
you could try stealing it off of they hunger and edit an fgd file to include it?
Suparsonik SuparsonikI'm going off the edge to meet my maker.
Posted 14 years ago2010-03-18 08:22:36 UTC Post #279803
No, that would make all the They Hunger code be included with it, and probably cause a game crash unless he used the FGD for it.

Do you want a switchable silencer, or one that stays on?
Are other things okay?
You could use the unofficial Spirit 1.7 if you're not using sitting scientists and don't mind a few other 'features' and bugs.
Notewell NotewellGIASFELFEBREHBER
Posted 14 years ago2010-03-18 08:31:41 UTC Post #279804
I don't want the silencer to be switchable. I'm unsure what you mean by "Are other things okay?"

As for Spirit 1.7, does it have a silenced pistol entity whereas previous versions don't? I've never used Spirit, but I should probably start using it for multitude of reasons.
Posted 14 years ago2010-03-18 08:36:28 UTC Post #279805
It's an unofficial version based off 1.2/1.3 that adds, among other things, a silencer to the pistol that can be toggled with secondary fire.
You could make a new model and replace the sound, couldn't you? I think the muzzleflash is placed at an attachement, so you'd just need to move that.

But NPCs would still hear it...Although, they don't really notice it much anyway, so it might work.
Notewell NotewellGIASFELFEBREHBER
You must be logged in to post a response.